1 |
axs 13/05/29 20:40:01 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: freewrl-9999.ebuild |
5 |
Log: |
6 |
added live ebuild. NOTE, upstream does NOT keep HEAD in a buildable state, ymmv |
7 |
|
8 |
(Portage version: 2.1.11.62/cvs/Linux x86_64, signed Manifest commit with key 2B6559ED) |
9 |
|
10 |
Revision Changes Path |
11 |
1.51 media-gfx/freewrl/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/freewrl/ChangeLog?rev=1.51&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/freewrl/ChangeLog?rev=1.51&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/freewrl/ChangeLog?r1=1.50&r2=1.51 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/media-gfx/freewrl/ChangeLog,v |
20 |
retrieving revision 1.50 |
21 |
retrieving revision 1.51 |
22 |
diff -u -r1.50 -r1.51 |
23 |
--- ChangeLog 4 Nov 2012 01:21:28 -0000 1.50 |
24 |
+++ ChangeLog 29 May 2013 20:40:01 -0000 1.51 |
25 |
@@ -1,6 +1,12 @@ |
26 |
# ChangeLog for media-gfx/freewrl |
27 |
-# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/media-gfx/freewrl/ChangeLog,v 1.50 2012/11/04 01:21:28 axs Exp $ |
29 |
+# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 |
30 |
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/freewrl/ChangeLog,v 1.51 2013/05/29 20:40:01 axs Exp $ |
31 |
+ |
32 |
+*freewrl-9999 (29 May 2013) |
33 |
+ |
34 |
+ 29 May 2013; Ian Stakenvicius <axs@g.o> +freewrl-9999.ebuild: |
35 |
+ added live ebuild. NOTE, upstream does NOT keep HEAD in a buildable state, |
36 |
+ ymmv |
37 |
|
38 |
*freewrl-1.22.13-r2 (04 Nov 2012) |
39 |
|
40 |
@@ -219,4 +225,3 @@ |
41 |
27 Jun 2004; Hanno Boeck <hanno@g.o> |
42 |
+files/FreeWRL-1.06+gentoo_pd.diff, +freewrl-1.06.ebuild: |
43 |
User submitted ebuild from Denis Pitzalis in bug #22358. |
44 |
- |
45 |
|
46 |
|
47 |
|
48 |
1.1 media-gfx/freewrl/freewrl-9999.ebuild |
49 |
|
50 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/freewrl/freewrl-9999.ebuild?rev=1.1&view=markup |
51 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/freewrl/freewrl-9999.ebuild?rev=1.1&content-type=text/plain |
52 |
|
53 |
Index: freewrl-9999.ebuild |
54 |
=================================================================== |
55 |
# Copyright 1999-2013 Gentoo Foundation |
56 |
# Distributed under the terms of the GNU General Public License v2 |
57 |
# $Header: /var/cvsroot/gentoo-x86/media-gfx/freewrl/freewrl-9999.ebuild,v 1.1 2013/05/29 20:40:01 axs Exp $ |
58 |
|
59 |
EAPI=5 |
60 |
|
61 |
inherit autotools nsplugins eutils flag-o-matic java-pkg-opt-2 multilib |
62 |
|
63 |
if [[ ${PV} == "9999" ]]; then |
64 |
inherit cvs |
65 |
ECVS_SERVER="freewrl.cvs.sourceforge.net:/cvsroot/freewrl/" |
66 |
ECVS_USER="anonymous" |
67 |
ECVS_PASS="" |
68 |
ECVS_AUTH="pserver" |
69 |
ECVS_MODULE="freewrl/freex3d" |
70 |
ECVS_TOP_DIR="${DISTDIR}/cvs-src/freewrl/freex3d" |
71 |
S="${WORKDIR}/freewrl/freex3d" |
72 |
SRC_URI= |
73 |
KEYWORDS= |
74 |
else |
75 |
SRC_URI="mirror://sourceforge/freewrl/${P}.1.tar.bz2" |
76 |
KEYWORDS="~amd64 ~x86" |
77 |
fi |
78 |
|
79 |
DESCRIPTION="VRML97 and X3D compliant browser, library, and web-browser plugin" |
80 |
HOMEPAGE="http://freewrl.sourceforge.net/" |
81 |
LICENSE="GPL-3" |
82 |
SLOT="0" |
83 |
IUSE="curl debug +glew java libeai motif +nsplugin osc +sox static-libs" |
84 |
|
85 |
COMMONDEPEND="x11-libs/libXau |
86 |
x11-libs/libXdmcp |
87 |
x11-libs/libXext |
88 |
x11-libs/libX11 |
89 |
motif? ( x11-libs/motif ) |
90 |
!motif? ( x11-libs/libXaw ) |
91 |
media-libs/mesa |
92 |
glew? ( media-libs/glew ) |
93 |
virtual/opengl |
94 |
media-libs/libpng |
95 |
virtual/jpeg |
96 |
media-libs/imlib2 |
97 |
>=media-libs/freetype-2 |
98 |
media-libs/fontconfig |
99 |
curl? ( net-misc/curl ) |
100 |
osc? ( media-libs/liblo ) |
101 |
dev-lang/spidermonkey:=" |
102 |
DEPEND="${COMMONDEPEND} |
103 |
virtual/pkgconfig |
104 |
java? ( >=virtual/jdk-1.4 ) |
105 |
nsplugin? ( net-misc/npapi-sdk )" |
106 |
RDEPEND="${COMMONDEPEND} |
107 |
media-fonts/dejavu |
108 |
|| ( media-gfx/imagemagick |
109 |
media-gfx/graphicsmagick[imagemagick] ) |
110 |
app-arch/unzip |
111 |
java? ( >=virtual/jre-1.4 ) |
112 |
sox? ( media-sound/sox )" |
113 |
|
114 |
src_prepare() { |
115 |
if [[ ${PV} != "9999" ]]; then |
116 |
epatch "${FILESDIR}"/${P}-fontconfig-match.patch |
117 |
epatch "${FILESDIR}"/${P}-mozjs187-config.patch |
118 |
fi |
119 |
epatch_user |
120 |
eautoreconf |
121 |
} |
122 |
|
123 |
src_configure() { |
124 |
# list of js libs without .pc support, to disable ./configure auto-checking |
125 |
local spidermonkeys=( mozilla-js xulrunner-js firefox-js firefox2-js seamonkey-js ) |
126 |
# list of .pc supported spidermonkeys, to disable ./configure auto-checking |
127 |
local spidermonkeys_pc=( mozjs17 mozjs187 mozjs185 ) |
128 |
|
129 |
local myconf="--enable-fontconfig |
130 |
--without-expat |
131 |
--with-x |
132 |
--with-imageconvert=/usr/bin/convert |
133 |
--with-unzip=/usr/bin/unzip |
134 |
${spidermonkeys[@]/#/ --disable-}" |
135 |
|
136 |
if has_version "<dev-lang/spidermonkey-1.8.5" ; then |
137 |
# spidermonkey pre-1.8.5 has no pkg-config, so override ./configure |
138 |
myconf+="${spidermonkeys_pc[@]/#/ --disable-}" |
139 |
JAVASCRIPT_ENGINE_CFLAGS="-I/usr/include/js -DXP_UNIX" |
140 |
if has_version ">=dev-lang/spidermonkey-1.8" ; then |
141 |
# spidermonkey-1.8 changed the name of the lib |
142 |
JAVASCRIPT_ENGINE_LIBS="-lmozjs" |
143 |
else |
144 |
JAVASCRIPT_ENGINE_LIBS="-ljs" |
145 |
fi |
146 |
if has_version dev-lang/spidermonkey[threadsafe] ; then |
147 |
JAVASCRIPT_ENGINE_CFLAGS+=" -DJS_THREADSAFE $(pkg-config --cflags nspr)" |
148 |
JAVASCRIPT_ENGINE_LIBS="$(pkg-config --libs nspr) ${JAVASCRIPT_ENGINE_LIBS}" |
149 |
fi |
150 |
export JAVASCRIPT_ENGINE_CFLAGS |
151 |
export JAVASCRIPT_ENGINE_LIBS |
152 |
fi |
153 |
if use nsplugin; then |
154 |
myconf+=" --with-plugindir=/usr/$(get_libdir)/${PLUGINS_DIR}" |
155 |
myconf+=" --disable-mozilla-plugin --disable-xulrunner-plugin" |
156 |
fi |
157 |
econf ${myconf} \ |
158 |
$(use_enable curl libcurl) \ |
159 |
$(use_with glew) \ |
160 |
$(use_enable debug) $(use_enable debug thread_colorized) \ |
161 |
$(use_enable libeai) \ |
162 |
$(use_enable java) \ |
163 |
$(use_enable nsplugin plugin) \ |
164 |
$(use_enable osc) \ |
165 |
$(use_enable static-libs static) \ |
166 |
$(use_enable sox sound) \ |
167 |
$(usex sox "--with-soundconv=/usr/bin/sox") \ |
168 |
$(usex motif "--with-target=motif" "--with-target=X11") \ |
169 |
$(usex motif "--with-statusbar=standard" "--with-statusbar=hud") |
170 |
} |
171 |
|
172 |
src_install() { |
173 |
emake DESTDIR="${D}" install |
174 |
|
175 |
if use java; then |
176 |
insinto /usr/share/${PN}/lib |
177 |
doins src/java/java.policy |
178 |
java-pkg_regjar src/java/vrml.jar |
179 |
# install vrml.jar as a JRE extension |
180 |
dodir /usr/java/packages/lib/ext |
181 |
dosym /usr/share/${PN}/lib/vrml.jar /usr/java/packages/lib/ext/vrml.jar |
182 |
if ! has_version "media-gfx/freewrl[java]" ; then |
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 |
elog " cat /usr/share/${PN}/lib/java.policy >>~/.java.policy" |
187 |
fi |
188 |
fi |
189 |
|
190 |
# remove unneeded .la files (as per Flameeyes' rant) |
191 |
cd "${D}" |
192 |
rm "usr/$(get_libdir)"/*.la "usr/$(get_libdir)/${PLUGINS_DIR}"/*.la |
193 |
} |
194 |
|
195 |
pkg_postinst() { |
196 |
if [[ -z ${REPLACING_VERSIONS} ]]; then |
197 |
elog "By default, FreeWRL expects to find the 'firefox' binary in your include" |
198 |
elog "path. If you do not have firefox installed or you wish to use a different" |
199 |
elog "web browser to open links that are within VRML / X3D files, please be sure to" |
200 |
elog "specify the command via your BROWSER environment variable." |
201 |
fi |
202 |
} |