Gentoo Archives: gentoo-commits

From: "Patrick Lauer (patrick)" <patrick@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-gfx/freewrl: metadata.xml ChangeLog freewrl-1.22.12_pre2.ebuild
Date: Thu, 28 Jul 2011 17:02:10
Message-Id: 20110728162814.4B5662004B@flycatcher.gentoo.org
1 patrick 11/07/28 16:28:14
2
3 Modified: metadata.xml ChangeLog
4 Added: freewrl-1.22.12_pre2.ebuild
5 Log:
6 Bump, modified ebuild by Ian
7
8 (Portage version: 2.2.0_alpha47/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.5 media-gfx/freewrl/metadata.xml
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/freewrl/metadata.xml?rev=1.5&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/freewrl/metadata.xml?rev=1.5&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/freewrl/metadata.xml?r1=1.4&r2=1.5
16
17 Index: metadata.xml
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/media-gfx/freewrl/metadata.xml,v
20 retrieving revision 1.4
21 retrieving revision 1.5
22 diff -u -r1.4 -r1.5
23 --- metadata.xml 8 Jun 2010 22:47:58 -0000 1.4
24 +++ metadata.xml 28 Jul 2011 16:28:14 -0000 1.5
25 @@ -11,9 +11,12 @@
26 <name>Ian Stakenvicius (proxy-maintainer)</name>
27 </maintainer>
28 <use>
29 - <flag name='glew'>Enable glew extensions</flag>
30 - <flag name='libeai'>Build EAI C library</flag>
31 - <flag name='spidermonkey'>Use spidermonkey instead of Firefox</flag>
32 + <flag name='glew'>Enable glew extensions</flag>
33 + <flag name='libeai'>Build EAI C library</flag>
34 + <flag name='spidermonkey'>Use spidermonkey instead of Firefox</flag>
35 + <flag name='xulrunner'>Use libmozjs from xulrunner instead of using spidermonkey</flag>
36 + <flag name='osc'>Allows for OSC-based control and communication between multiple freewrl instances</flag>
37 + <flag name='java'>Build and install java EAI/SAI support library</flag>
38 </use>
39
40 </pkgmetadata>
41
42
43
44 1.35 media-gfx/freewrl/ChangeLog
45
46 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/freewrl/ChangeLog?rev=1.35&view=markup
47 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/freewrl/ChangeLog?rev=1.35&content-type=text/plain
48 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/freewrl/ChangeLog?r1=1.34&r2=1.35
49
50 Index: ChangeLog
51 ===================================================================
52 RCS file: /var/cvsroot/gentoo-x86/media-gfx/freewrl/ChangeLog,v
53 retrieving revision 1.34
54 retrieving revision 1.35
55 diff -u -r1.34 -r1.35
56 --- ChangeLog 22 Jun 2011 02:28:51 -0000 1.34
57 +++ ChangeLog 28 Jul 2011 16:28:14 -0000 1.35
58 @@ -1,6 +1,12 @@
59 # ChangeLog for media-gfx/freewrl
60 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
61 -# $Header: /var/cvsroot/gentoo-x86/media-gfx/freewrl/ChangeLog,v 1.34 2011/06/22 02:28:51 nirbheek Exp $
62 +# $Header: /var/cvsroot/gentoo-x86/media-gfx/freewrl/ChangeLog,v 1.35 2011/07/28 16:28:14 patrick Exp $
63 +
64 +*freewrl-1.22.12_pre2 (28 Jul 2011)
65 +
66 + 28 Jul 2011; Patrick Lauer <patrick@g.o> +freewrl-1.22.12_pre2.ebuild,
67 + metadata.xml:
68 + Bump, modified ebuild by Ian
69
70 22 Jun 2011; Nirbheek Chauhan <nirbheek@g.o>
71 freewrl-1.22.10-r1.ebuild:
72
73
74
75 1.1 media-gfx/freewrl/freewrl-1.22.12_pre2.ebuild
76
77 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/freewrl/freewrl-1.22.12_pre2.ebuild?rev=1.1&view=markup
78 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/freewrl/freewrl-1.22.12_pre2.ebuild?rev=1.1&content-type=text/plain
79
80 Index: freewrl-1.22.12_pre2.ebuild
81 ===================================================================
82 # Copyright 1999-2011 Gentoo Foundation
83 # Distributed under the terms of the GNU General Public License v2
84 # $Header: /var/cvsroot/gentoo-x86/media-gfx/freewrl/freewrl-1.22.12_pre2.ebuild,v 1.1 2011/07/28 16:28:14 patrick Exp $
85
86 EAPI="2"
87
88 inherit nsplugins eutils flag-o-matic java-pkg-opt-2
89
90 DESCRIPTION="VRML97 and X3D compliant browser, library, and web-browser plugin"
91 SRC_URI="mirror://sourceforge/freewrl/${P}.tar.bz2"
92 HOMEPAGE="http://freewrl.sourceforge.net/"
93
94 LICENSE="GPL-3"
95 SLOT="0"
96 KEYWORDS="~amd64 ~x86"
97 IUSE="curl debug expat +glew java libeai motif +nsplugin osc +sox static-libs xulrunner"
98
99 COMMONDEPEND="x11-libs/libXau
100 x11-libs/libXdmcp
101 x11-libs/libXext
102 x11-libs/libX11
103 motif? ( x11-libs/openmotif )
104 !motif? ( x11-libs/libXaw )
105 media-libs/mesa
106 glew? ( media-libs/glew )
107 virtual/opengl
108 media-libs/libpng
109 virtual/jpeg
110 media-libs/imlib2
111 >=media-libs/freetype-2
112 media-libs/fontconfig
113 curl? ( net-misc/curl )
114 expat? ( dev-libs/expat )
115 osc? ( media-libs/liblo )
116 !xulrunner? ( dev-lang/spidermonkey )
117 xulrunner? ( net-libs/xulrunner !=dev-lang/spidermonkey-1.8.2* )
118 nsplugin? ( !xulrunner? ( www-client/firefox ) )"
119 DEPEND="${COMMONDEPEND}
120 >=dev-util/pkgconfig-0.22
121 java? ( >=virtual/jdk-1.4 )"
122 RDEPEND="${COMMONDEPEND}
123 media-fonts/dejavu
124 || ( media-gfx/imagemagick
125 media-gfx/graphicsmagick[imagemagick] )
126 app-arch/unzip
127 java? ( >=virtual/jre-1.4 )
128 sox? ( media-sound/sox )"
129
130 src_prepare() {
131 # A hack to get around expat being grabbed from xulrunner
132 if use expat ; then
133 mkdir "${S}/src/lib/include";
134 cp /usr/include/expat.h "${S}/src/lib/include/";
135 cp /usr/include/expat_external.h "${S}/src/lib/include/";
136 fi
137 }
138
139 src_configure() {
140 local myconf="--enable-fontconfig
141 --with-x
142 --with-imageconvert=/usr/bin/convert
143 --with-unzip=/usr/bin/unzip"
144 if use motif; then
145 myconf="${myconf} --with-target=motif --with-statusbar=standard"
146 else
147 myconf="${myconf} --with-target=x11 --with-statusbar=hud"
148 fi
149 if use nsplugin; then
150 myconf="${myconf} --with-plugindir=/usr/$(get_libdir)/${PLUGINS_DIR}"
151 fi
152 if use sox; then
153 myconf="${myconf} --with-soundconv=/usr/bin/sox"
154 fi
155 if ! use expat; then
156 myconf="${myconf} --without-expat"
157 fi
158 if use xulrunner; then
159 # more hack to get around expat being grabbed from xulrunner
160 if use expat ; then
161 myconf="${myconf} --with-expat=${S}/src/lib"
162 fi
163 else
164 # disable the checks for other js libs, in case they are installed
165 if has_version ">=dev-lang/spidermonkey-1.8.5" ; then
166 # spidermonkey-1.8.5 provides a .pc to pkg-config, it should be findable via mozjs185
167 myconf="${myconf} --disable-mozilla-js --disable-xulrunner-js --disable-firefox-js --disable-seamonkey-js --disable-firefox2-js"
168 else
169 myconf="${myconf} --disable-mozjs185 --disable-mozilla-js --disable-xulrunner-js --disable-firefox-js --disable-seamonkey-js"
170 # spidermonkey pre-1.8.5 has no pkg-config, so override ./configure
171 JAVASCRIPT_ENGINE_CFLAGS="-I/usr/include/js -DXP_UNIX"
172 if has_version ">=dev-lang/spidermonkey-1.8" ; then
173 # spidermonkey-1.8 changed the name of the lib
174 JAVASCRIPT_ENGINE_LIBS="-lmozjs"
175 else
176 JAVASCRIPT_ENGINE_LIBS="-ljs"
177 fi
178 if has_version dev-lang/spidermonkey[threadsafe] ; then
179 JAVASCRIPT_ENGINE_CFLAGS="${JAVASCRIPT_ENGINE_CFLAGS} -DJS_THREADSAFE $(pkg-config --cflags nspr)"
180 JAVASCRIPT_ENGINE_LIBS="$(pkg-config --libs nspr) ${JAVASCRIPT_ENGINE_LIBS}"
181 fi
182 export JAVASCRIPT_ENGINE_CFLAGS
183 export JAVASCRIPT_ENGINE_LIBS
184 fi
185 fi
186 econf ${myconf} \
187 $(use_enable curl libcurl) \
188 $(use_with glew) \
189 $(use_enable debug) $(use_enable debug thread_colorized) \
190 $(use_enable libeai) \
191 $(use_enable java) \
192 $(use_enable nsplugin plugin) \
193 $(use_enable osc) \
194 $(use_enable static-libs static) \
195 $(use_enable sox sound)
196 }
197
198 src_install() {
199 emake DESTDIR="${D}" install || die "emake install failed"
200
201 if use java; then
202 java-pkg_dojar src/java/vrml.jar
203 insinto /usr/share/${PN}/lib
204 doins src/java/java.policy
205 # install vrml.jar as a JRE extension
206 dodir /usr/java/packages/lib/ext
207 dosym /usr/share/${PN}/lib/vrml.jar /usr/java/packages/lib/ext/vrml.jar
208 elog "Because vrml.jar requires access to sockets, you will need to incorporate the"
209 elog "contents of /usr/share/${PN}/lib/java.policy into your system or user's default"
210 elog "java policy:"
211 elog " cat /usr/share/${PN}/lib/java.policy >>~/.java.policy"
212 fi
213
214 # remove unneeded .la files (as per Flameeyes' rant)
215 cd "${D}"
216 rm "usr/$(get_libdir)"/*.la "usr/$(get_libdir)/${PLUGINS_DIR}"/*.la
217 }
218
219 pkg_postinst() {
220 elog "By default, FreeWRL expects to find the 'firefox' binary in your include"
221 elog "path. If you do not have firefox installed or you wish to use a different"
222 elog "web browser to open links that are within VRML / X3D files, please be sure to"
223 elog "specify the command via your BROWSER environment variable."
224 }