1 |
patrick 10/02/08 23:50:54 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: freewrl-1.22.6-r1.ebuild |
5 |
Log: |
6 |
Fix for xulrunner-1.9.2 by Ian Stakenvicius, fixes #303183 |
7 |
(Portage version: 2.2_rc62/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.23 media-gfx/freewrl/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/freewrl/ChangeLog?rev=1.23&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/freewrl/ChangeLog?rev=1.23&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/freewrl/ChangeLog?r1=1.22&r2=1.23 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/media-gfx/freewrl/ChangeLog,v |
19 |
retrieving revision 1.22 |
20 |
retrieving revision 1.23 |
21 |
diff -u -r1.22 -r1.23 |
22 |
--- ChangeLog 1 Feb 2010 20:14:09 -0000 1.22 |
23 |
+++ ChangeLog 8 Feb 2010 23:50:53 -0000 1.23 |
24 |
@@ -1,6 +1,12 @@ |
25 |
# ChangeLog for media-gfx/freewrl |
26 |
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/media-gfx/freewrl/ChangeLog,v 1.22 2010/02/01 20:14:09 maekke Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/freewrl/ChangeLog,v 1.23 2010/02/08 23:50:53 patrick Exp $ |
29 |
+ |
30 |
+*freewrl-1.22.6-r1 (08 Feb 2010) |
31 |
+ |
32 |
+ 08 Feb 2010; Patrick Lauer <patrick@g.o> +freewrl-1.22.6-r1.ebuild, |
33 |
+ +files/freewrl-1.22.6-xulrunner192-fixes.patch: |
34 |
+ Fix for xulrunner-1.9.2 by Ian Stakenvicius, fixes #303183 |
35 |
|
36 |
01 Feb 2010; Markus Meier <maekke@g.o> freewrl-1.22.5.ebuild: |
37 |
x86 stable, bug #300602 |
38 |
|
39 |
|
40 |
|
41 |
1.1 media-gfx/freewrl/freewrl-1.22.6-r1.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/freewrl/freewrl-1.22.6-r1.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/freewrl/freewrl-1.22.6-r1.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: freewrl-1.22.6-r1.ebuild |
47 |
=================================================================== |
48 |
# Copyright 1999-2010 Gentoo Foundation |
49 |
# Distributed under the terms of the GNU General Public License v2 |
50 |
# $Header: /var/cvsroot/gentoo-x86/media-gfx/freewrl/freewrl-1.22.6-r1.ebuild,v 1.1 2010/02/08 23:50:53 patrick Exp $ |
51 |
|
52 |
EAPI="2" |
53 |
|
54 |
inherit nsplugins eutils flag-o-matic autotools |
55 |
|
56 |
DESCRIPTION="VRML2 and X3D compliant browser" |
57 |
SRC_URI="mirror://sourceforge/freewrl/${P}.tar.bz2" |
58 |
HOMEPAGE="http://freewrl.sourceforge.net/" |
59 |
|
60 |
LICENSE="GPL-3" |
61 |
SLOT="0" |
62 |
KEYWORDS="~amd64 ~x86" |
63 |
IUSE="curl debug libeai +motif nsplugin +sox spidermonkey static +xulrunner" |
64 |
|
65 |
COMMONDEPEND="x11-libs/libXau |
66 |
x11-libs/libXdmcp |
67 |
x11-libs/libXext |
68 |
x11-libs/libX11 |
69 |
motif? ( x11-libs/openmotif ) |
70 |
media-libs/mesa |
71 |
media-libs/glew |
72 |
virtual/opengl |
73 |
media-libs/libpng |
74 |
media-libs/jpeg |
75 |
media-libs/imlib2 |
76 |
>=media-libs/freetype-2 |
77 |
curl? ( net-misc/curl ) |
78 |
xulrunner? ( net-libs/xulrunner ) |
79 |
!xulrunner? ( |
80 |
spidermonkey? ( dev-lang/spidermonkey ) |
81 |
!spidermonkey? ( || ( |
82 |
=www-client/mozilla-firefox-3*[-xulrunner] |
83 |
=www-client/mozilla-firefox-2* |
84 |
) ) |
85 |
) |
86 |
nsplugin? ( || ( xulrunner? ( net-libs/xulrunner ) |
87 |
>=www-client/mozilla-firefox-2.0 ) )" |
88 |
DEPEND="${COMMONDEPEND} |
89 |
>=dev-util/pkgconfig-0.22" |
90 |
RDEPEND="${COMMONDEPEND} |
91 |
media-fonts/ttf-bitstream-vera |
92 |
media-gfx/imagemagick |
93 |
app-arch/unzip |
94 |
sox? ( media-sound/sox )" |
95 |
|
96 |
pkg_setup() { |
97 |
if use xulrunner && use spidermonkey; then |
98 |
eerror "Please choose only one of xulrunner or spidermonkey." |
99 |
die "Cannot USE both spidermonkey and xulrunner" |
100 |
fi |
101 |
} |
102 |
|
103 |
src_prepare() { |
104 |
# A hack to get around expat being grabbed from xulrunner |
105 |
if use xulrunner && has_version ">=net-libs/xulrunner-1.9.2"; then |
106 |
mkdir "${S}/src/lib/include"; |
107 |
cp /usr/include/expat.h "${S}/src/lib/include/"; |
108 |
cp /usr/include/expat_external.h "${S}/src/lib/include/"; |
109 |
epatch "${FILESDIR}/${P}-xulrunner192-fixes.patch"; |
110 |
eautoreconf |
111 |
fi |
112 |
} |
113 |
|
114 |
src_configure() { |
115 |
local myconf="--with-fontsdir=/usr/share/fonts/ttf-bitstream-vera |
116 |
--with-imageconvert=/usr/bin/convert |
117 |
--with-unzip=/usr/bin/unzip" |
118 |
if use motif; then |
119 |
myconf="${myconf} --with-x --with-target=motif" |
120 |
else |
121 |
myconf="${myconf} --with-x --with-target=x11" |
122 |
fi |
123 |
if use nsplugin; then |
124 |
myconf="${myconf} --with-plugindir=/usr/$(get_libdir)/${PLUGINS_DIR}" |
125 |
fi |
126 |
if use sox; then |
127 |
myconf="${myconf} --with-soundconv=/usr/bin/sox" |
128 |
fi |
129 |
if use xulrunner; then |
130 |
if has_version net-libs/xulrunner:1.9 ; then |
131 |
if has_version ">=net-libs/xulrunner-1.9.2"; then |
132 |
# more hack to get around expat being grabbed from xulrunner |
133 |
myconf="${myconf} --with-expat=${S}/src/lib" |
134 |
else |
135 |
# fix missing library path to xulrunner-1.9 libraries |
136 |
append-ldflags "-R/usr/$(get_libdir)/xulrunner-1.9/lib" |
137 |
fi |
138 |
fi |
139 |
elif use spidermonkey; then |
140 |
# disable the checks for other js libs, in case they are installed |
141 |
myconf="${myconf} --disable-mozilla-js --disable-xulrunner-js --disable-firefox-js --disable-seamonkey-js" |
142 |
# spidermonkey has no pkg-config, so override ./configure |
143 |
JAVASCRIPT_ENGINE_CFLAGS="-I/usr/include/js -DXP_UNIX" |
144 |
JAVASCRIPT_ENGINE_LIBS="-ljs" |
145 |
if has_version dev-lang/spidermonkey[threadsafe] ; then |
146 |
JAVASCRIPT_ENGINE_CFLAGS="${JAVASCRIPT_ENGINE_CFLAGS} -DJS_THREADSAFE $(pkg-config --cflags nspr)" |
147 |
JAVASCRIPT_ENGINE_LIBS="$(pkg-config --libs nspr) ${JAVASCRIPT_ENGINE_LIBS}" |
148 |
fi |
149 |
export JAVASCRIPT_ENGINE_CFLAGS |
150 |
export JAVASCRIPT_ENGINE_LIBS |
151 |
else |
152 |
# disable checks for xulrunner libs, in case they are installed |
153 |
myconf="${myconf} --disable-mozilla-js --disable-xulrunner-js" |
154 |
# not using xulrunner, so ./configure grabs js directly from firefox/mozilla/thunderbird/wherever |
155 |
if has_version =www-client/mozilla-firefox-3* ; then |
156 |
# override ./configure for firefox-3 as pkg-config doesn't detect the right settings |
157 |
export MOZILLA_PLUGIN_CFLAGS="-I/usr/include/mozilla-firefox/stable $(pkg-config --cflags nspr)" |
158 |
export MOZILLA_PLUGIN_LIBS=" " |
159 |
export JAVASCRIPT_ENGINE_CFLAGS="-DXP_UNIX -DJS_THREADSAFE -DMOZILLA_JS_UNSTABLE_INCLUDES ${MOZILLA_PLUGIN_CFLAGS}" |
160 |
export JAVASCRIPT_ENGINE_LIBS="$(pkg-config --libs nspr) -L/usr/$(get_libdir)/mozilla-firefox -lmozjs" |
161 |
append-ldflags "-R/usr/$(get_libdir)/mozilla-firefox" |
162 |
fi |
163 |
fi |
164 |
econf ${myconf} \ |
165 |
$(use_enable curl libcurl) \ |
166 |
$(use_enable debug) \ |
167 |
$(use_enable libeai) \ |
168 |
$(use_enable nsplugin plugin) \ |
169 |
$(use_enable static) \ |
170 |
$(use_enable sox sound) |
171 |
} |
172 |
|
173 |
src_install() { |
174 |
emake DESTDIR="${D}" install || die "emake install failed" |
175 |
|
176 |
# remove unneeded .la files (as per Flameeyes' rant) |
177 |
cd "${D}" |
178 |
rm "usr/$(get_libdir)"/*.la "usr/$(get_libdir)/${PLUGINS_DIR}"/*.la |
179 |
} |