Gentoo Archives: gentoo-commits

From: "Ian Stakenvicius (axs)" <axs@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-gfx/freewrl: freewrl-1.22.13-r3.ebuild freewrl-9999.ebuild ChangeLog freewrl-1.22.13-r2.ebuild
Date: Mon, 23 Dec 2013 16:20:53
Message-Id: 20131223162049.B7B8C2004E@flycatcher.gentoo.org
1 axs 13/12/23 16:20:49
2
3 Modified: freewrl-9999.ebuild ChangeLog
4 Added: freewrl-1.22.13-r3.ebuild
5 Removed: freewrl-1.22.13-r2.ebuild
6 Log:
7 fixed freewrl.desktop as per bug 495108
8
9 (Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key 2B6559ED)
10
11 Revision Changes Path
12 1.3 media-gfx/freewrl/freewrl-9999.ebuild
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/freewrl/freewrl-9999.ebuild?rev=1.3&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/freewrl/freewrl-9999.ebuild?rev=1.3&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/freewrl/freewrl-9999.ebuild?r1=1.2&r2=1.3
17
18 Index: freewrl-9999.ebuild
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/media-gfx/freewrl/freewrl-9999.ebuild,v
21 retrieving revision 1.2
22 retrieving revision 1.3
23 diff -u -r1.2 -r1.3
24 --- freewrl-9999.ebuild 9 Aug 2013 13:42:13 -0000 1.2
25 +++ freewrl-9999.ebuild 23 Dec 2013 16:20:49 -0000 1.3
26 @@ -1,6 +1,6 @@
27 # Copyright 1999-2013 Gentoo Foundation
28 # Distributed under the terms of the GNU General Public License v2
29 -# $Header: /var/cvsroot/gentoo-x86/media-gfx/freewrl/freewrl-9999.ebuild,v 1.2 2013/08/09 13:42:13 axs Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/media-gfx/freewrl/freewrl-9999.ebuild,v 1.3 2013/12/23 16:20:49 axs Exp $
31
32 EAPI=5
33
34 @@ -70,13 +70,15 @@
35 # list of js libs without .pc support, to disable ./configure auto-checking
36 local spidermonkeys=( mozilla-js xulrunner-js firefox-js firefox2-js seamonkey-js )
37 # list of .pc supported spidermonkeys, to disable ./configure auto-checking
38 - local spidermonkeys_pc=( mozjs17 mozjs187 mozjs185 )
39 + local spidermonkeys_pc=( mozjs187 mozjs185 )
40
41 local myconf="--enable-fontconfig
42 --without-expat
43 + --without-glu
44 --with-x
45 --with-imageconvert=/usr/bin/convert
46 --with-unzip=/usr/bin/unzip
47 + --disable-mozjs-17.0
48 ${spidermonkeys[@]/#/ --disable-}"
49
50 if has_version "<dev-lang/spidermonkey-1.8.5" ; then
51 @@ -111,7 +113,7 @@
52 $(use_enable static-libs static) \
53 $(use_enable sox sound) \
54 $(usex sox "--with-soundconv=/usr/bin/sox") \
55 - $(usex motif "--with-target=motif" "--with-target=X11") \
56 + $(usex motif "--with-target=motif" "--with-target=x11") \
57 $(usex motif "--with-statusbar=standard" "--with-statusbar=hud")
58 }
59
60
61
62
63 1.53 media-gfx/freewrl/ChangeLog
64
65 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/freewrl/ChangeLog?rev=1.53&view=markup
66 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/freewrl/ChangeLog?rev=1.53&content-type=text/plain
67 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/freewrl/ChangeLog?r1=1.52&r2=1.53
68
69 Index: ChangeLog
70 ===================================================================
71 RCS file: /var/cvsroot/gentoo-x86/media-gfx/freewrl/ChangeLog,v
72 retrieving revision 1.52
73 retrieving revision 1.53
74 diff -u -r1.52 -r1.53
75 --- ChangeLog 9 Aug 2013 13:42:13 -0000 1.52
76 +++ ChangeLog 23 Dec 2013 16:20:49 -0000 1.53
77 @@ -1,6 +1,13 @@
78 # ChangeLog for media-gfx/freewrl
79 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
80 -# $Header: /var/cvsroot/gentoo-x86/media-gfx/freewrl/ChangeLog,v 1.52 2013/08/09 13:42:13 axs Exp $
81 +# $Header: /var/cvsroot/gentoo-x86/media-gfx/freewrl/ChangeLog,v 1.53 2013/12/23 16:20:49 axs Exp $
82 +
83 +*freewrl-1.22.13-r3 (23 Dec 2013)
84 +
85 + 23 Dec 2013; Ian Stakenvicius <axs@g.o>
86 + +files/freewrl-1.22.13-desktop.patch, +freewrl-1.22.13-r3.ebuild,
87 + -freewrl-1.22.13-r2.ebuild, freewrl-9999.ebuild:
88 + fixed freewrl.desktop as per bug 495108
89
90 09 Aug 2013; Ian Stakenvicius <axs@g.o> freewrl-1.22.13-r1.ebuild,
91 freewrl-1.22.13-r2.ebuild, freewrl-9999.ebuild:
92
93
94
95 1.1 media-gfx/freewrl/freewrl-1.22.13-r3.ebuild
96
97 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/freewrl/freewrl-1.22.13-r3.ebuild?rev=1.1&view=markup
98 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/freewrl/freewrl-1.22.13-r3.ebuild?rev=1.1&content-type=text/plain
99
100 Index: freewrl-1.22.13-r3.ebuild
101 ===================================================================
102 # Copyright 1999-2013 Gentoo Foundation
103 # Distributed under the terms of the GNU General Public License v2
104 # $Header: /var/cvsroot/gentoo-x86/media-gfx/freewrl/freewrl-1.22.13-r3.ebuild,v 1.1 2013/12/23 16:20:49 axs Exp $
105
106 EAPI=5
107
108 inherit autotools nsplugins eutils flag-o-matic java-pkg-opt-2 multilib
109
110 DESCRIPTION="VRML97 and X3D compliant browser, library, and web-browser plugin"
111 HOMEPAGE="http://freewrl.sourceforge.net/"
112 SRC_URI="mirror://sourceforge/freewrl/${P}.1.tar.bz2"
113
114 LICENSE="GPL-3"
115 SLOT="0"
116 KEYWORDS="~amd64 ~x86"
117 IUSE="curl debug +glew java libeai motif +nsplugin osc +sox static-libs"
118
119 COMMONDEPEND="x11-libs/libXau
120 x11-libs/libXdmcp
121 x11-libs/libXext
122 x11-libs/libX11
123 motif? ( x11-libs/motif )
124 !motif? ( x11-libs/libXaw )
125 media-libs/mesa
126 glew? ( media-libs/glew )
127 virtual/opengl
128 media-libs/libpng
129 virtual/jpeg
130 media-libs/imlib2
131 >=media-libs/freetype-2
132 media-libs/fontconfig
133 curl? ( net-misc/curl )
134 osc? ( media-libs/liblo )
135 dev-lang/spidermonkey:0="
136 DEPEND="${COMMONDEPEND}
137 virtual/pkgconfig
138 java? ( >=virtual/jdk-1.4 )
139 nsplugin? ( net-misc/npapi-sdk )"
140 RDEPEND="${COMMONDEPEND}
141 media-fonts/dejavu
142 || ( media-gfx/imagemagick
143 media-gfx/graphicsmagick[imagemagick] )
144 app-arch/unzip
145 java? ( >=virtual/jre-1.4 )
146 sox? ( media-sound/sox )"
147
148 src_prepare() {
149 epatch "${FILESDIR}"/${P}-fontconfig-match.patch
150 if has_version ">=dev-lang/spidermonkey-1.8.7" ; then
151 epatch "${FILESDIR}"/${P}-mozjs187-config.patch
152 eautoreconf
153 fi
154 epatch "${FILESDIR}"/${P}-desktop.patch
155 }
156
157 src_configure() {
158 local myconf="--enable-fontconfig
159 --without-expat
160 --with-x
161 --with-imageconvert=/usr/bin/convert
162 --with-unzip=/usr/bin/unzip"
163 if use motif; then
164 myconf+=" --with-target=motif --with-statusbar=standard"
165 else
166 myconf+=" --with-target=x11 --with-statusbar=hud"
167 fi
168 if use nsplugin; then
169 myconf+=" --with-plugindir=/usr/$(get_libdir)/${PLUGINS_DIR}"
170 myconf+=" --disable-mozilla-plugin --disable-xulrunner-plugin"
171 fi
172 if use sox; then
173 myconf+=" --with-soundconv=/usr/bin/sox"
174 fi
175 # disable the checks for other js libs, in case they are installed
176 if has_version ">=dev-lang/spidermonkey-1.8.5" ; then
177 # spidermonkey-1.8.5 provides a .pc to pkg-config, it should be findable via mozjs185
178 for x in mozilla-js xulrunner-js firefox-js firefox2-js seamonkey-js; do
179 myconf+=" --disable-${x}"
180 done
181 else
182 for x in mozjs187 mozjs185 mozilla-js xulrunner-js firefox-js seamonkey-js; do
183 myconf+=" --disable-${x}"
184 done
185 # spidermonkey pre-1.8.5 has no pkg-config, so override ./configure
186 JAVASCRIPT_ENGINE_CFLAGS="-I/usr/include/js -DXP_UNIX"
187 if has_version ">=dev-lang/spidermonkey-1.8" ; then
188 # spidermonkey-1.8 changed the name of the lib
189 JAVASCRIPT_ENGINE_LIBS="-lmozjs"
190 else
191 JAVASCRIPT_ENGINE_LIBS="-ljs"
192 fi
193 if has_version dev-lang/spidermonkey[threadsafe] ; then
194 JAVASCRIPT_ENGINE_CFLAGS+=" -DJS_THREADSAFE $(pkg-config --cflags nspr)"
195 JAVASCRIPT_ENGINE_LIBS="$(pkg-config --libs nspr) ${JAVASCRIPT_ENGINE_LIBS}"
196 fi
197 export JAVASCRIPT_ENGINE_CFLAGS
198 export JAVASCRIPT_ENGINE_LIBS
199 fi
200 econf ${myconf} \
201 $(use_enable curl libcurl) \
202 $(use_with glew) \
203 $(use_enable debug) $(use_enable debug thread_colorized) \
204 $(use_enable libeai) \
205 $(use_enable java) \
206 $(use_enable nsplugin plugin) \
207 $(use_enable osc) \
208 $(use_enable static-libs static) \
209 $(use_enable sox sound)
210 }
211
212 src_install() {
213 emake DESTDIR="${D}" install
214
215 if use java; then
216 insinto /usr/share/${PN}/lib
217 doins src/java/java.policy
218 java-pkg_regjar src/java/vrml.jar
219 # install vrml.jar as a JRE extension
220 dodir /usr/java/packages/lib/ext
221 dosym /usr/share/${PN}/lib/vrml.jar /usr/java/packages/lib/ext/vrml.jar
222 if ! has_version "media-gfx/freewrl[java]" ; then
223 elog "Because vrml.jar requires access to sockets, you will need to incorporate the"
224 elog "contents of /usr/share/${PN}/lib/java.policy into your system or user's default"
225 elog "java policy:"
226 elog " cat /usr/share/${PN}/lib/java.policy >>~/.java.policy"
227 fi
228 fi
229
230 # remove unneeded .la files (as per Flameeyes' rant)
231 cd "${D}"
232 rm "usr/$(get_libdir)"/*.la "usr/$(get_libdir)/${PLUGINS_DIR}"/*.la
233 }
234
235 pkg_postinst() {
236 if [[ -z ${REPLACING_VERSIONS} ]]; then
237 elog "By default, FreeWRL expects to find the 'firefox' binary in your include"
238 elog "path. If you do not have firefox installed or you wish to use a different"
239 elog "web browser to open links that are within VRML / X3D files, please be sure to"
240 elog "specify the command via your BROWSER environment variable."
241 fi
242 }