Gentoo Archives: gentoo-commits

From: Alexandre Restovtsev <tetromino@×××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/gnome:gnome-next commit in: dev-libs/gjs/, dev-libs/gjs/files/
Date: Sat, 30 Jul 2011 19:01:26
Message-Id: a16cbdc803bc9f5f8347d501a18d03741204cc0b.tetromino@gentoo
1 commit: a16cbdc803bc9f5f8347d501a18d03741204cc0b
2 Author: Alexandre Rostovtsev <tetromino <AT> gmail <DOT> com>
3 AuthorDate: Sat Jul 30 18:59:37 2011 +0000
4 Commit: Alexandre Restovtsev <tetromino <AT> gmail <DOT> com>
5 CommitDate: Sat Jul 30 18:59:37 2011 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gnome.git;a=commit;h=a16cbdc8
7
8 dev-libs/gjs/files: 1.29.15-r1 → 1.29.16
9
10 Version bump incorporating the spidermonkey and gi header patches.
11
12 ---
13 .../files/gjs-1.29.15-automagic-spidermonkey.patch | 126 --------------------
14 .../gjs/files/gjs-1.29.15-install-gi-headers.patch | 60 ---------
15 .../{gjs-1.29.15-r1.ebuild => gjs-1.29.16.ebuild} | 11 +--
16 3 files changed, 1 insertions(+), 196 deletions(-)
17
18 diff --git a/dev-libs/gjs/files/gjs-1.29.15-automagic-spidermonkey.patch b/dev-libs/gjs/files/gjs-1.29.15-automagic-spidermonkey.patch
19 deleted file mode 100644
20 index 5dd4321..0000000
21 --- a/dev-libs/gjs/files/gjs-1.29.15-automagic-spidermonkey.patch
22 +++ /dev/null
23 @@ -1,126 +0,0 @@
24 -From 57e3cd2303f8d36ae232ec3df986d986f1457361 Mon Sep 17 00:00:00 2001
25 -From: Alexandre Rostovtsev <tetromino@×××××.com>
26 -Date: Thu, 28 Jul 2011 03:40:49 -0400
27 -Subject: [PATCH] Make choice of javascript package non-automagic
28 -
29 -Add a --with-js-package configure flag to allow selecting which
30 -javascript package to build against, e.g. to force building against
31 -xulrunner on a system that happens to have spidermonkey installed.
32 -
33 -By default, the behavior is the same as before (first check for
34 -mozjs185, then for mozilla-js).
35 -
36 -Addresses bug
37 ----
38 - configure.ac | 84 +++++++++++++++++++++++++++++++++------------------------
39 - 1 files changed, 49 insertions(+), 35 deletions(-)
40 -
41 -diff --git a/configure.ac b/configure.ac
42 -index 3b74bc6..38213e3 100644
43 ---- a/configure.ac
44 -+++ b/configure.ac
45 -@@ -91,52 +91,66 @@ m4_define(gobject_required_version, 2.18.0)
46 - AC_CHECK_HEADERS([malloc.h])
47 - AC_CHECK_FUNCS(mallinfo)
48 -
49 --# First, try separate mozjs185 release
50 --AC_MSG_CHECKING([for standalone mozjs185])
51 --PKG_CHECK_EXISTS([mozjs185], JS_PACKAGE=mozjs185,)
52 --if test x$JS_PACKAGE != x; then
53 -- FIREFOX_JS_LIBDIR=
54 -- MOZJS_IS_STANDALONE=yes
55 -- AC_MSG_RESULT([yes])
56 -- PKG_CHECK_MODULES(JS, $JS_PACKAGE)
57 --else
58 -- AC_MSG_RESULT([no])
59 --fi
60 -+AC_ARG_WITH([js-package],
61 -+ AS_HELP_STRING([--with-js-package[=@<:@auto/mozjs185/mozilla-js@:>@]],
62 -+ [Choose JavaScript package: 'mozjs185' (i.e. spidermonkey), 'mozilla-js' (i.e. xulrunner or firefox), or 'auto' (detect automatically)]),
63 -+ [with_js_package=$withval],
64 -+ [with_js_package="auto"])
65 -
66 --# If we didn't find mozjs185 (the standalone spidermonkey), look for mozilla-js
67 --if test x$JS_PACKAGE = x; then
68 -- AC_MSG_CHECKING([for mozilla-js 1.9.2])
69 -- PKG_CHECK_EXISTS([mozilla-js >= 1.9.2], JS_PACKAGE=mozilla-js,)
70 -+# First, try separate mozjs185 release
71 -+if test $with_js_package = mozjs185 -o $with_js_package = auto; then
72 -+ AC_MSG_CHECKING([for standalone mozjs185])
73 -+ PKG_CHECK_EXISTS([mozjs185], JS_PACKAGE=mozjs185,)
74 - if test x$JS_PACKAGE != x; then
75 -+ FIREFOX_JS_LIBDIR=
76 -+ MOZJS_IS_STANDALONE=yes
77 - AC_MSG_RESULT([yes])
78 -+ PKG_CHECK_MODULES(JS, $JS_PACKAGE)
79 - else
80 -- AC_MSG_ERROR([Could not find mozilla-js 1.9.2])
81 -+ AC_MSG_RESULT([no])
82 - fi
83 -+fi
84 -
85 -- PKG_CHECK_MODULES(JS, $JS_PACKAGE)
86 --
87 -- ## some flavors of Firefox .pc only set sdkdir, not libdir
88 -- FIREFOX_JS_SDKDIR=`$PKG_CONFIG --variable=sdkdir $JS_PACKAGE`
89 -- FIREFOX_JS_LIBDIR=`$PKG_CONFIG --variable=libdir $JS_PACKAGE`
90 --
91 -- ## Ubuntu does not set libdir in mozilla-js.pc
92 -- if test x"$FIREFOX_JS_LIBDIR" = x; then
93 -- ## Ubuntu returns xulrunner-devel as the sdkdir, but for the
94 -- ## libdir we want the runtime location on the target system,
95 -- ## so can't use -devel.
96 -- ## The library is in the non-devel directory also.
97 -- ## Don't ask me why it's in two places.
98 -- FIREFOX_JS_LIBDIR=`echo "$FIREFOX_JS_SDKDIR" | sed -e 's/-devel//g'`
99 -- if ! test -d "$FIREFOX_JS_LIBDIR"; then
100 -- FIREFOX_JS_LIBDIR=
101 -+if test $with_js_package = mozilla-js -o $with_js_package = auto; then
102 -+ # If we didn't find mozjs185 (the standalone spidermonkey), look for mozilla-js
103 -+ if test x$JS_PACKAGE = x; then
104 -+ AC_MSG_CHECKING([for mozilla-js 1.9.2])
105 -+ PKG_CHECK_EXISTS([mozilla-js >= 1.9.2], JS_PACKAGE=mozilla-js,)
106 -+ if test x$JS_PACKAGE != x; then
107 -+ AC_MSG_RESULT([yes])
108 -+ else
109 -+ AC_MSG_ERROR([Could not find mozilla-js 1.9.2])
110 -+ fi
111 -+
112 -+ PKG_CHECK_MODULES(JS, $JS_PACKAGE)
113 -+
114 -+ ## some flavors of Firefox .pc only set sdkdir, not libdir
115 -+ FIREFOX_JS_SDKDIR=`$PKG_CONFIG --variable=sdkdir $JS_PACKAGE`
116 -+ FIREFOX_JS_LIBDIR=`$PKG_CONFIG --variable=libdir $JS_PACKAGE`
117 -+
118 -+ ## Ubuntu does not set libdir in mozilla-js.pc
119 -+ if test x"$FIREFOX_JS_LIBDIR" = x; then
120 -+ ## Ubuntu returns xulrunner-devel as the sdkdir, but for the
121 -+ ## libdir we want the runtime location on the target system,
122 -+ ## so can't use -devel.
123 -+ ## The library is in the non-devel directory also.
124 -+ ## Don't ask me why it's in two places.
125 -+ FIREFOX_JS_LIBDIR=`echo "$FIREFOX_JS_SDKDIR" | sed -e 's/-devel//g'`
126 -+ if ! test -d "$FIREFOX_JS_LIBDIR"; then
127 -+ FIREFOX_JS_LIBDIR=
128 -+ fi
129 - fi
130 -- fi
131 -
132 -- if test x"$FIREFOX_JS_LIBDIR" = x; then
133 -- AC_MSG_ERROR([Could not figure out where the Firefox JavaScript library lives])
134 -+ if test x"$FIREFOX_JS_LIBDIR" = x; then
135 -+ AC_MSG_ERROR([Could not figure out where the Firefox JavaScript library lives])
136 -+ fi
137 - fi
138 - fi
139 -
140 -+if test x$JS_PACKAGE = x; then
141 -+ AC_MSG_ERROR([No appropriate JavaScript package found])
142 -+fi
143 -+
144 - echo "Using JS_PACKAGE: $JS_PACKAGE"
145 - echo "Using JS_CFLAGS: $JS_CFLAGS"
146 - echo "Using JS_LIBS: $JS_LIBS"
147 ---
148 -1.7.6
149 -
150
151 diff --git a/dev-libs/gjs/files/gjs-1.29.15-install-gi-headers.patch b/dev-libs/gjs/files/gjs-1.29.15-install-gi-headers.patch
152 deleted file mode 100644
153 index 6536122..0000000
154 --- a/dev-libs/gjs/files/gjs-1.29.15-install-gi-headers.patch
155 +++ /dev/null
156 @@ -1,60 +0,0 @@
157 -From 4217cb5e07519ea41fdff9b906b93ce6946c109e Mon Sep 17 00:00:00 2001
158 -From: Colin Walters <walters@××××××.org>
159 -Date: Sat, 30 Jul 2011 15:40:25 +0000
160 -Subject: Install gi/ headers again
161 -
162 -libpeas currently requires these; we were installing them before, and
163 -since we export almost all of our internals in for gjs-module.pc, might
164 -as well keep doing these for now.
165 -
166 -https://bugzilla.gnome.org/show_bug.cgi?id=655482
167 ----
168 -diff --git a/Makefile.am b/Makefile.am
169 -index edf0c25..b088289 100644
170 ---- a/Makefile.am
171 -+++ b/Makefile.am
172 -@@ -36,7 +36,20 @@ nobase_gjs_module_include_HEADERS = \
173 - gjs/importer.h \
174 - gjs/jsapi-util.h \
175 - gjs/mem.h \
176 -- gjs/native.h
177 -+ gjs/native.h \
178 -+ gi/ns.h \
179 -+ gi/object.h \
180 -+ gi/foreign.h \
181 -+ gi/param.h \
182 -+ gi/repo.h \
183 -+ gi/union.h \
184 -+ gi/value.h \
185 -+ gi/arg.h \
186 -+ gi/boxed.h \
187 -+ gi/closure.h \
188 -+ gi/enumeration.h \
189 -+ gi/function.h \
190 -+ gi/keep-alive.h
191 -
192 - noinst_HEADERS += \
193 - gjs/jsapi-private.h \
194 -@@ -108,20 +121,7 @@ libgjs_la_SOURCES = \
195 -
196 - # For historical reasons, some files live in gi/
197 - libgjs_la_SOURCES += \
198 -- gi/arg.h \
199 -- gi/boxed.h \
200 -- gi/closure.h \
201 -- gi/enumeration.h \
202 -- gi/function.h \
203 -- gi/keep-alive.h \
204 - gi/gjs_gi_trace.h \
205 -- gi/ns.h \
206 -- gi/object.h \
207 -- gi/foreign.h \
208 -- gi/param.h \
209 -- gi/repo.h \
210 -- gi/union.h \
211 -- gi/value.h \
212 - gi/arg.c \
213 - gi/boxed.c \
214 - gi/closure.c \
215 ---
216 -cgit v0.9
217
218 diff --git a/dev-libs/gjs/gjs-1.29.15-r1.ebuild b/dev-libs/gjs/gjs-1.29.16.ebuild
219 similarity index 84%
220 rename from dev-libs/gjs/gjs-1.29.15-r1.ebuild
221 rename to dev-libs/gjs/gjs-1.29.16.ebuild
222 index 1a2fc2d..224c103 100644
223 --- a/dev-libs/gjs/gjs-1.29.15-r1.ebuild
224 +++ b/dev-libs/gjs/gjs-1.29.16.ebuild
225 @@ -8,7 +8,7 @@ GNOME_TARBALL_SUFFIX="xz"
226 GNOME2_LA_PUNT="yes"
227 PYTHON_DEPEND="2"
228
229 -inherit autotools eutils gnome2 python virtualx
230 +inherit gnome2 python virtualx
231 if [[ ${PV} = 9999 ]]; then
232 inherit gnome2-live
233 fi
234 @@ -60,15 +60,6 @@ pkg_setup() {
235 }
236
237 src_prepare() {
238 - # Make spidermonkey detection non-automagic
239 - # https://bugzilla.gnome.org/show_bug.cgi?id=655479
240 - epatch "${FILESDIR}/${P}-automagic-spidermonkey.patch"
241 -
242 - # Install gi/ headers again, help unbreak libpeas; will be in next release
243 - epatch "${FILESDIR}/${P}-install-gi-headers.patch"
244 -
245 - [[ ${PV} != 9999 ]] && eautoreconf
246 -
247 gnome2_src_prepare
248 python_convert_shebangs 2 "${S}"/scripts/make-tests
249 }