1 |
ssuominen 11/04/02 14:29:43 |
2 |
|
3 |
Modified: ChangeLog freewrl-1.22.10.ebuild |
4 |
Added: freewrl-1.22.10-r1.ebuild |
5 |
Log: |
6 |
Rename USE="static" to USE="static-libs" wrt #361659. Force spidermonkey as javascript engine until xulrunner-2 support is available wrt #361663. |
7 |
|
8 |
(Portage version: 2.2.0_alpha29/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.32 media-gfx/freewrl/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/freewrl/ChangeLog?rev=1.32&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/freewrl/ChangeLog?rev=1.32&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/freewrl/ChangeLog?r1=1.31&r2=1.32 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/media-gfx/freewrl/ChangeLog,v |
20 |
retrieving revision 1.31 |
21 |
retrieving revision 1.32 |
22 |
diff -u -r1.31 -r1.32 |
23 |
--- ChangeLog 1 Apr 2011 14:23:54 -0000 1.31 |
24 |
+++ ChangeLog 2 Apr 2011 14:29:43 -0000 1.32 |
25 |
@@ -1,6 +1,13 @@ |
26 |
# ChangeLog for media-gfx/freewrl |
27 |
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/media-gfx/freewrl/ChangeLog,v 1.31 2011/04/01 14:23:54 patrick Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/freewrl/ChangeLog,v 1.32 2011/04/02 14:29:43 ssuominen Exp $ |
30 |
+ |
31 |
+*freewrl-1.22.10-r1 (02 Apr 2011) |
32 |
+ |
33 |
+ 02 Apr 2011; Samuli Suominen <ssuominen@g.o> freewrl-1.22.10.ebuild, |
34 |
+ +freewrl-1.22.10-r1.ebuild: |
35 |
+ Rename USE="static" to USE="static-libs" wrt #361659. Force spidermonkey as |
36 |
+ javascript engine until xulrunner-2 support is available wrt #361663. |
37 |
|
38 |
01 Apr 2011; Patrick Lauer <patrick@g.o> freewrl-1.22.9.ebuild, |
39 |
freewrl-1.22.10.ebuild: |
40 |
|
41 |
|
42 |
|
43 |
1.4 media-gfx/freewrl/freewrl-1.22.10.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/freewrl/freewrl-1.22.10.ebuild?rev=1.4&view=markup |
46 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/freewrl/freewrl-1.22.10.ebuild?rev=1.4&content-type=text/plain |
47 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/freewrl/freewrl-1.22.10.ebuild?r1=1.3&r2=1.4 |
48 |
|
49 |
Index: freewrl-1.22.10.ebuild |
50 |
=================================================================== |
51 |
RCS file: /var/cvsroot/gentoo-x86/media-gfx/freewrl/freewrl-1.22.10.ebuild,v |
52 |
retrieving revision 1.3 |
53 |
retrieving revision 1.4 |
54 |
diff -u -r1.3 -r1.4 |
55 |
--- freewrl-1.22.10.ebuild 1 Apr 2011 14:23:54 -0000 1.3 |
56 |
+++ freewrl-1.22.10.ebuild 2 Apr 2011 14:29:43 -0000 1.4 |
57 |
@@ -1,6 +1,6 @@ |
58 |
# Copyright 1999-2011 Gentoo Foundation |
59 |
# Distributed under the terms of the GNU General Public License v2 |
60 |
-# $Header: /var/cvsroot/gentoo-x86/media-gfx/freewrl/freewrl-1.22.10.ebuild,v 1.3 2011/04/01 14:23:54 patrick Exp $ |
61 |
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/freewrl/freewrl-1.22.10.ebuild,v 1.4 2011/04/02 14:29:43 ssuominen Exp $ |
62 |
|
63 |
EAPI="2" |
64 |
|
65 |
@@ -13,7 +13,7 @@ |
66 |
LICENSE="GPL-3" |
67 |
SLOT="0" |
68 |
KEYWORDS="~amd64 ~x86" |
69 |
-IUSE="curl debug libeai +glew +java +motif nsplugin +sox spidermonkey static" |
70 |
+IUSE="curl debug libeai +glew +java +motif nsplugin +sox spidermonkey static-libs" |
71 |
|
72 |
COMMONDEPEND="x11-libs/libXau |
73 |
x11-libs/libXdmcp |
74 |
@@ -91,7 +91,7 @@ |
75 |
$(use_enable libeai) \ |
76 |
$(use_enable java) \ |
77 |
$(use_enable nsplugin plugin) \ |
78 |
- $(use_enable static) \ |
79 |
+ $(use_enable static-libs static) \ |
80 |
$(use_enable sox sound) |
81 |
} |
82 |
|
83 |
|
84 |
|
85 |
|
86 |
1.1 media-gfx/freewrl/freewrl-1.22.10-r1.ebuild |
87 |
|
88 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/freewrl/freewrl-1.22.10-r1.ebuild?rev=1.1&view=markup |
89 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/freewrl/freewrl-1.22.10-r1.ebuild?rev=1.1&content-type=text/plain |
90 |
|
91 |
Index: freewrl-1.22.10-r1.ebuild |
92 |
=================================================================== |
93 |
# Copyright 1999-2011 Gentoo Foundation |
94 |
# Distributed under the terms of the GNU General Public License v2 |
95 |
# $Header: /var/cvsroot/gentoo-x86/media-gfx/freewrl/freewrl-1.22.10-r1.ebuild,v 1.1 2011/04/02 14:29:43 ssuominen Exp $ |
96 |
|
97 |
EAPI="2" |
98 |
|
99 |
inherit nsplugins eutils flag-o-matic java-pkg-opt-2 |
100 |
|
101 |
DESCRIPTION="VRML2 and X3D compliant browser" |
102 |
SRC_URI="mirror://sourceforge/freewrl/${P}.tar.bz2" |
103 |
HOMEPAGE="http://freewrl.sourceforge.net/" |
104 |
|
105 |
LICENSE="GPL-3" |
106 |
SLOT="0" |
107 |
KEYWORDS="~amd64 ~x86" |
108 |
IUSE="curl debug libeai +glew +java +motif +sox static-libs" |
109 |
|
110 |
COMMONDEPEND="x11-libs/libXau |
111 |
x11-libs/libXdmcp |
112 |
x11-libs/libXext |
113 |
x11-libs/libX11 |
114 |
motif? ( x11-libs/openmotif ) |
115 |
media-libs/mesa |
116 |
glew? ( media-libs/glew ) |
117 |
virtual/opengl |
118 |
media-libs/libpng |
119 |
virtual/jpeg |
120 |
media-libs/imlib2 |
121 |
>=media-libs/freetype-2 |
122 |
media-libs/fontconfig |
123 |
curl? ( net-misc/curl ) |
124 |
dev-lang/spidermonkey" |
125 |
DEPEND="${COMMONDEPEND} |
126 |
>=dev-util/pkgconfig-0.22 |
127 |
java? ( >=virtual/jdk-1.4 )" |
128 |
RDEPEND="${COMMONDEPEND} |
129 |
media-fonts/dejavu |
130 |
|| ( media-gfx/imagemagick |
131 |
media-gfx/graphicsmagick[imagemagick] ) |
132 |
app-arch/unzip |
133 |
java? ( >=virtual/jre-1.4 ) |
134 |
sox? ( media-sound/sox )" |
135 |
|
136 |
src_prepare() { |
137 |
# A hack to get around expat being grabbed from xulrunner |
138 |
mkdir "${S}/src/lib/include"; |
139 |
cp /usr/include/expat.h "${S}/src/lib/include/"; |
140 |
cp /usr/include/expat_external.h "${S}/src/lib/include/"; |
141 |
} |
142 |
|
143 |
src_configure() { |
144 |
local myconf="--enable-fontconfig --disable-plugin |
145 |
--with-imageconvert=/usr/bin/convert |
146 |
--with-unzip=/usr/bin/unzip" |
147 |
if use motif; then |
148 |
myconf="${myconf} --with-x --with-target=motif" |
149 |
else |
150 |
myconf="${myconf} --with-x --with-target=x11" |
151 |
fi |
152 |
if use sox; then |
153 |
myconf="${myconf} --with-soundconv=/usr/bin/sox" |
154 |
fi |
155 |
# disable the checks for other js libs, in case they are installed |
156 |
myconf="${myconf} --disable-mozilla-js --disable-xulrunner-js --disable-firefox-js --disable-seamonkey-js" |
157 |
# spidermonkey has no pkg-config, so override ./configure |
158 |
JAVASCRIPT_ENGINE_CFLAGS="-I/usr/include/js -DXP_UNIX" |
159 |
JAVASCRIPT_ENGINE_LIBS="-ljs" |
160 |
if has_version dev-lang/spidermonkey[threadsafe] ; then |
161 |
JAVASCRIPT_ENGINE_CFLAGS="${JAVASCRIPT_ENGINE_CFLAGS} -DJS_THREADSAFE $(pkg-config --cflags nspr)" |
162 |
JAVASCRIPT_ENGINE_LIBS="$(pkg-config --libs nspr) ${JAVASCRIPT_ENGINE_LIBS}" |
163 |
fi |
164 |
export JAVASCRIPT_ENGINE_CFLAGS |
165 |
export JAVASCRIPT_ENGINE_LIBS |
166 |
econf ${myconf} \ |
167 |
$(use_enable curl libcurl) \ |
168 |
$(use_with glew) \ |
169 |
$(use_enable debug) $(use_enable debug thread_colorized) \ |
170 |
$(use_enable libeai) \ |
171 |
$(use_enable java) \ |
172 |
$(use_enable static-libs static) \ |
173 |
$(use_enable sox sound) |
174 |
} |
175 |
|
176 |
src_install() { |
177 |
emake DESTDIR="${D}" install || die "emake install failed" |
178 |
|
179 |
if use java; then |
180 |
java-pkg_dojar src/java/vrml.jar |
181 |
insinto /usr/share/${PN}/lib |
182 |
doins src/java/java.policy |
183 |
elog "Because vrml.jar requires access to sockets, you will need to incorporate the" |
184 |
elog "contents of /usr/share/${PN}/lib/java.policy into your system or user's default" |
185 |
elog "java policy." |
186 |
fi |
187 |
|
188 |
# remove unneeded .la files (as per Flameeyes' rant) |
189 |
cd "${D}" |
190 |
rm "usr/$(get_libdir)"/*.la "usr/$(get_libdir)/${PLUGINS_DIR}"/*.la |
191 |
} |
192 |
|
193 |
pkg_postinst() { |
194 |
elog "All versions of FreeWRL are incompatible with xulrunner-2.0 and above." |
195 |
elog "This ebuild gets around it by removing support for browser plugins and forcing" |
196 |
elog "the javascript engine to spidermonkey. If you are willing to downgrade to" |
197 |
elog "xulrunner-1.9 (as well as downgrade/rebuild all packages depending on it), then" |
198 |
elog "you can get this functionality back by adding =media-gfx/freewrl-1.22.10-r1 to your" |
199 |
elog "package.mask" |
200 |
} |