1 |
patrick 10/01/07 16:58:21 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: freewrl-1.22.6.ebuild |
5 |
Log: |
6 |
Bump |
7 |
(Portage version: 2.2_rc61/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.20 media-gfx/freewrl/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/freewrl/ChangeLog?rev=1.20&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/freewrl/ChangeLog?rev=1.20&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/freewrl/ChangeLog?r1=1.19&r2=1.20 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/media-gfx/freewrl/ChangeLog,v |
19 |
retrieving revision 1.19 |
20 |
retrieving revision 1.20 |
21 |
diff -u -r1.19 -r1.20 |
22 |
--- ChangeLog 5 Oct 2009 19:59:33 -0000 1.19 |
23 |
+++ ChangeLog 7 Jan 2010 16:58:21 -0000 1.20 |
24 |
@@ -1,6 +1,11 @@ |
25 |
# ChangeLog for media-gfx/freewrl |
26 |
-# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/media-gfx/freewrl/ChangeLog,v 1.19 2009/10/05 19:59:33 patrick Exp $ |
28 |
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
29 |
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/freewrl/ChangeLog,v 1.20 2010/01/07 16:58:21 patrick Exp $ |
30 |
+ |
31 |
+*freewrl-1.22.6 (07 Jan 2010) |
32 |
+ |
33 |
+ 07 Jan 2010; Patrick Lauer <patrick@g.o> +freewrl-1.22.6.ebuild: |
34 |
+ Bump |
35 |
|
36 |
05 Oct 2009; Patrick Lauer <patrick@g.o> metadata.xml: |
37 |
Taking over package from hanno with ian as proxy maintainer |
38 |
|
39 |
|
40 |
|
41 |
1.1 media-gfx/freewrl/freewrl-1.22.6.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/freewrl/freewrl-1.22.6.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/freewrl/freewrl-1.22.6.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: freewrl-1.22.6.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.ebuild,v 1.1 2010/01/07 16:58:21 patrick Exp $ |
51 |
|
52 |
EAPI="2" |
53 |
|
54 |
inherit nsplugins eutils flag-o-matic |
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_configure() { |
104 |
local myconf="--with-fontsdir=/usr/share/fonts/ttf-bitstream-vera |
105 |
--with-imageconvert=/usr/bin/convert |
106 |
--with-unzip=/usr/bin/unzip" |
107 |
if use motif; then |
108 |
myconf="${myconf} --with-x --with-target=motif" |
109 |
else |
110 |
myconf="${myconf} --with-x --with-target=x11" |
111 |
fi |
112 |
if use nsplugin; then |
113 |
myconf="${myconf} --with-plugindir=/usr/$(get_libdir)/${PLUGINS_DIR}" |
114 |
fi |
115 |
if use sox; then |
116 |
myconf="${myconf} --with-soundconv=/usr/bin/sox" |
117 |
fi |
118 |
if use xulrunner; then |
119 |
if has_version net-libs/xulrunner:1.9 ; then |
120 |
# fix missing library path to xulrunner-1.9 libraries |
121 |
append-ldflags "-R/usr/$(get_libdir)/xulrunner-1.9/lib" |
122 |
fi |
123 |
elif use spidermonkey; then |
124 |
# disable the checks for other js libs, in case they are installed |
125 |
myconf="${myconf} --disable-mozilla-js --disable-xulrunner-js --disable-firefox-js --disable-seamonkey-js" |
126 |
# spidermonkey has no pkg-config, so override ./configure |
127 |
JAVASCRIPT_ENGINE_CFLAGS="-I/usr/include/js -DXP_UNIX" |
128 |
JAVASCRIPT_ENGINE_LIBS="-ljs" |
129 |
if has_version dev-lang/spidermonkey[threadsafe] ; then |
130 |
JAVASCRIPT_ENGINE_CFLAGS="${JAVASCRIPT_ENGINE_CFLAGS} -DJS_THREADSAFE $(pkg-config --cflags nspr)" |
131 |
JAVASCRIPT_ENGINE_LIBS="$(pkg-config --libs nspr) ${JAVASCRIPT_ENGINE_LIBS}" |
132 |
fi |
133 |
export JAVASCRIPT_ENGINE_CFLAGS |
134 |
export JAVASCRIPT_ENGINE_LIBS |
135 |
else |
136 |
# disable checks for xulrunner libs, in case they are installed |
137 |
myconf="${myconf} --disable-mozilla-js --disable-xulrunner-js" |
138 |
# not using xulrunner, so ./configure grabs js directly from firefox/mozilla/thunderbird/wherever |
139 |
if has_version =www-client/mozilla-firefox-3* ; then |
140 |
# override ./configure for firefox-3 as pkg-config doesn't detect the right settings |
141 |
export MOZILLA_PLUGIN_CFLAGS="-I/usr/include/mozilla-firefox/stable $(pkg-config --cflags nspr)" |
142 |
export MOZILLA_PLUGIN_LIBS=" " |
143 |
export JAVASCRIPT_ENGINE_CFLAGS="-DXP_UNIX -DJS_THREADSAFE -DMOZILLA_JS_UNSTABLE_INCLUDES ${MOZILLA_PLUGIN_CFLAGS}" |
144 |
export JAVASCRIPT_ENGINE_LIBS="$(pkg-config --libs nspr) -L/usr/$(get_libdir)/mozilla-firefox -lmozjs" |
145 |
append-ldflags "-R/usr/$(get_libdir)/mozilla-firefox" |
146 |
fi |
147 |
fi |
148 |
econf ${myconf} \ |
149 |
$(use_enable curl libcurl) \ |
150 |
$(use_enable debug) \ |
151 |
$(use_enable libeai) \ |
152 |
$(use_enable nsplugin plugin) \ |
153 |
$(use_enable static) \ |
154 |
$(use_enable sox sound) |
155 |
} |
156 |
|
157 |
src_install() { |
158 |
emake DESTDIR="${D}" install || die "emake install failed" |
159 |
|
160 |
# remove unneeded .la files (as per Flameeyes' rant) |
161 |
cd "${D}" |
162 |
rm "usr/$(get_libdir)"/*.la "usr/$(get_libdir)/${PLUGINS_DIR}"/*.la |
163 |
} |