1 |
loki_val 09/09/02 14:05:05 |
2 |
|
3 |
Added: mono-tools-2.4-html-renderer-fixes.patch |
4 |
Log: |
5 |
Fix html-renderer-fixes patch to make Mono.Webbrowser engine optional. Xulrunner use-flag now pulls in gluezilla for Mono.Webbrowser. Drop gecko-sharp usage, since it's broken. Update 9999 ebuilds with same fixes. |
6 |
(Portage version: 2.2_rc40/cvs/Linux x86_64) |
7 |
|
8 |
Revision Changes Path |
9 |
1.1 dev-util/mono-tools/files/mono-tools-2.4-html-renderer-fixes.patch |
10 |
|
11 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/mono-tools/files/mono-tools-2.4-html-renderer-fixes.patch?rev=1.1&view=markup |
12 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/mono-tools/files/mono-tools-2.4-html-renderer-fixes.patch?rev=1.1&content-type=text/plain |
13 |
|
14 |
Index: mono-tools-2.4-html-renderer-fixes.patch |
15 |
=================================================================== |
16 |
diff -NrU5 mono-tools-2.4.2.orig/configure.in mono-tools-2.4.2/configure.in |
17 |
--- mono-tools-2.4.2.orig/configure.in 2009-09-02 13:49:47.000000000 +0200 |
18 |
+++ mono-tools-2.4.2/configure.in 2009-09-02 14:14:04.000000000 +0200 |
19 |
@@ -43,54 +43,84 @@ |
20 |
|
21 |
PKG_CHECK_MODULES(GTK_SHARP, gtk-sharp-2.0 glade-sharp-2.0 gnome-sharp-2.0 gconf-sharp-2.0) |
22 |
#PKG_CHECK_MODULES(GTK_SHARP, gtk-sharp glade-sharp gconf-sharp) |
23 |
AC_SUBST(GTK_SHARP_LIBS) |
24 |
|
25 |
-PKG_CHECK_MODULES(GTKHTML_SHARP, gtkhtml-sharp-3.14, enable_gtkhtml=yes, enable_gtkhtml=no) |
26 |
-if test "x$enable_gtkhtml" = "xyes"; then |
27 |
-CSHARP_FLAGS="-d:GTKHTML_SHARP_3_14" |
28 |
-else |
29 |
-PKG_CHECK_MODULES(GTKHTML_SHARP, gtkhtml-sharp-2.0, enable_gtkhtml=yes, enable_gtkhtml=no) |
30 |
-CSHARP_FLAGS= |
31 |
+AC_ARG_ENABLE(gtkhtml, |
32 |
+ AC_HELP_STRING([--enable-gtkhtml], [Use GTKHTML Browser]),, |
33 |
+ enable_gtkhtml=yes) |
34 |
+ |
35 |
+if test "x$enable_gtkhtml" = "xyes" ; then |
36 |
+ PKG_CHECK_MODULES([GTKHTML_SHARP], |
37 |
+ [gtkhtml-sharp-3.14], |
38 |
+ [CSHARP_FLAGS="-d:GTKHTML_SHARP_3_14"], |
39 |
+ [ |
40 |
+ PKG_CHECK_MODULES([GTKHTML_SHARP], |
41 |
+ [gtkhtml-sharp-2.0], |
42 |
+ [CSHARP_FLAGS=""], |
43 |
+ []) |
44 |
+ ] |
45 |
+ ) |
46 |
+ AC_SUBST(GTKHTML_SHARP_LIBS) |
47 |
+ AC_SUBST(CSHARP_FLAGS) |
48 |
fi |
49 |
-AC_SUBST(GTKHTML_SHARP_LIBS) |
50 |
-AC_SUBST(CSHARP_FLAGS) |
51 |
+ |
52 |
AM_CONDITIONAL(ENABLE_GTKHTML, test "x$enable_gtkhtml" = "xyes") |
53 |
|
54 |
-PKG_CHECK_MODULES(GECKO_SHARP, gecko-sharp-2.0, enable_gecko=yes, enable_gecko=no) |
55 |
-AC_SUBST(GECKO_SHARP_LIBS) |
56 |
+AC_ARG_ENABLE(gecko, |
57 |
+ AC_HELP_STRING([--enable-gecko], [Use Gecko / Xulrunner-1.8 browser libs]),, |
58 |
+ enable_gecko=yes) |
59 |
+ |
60 |
+if test "x$enable_gecko" = "xyes" ; then |
61 |
+ PKG_CHECK_MODULES(GECKO_SHARP, gecko-sharp-2.0) |
62 |
+ |
63 |
+ AC_SUBST(GECKO_SHARP_LIBS) |
64 |
+ |
65 |
+ # get the mozilla home directory |
66 |
+ MOZILLA_HOME="`$PKG_CONFIG --variable=libdir mozilla-gtkmozembed`" |
67 |
+ AC_SUBST(MOZILLA_HOME) |
68 |
+fi |
69 |
+ |
70 |
AM_CONDITIONAL(ENABLE_GECKO, test "x$enable_gecko" = "xyes") |
71 |
|
72 |
-if test "x$enable_gecko" = "xyes"; then |
73 |
- # get the mozilla home directory |
74 |
- MOZILLA_HOME="`$PKG_CONFIG --variable=libdir mozilla-gtkmozembed`" |
75 |
- AC_SUBST(MOZILLA_HOME) |
76 |
+AC_ARG_ENABLE(webkit, |
77 |
+ AC_HELP_STRING([--enable-webkit], [Use Webkit browser]),, |
78 |
+ enable_webkit=yes) |
79 |
+ |
80 |
+if test "x$enable_webkit" = "xyes" ; then |
81 |
+ PKG_CHECK_MODULES(WEBKIT_SHARP, webkit-sharp-1.0) |
82 |
+ AC_SUBST(WEBKIT_SHARP_LIBS) |
83 |
fi |
84 |
|
85 |
-PKG_CHECK_MODULES(WEBKIT_SHARP, webkit-sharp-1.0, enable_webkit=yes, enable_webkit=no) |
86 |
-AC_SUBST(WEBKIT_SHARP_LIBS) |
87 |
AM_CONDITIONAL(ENABLE_WEBKIT, test "x$enable_webkit" = "xyes") |
88 |
|
89 |
# PKG_CHECK_MODULES(MONOWEBBROWSER, mono-webbrowser, enable_monowebbrowser=yes, enable_monowebbrowser=no) |
90 |
# AC_SUBST(MONOWEBBROWSER_LIBS) |
91 |
|
92 |
-AC_MSG_CHECKING([for Mono.WebBrowser]) |
93 |
-if test "x$GACUTIL" = "xno" |
94 |
-then |
95 |
- AC_MSG_RESULT([no]) |
96 |
- if test "x$enable_monowebbrowser" = "x" ; then enable_monowebbrowser=no ; fi |
97 |
-else |
98 |
- if $GACUTIL -l Mono.WebBrowser | grep -q "Mono.WebBrowser" |
99 |
+AC_ARG_ENABLE(monowebbrowser, |
100 |
+ AC_HELP_STRING([--enable-monowebbrowser], [Use Mono.Webbrowser]),, |
101 |
+ enable_monowebbrowser=yes) |
102 |
+ |
103 |
+if test "x$enable_monowebbrowser" = "xyes" ; then |
104 |
+ AC_MSG_CHECKING([for Mono.WebBrowser]) |
105 |
+ if test "x$GACUTIL" = "xno" |
106 |
then |
107 |
- AC_MSG_RESULT([yes]) |
108 |
- enable_monowebbrowser=yes |
109 |
+ AC_MSG_RESULT([no]) |
110 |
+ if test "x$enable_monowebbrowser" = "x" ; then enable_monowebbrowser=no ; fi |
111 |
else |
112 |
- AC_MSG_RESULT([no]) |
113 |
- enable_monowebbrowser=no |
114 |
- fi |
115 |
+ if $GACUTIL -l Mono.WebBrowser | grep -q "Mono.WebBrowser" |
116 |
+ then |
117 |
+ AC_MSG_RESULT([yes]) |
118 |
+ enable_monowebbrowser=yes |
119 |
+ MONOWEBBROWSER_LIBS=-r:Mono.WebBrowser |
120 |
+ else |
121 |
+ AC_MSG_RESULT([no]) |
122 |
+ enable_monowebbrowser=no |
123 |
+ fi |
124 |
+ fi |
125 |
fi |
126 |
-MONOWEBBROWSER_LIBS=-r:Mono.WebBrowser |
127 |
+ |
128 |
AM_CONDITIONAL(ENABLE_MONOWEBBROWSER, test "x$enable_monowebbrowser" = "xyes") |
129 |
|
130 |
if test "x$enable_gtkhtml$enable_gecko$enable_monowebbrowser$enable_webkit" = "xnononono" ; then |
131 |
AC_MSG_ERROR([no HTML display found. You need either gtkhtml, gecko, WebKit or Mono.WebBrowser]) |
132 |
fi |