1 |
commit: 6458568d4caf17cc987048da66c6d7d1bf61b305 |
2 |
Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Mar 31 17:50:25 2020 +0000 |
4 |
Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Mar 31 17:50:39 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6458568d |
7 |
|
8 |
dev-libs/nspr: drop old |
9 |
|
10 |
Package-Manager: Portage-2.3.96, Repoman-2.3.22 |
11 |
Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org> |
12 |
|
13 |
dev-libs/nspr/Manifest | 3 - |
14 |
dev-libs/nspr/files/nspr-4.7.0-prtime.patch | 26 ------ |
15 |
dev-libs/nspr/nspr-4.20.ebuild | 118 --------------------------- |
16 |
dev-libs/nspr/nspr-4.22.ebuild | 120 --------------------------- |
17 |
dev-libs/nspr/nspr-4.24.ebuild | 122 ---------------------------- |
18 |
5 files changed, 389 deletions(-) |
19 |
|
20 |
diff --git a/dev-libs/nspr/Manifest b/dev-libs/nspr/Manifest |
21 |
index 170622eaf18..131b1010eee 100644 |
22 |
--- a/dev-libs/nspr/Manifest |
23 |
+++ b/dev-libs/nspr/Manifest |
24 |
@@ -1,4 +1 @@ |
25 |
-DIST nspr-4.20.tar.gz 1140892 BLAKE2B 2cb96b7a40c307f904dac038f016b5c0e527aaf673463cbcb59d8bb6c9d0239219402587d624f48804e33f43abd4427c87f267bf1a88a0dacffcc408ac15dc49 SHA512 22fdf7627f450b0594ebccaee170098e1a8cd0f429fd44816f1322756002ced3d69cf686c3f69f7cb30b8132d3605a9fce5457ab99d0002e6af11a3408a5c949 |
26 |
-DIST nspr-4.22.tar.gz 1078701 BLAKE2B 8b37031ffebf79320c91ce674d7c3a0cfbef25bfb006cb9aaff44f090110b35ea2768f83dae4a793723f8e2f3aecabc1a4b8042cd1b0ab0aade30781e43f9d62 SHA512 d34271f0692905162f71b02cf6f62a8ebf779159335e4ed286ee8d51faaad633a61c9392bada86d976bca2b5aa47c8760085de30dbd13c9cfa423582c31db37b |
27 |
-DIST nspr-4.24.tar.gz 1078825 BLAKE2B 3a773768c31334fa4f3f406d838d430dccfbcf5f7bd34dca422b199265f17fc08ef3d5d1e6df5468efeeeace8b5f8a38ece518e6bdbcdf811c2642d43be80c6c SHA512 b020031ed7a8997099c11e0772779c7b10d15b4f6b14e2b1832732943e8b8224afa952ce04a1914c1553af9d3973a6d9cacf08058ee6fff35102e3b2ec0943c1 |
28 |
DIST nspr-4.25.tar.gz 1079633 BLAKE2B 377e5ec0e60cca13f1ee988adb10870bbb6cb9e4eb61e4434152418d4f8d446741a192d7019298ec2669b8e190cacb6a1ca9c4b2838e9b14dd3590ed40facdd2 SHA512 b9aa576e0da37e8729088fe559d94030cf18f277c1f7a30104d3088a804913343ed884645c0adb62144da475e20934b359f897bf3ae9a6ebb5f9daf283d5a562 |
29 |
|
30 |
diff --git a/dev-libs/nspr/files/nspr-4.7.0-prtime.patch b/dev-libs/nspr/files/nspr-4.7.0-prtime.patch |
31 |
deleted file mode 100644 |
32 |
index 2de3ba34457..00000000000 |
33 |
--- a/dev-libs/nspr/files/nspr-4.7.0-prtime.patch |
34 |
+++ /dev/null |
35 |
@@ -1,26 +0,0 @@ |
36 |
---- a/pr/src/misc/prtime.c |
37 |
-+++ b/pr/src/misc/prtime.c |
38 |
-@@ -1536,7 +1536,7 @@ |
39 |
- case TT_EET: zone_offset = 2 * 60; break; |
40 |
- case TT_JST: zone_offset = 9 * 60; break; |
41 |
- default: |
42 |
-- PR_ASSERT (0); |
43 |
-+ return PR_FAILURE; |
44 |
- break; |
45 |
- } |
46 |
- } |
47 |
-@@ -1578,11 +1578,12 @@ |
48 |
- struct tm localTime; |
49 |
- time_t secs; |
50 |
- |
51 |
-- PR_ASSERT(result->tm_month > -1 && |
52 |
-+ if (!(result->tm_month > -1 && |
53 |
- result->tm_mday > 0 && |
54 |
- result->tm_hour > -1 && |
55 |
- result->tm_min > -1 && |
56 |
-- result->tm_sec > -1); |
57 |
-+ result->tm_sec > -1)) |
58 |
-+ return PR_FAILURE; |
59 |
- |
60 |
- /* |
61 |
- * To obtain time_t from a tm structure representing the local |
62 |
|
63 |
diff --git a/dev-libs/nspr/nspr-4.20.ebuild b/dev-libs/nspr/nspr-4.20.ebuild |
64 |
deleted file mode 100644 |
65 |
index 7acc7bcb527..00000000000 |
66 |
--- a/dev-libs/nspr/nspr-4.20.ebuild |
67 |
+++ /dev/null |
68 |
@@ -1,118 +0,0 @@ |
69 |
-# Copyright 1999-2020 Gentoo Authors |
70 |
-# Distributed under the terms of the GNU General Public License v2 |
71 |
- |
72 |
-EAPI=7 |
73 |
- |
74 |
-inherit autotools toolchain-funcs multilib-minimal |
75 |
- |
76 |
-MIN_PV="$(ver_cut 2)" |
77 |
- |
78 |
-DESCRIPTION="Netscape Portable Runtime" |
79 |
-HOMEPAGE="http://www.mozilla.org/projects/nspr/" |
80 |
-SRC_URI="https://archive.mozilla.org/pub/nspr/releases/v${PV}/src/${P}.tar.gz" |
81 |
- |
82 |
-LICENSE="|| ( MPL-2.0 GPL-2 LGPL-2.1 )" |
83 |
-SLOT="0" |
84 |
-KEYWORDS="~alpha amd64 arm arm64 hppa ia64 ~m68k ~mips ppc ppc64 s390 sparc x86 ~ppc-aix ~amd64-linux ~x86-linux ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris" |
85 |
-IUSE="debug" |
86 |
- |
87 |
-MULTILIB_CHOST_TOOLS=( |
88 |
- /usr/bin/nspr-config |
89 |
-) |
90 |
- |
91 |
-PATCHES=( |
92 |
- "${FILESDIR}"/${PN}-4.7.0-prtime.patch |
93 |
- "${FILESDIR}"/${PN}-4.7.1-solaris.patch |
94 |
- "${FILESDIR}"/${PN}-4.10.6-solaris.patch |
95 |
- "${FILESDIR}"/${PN}-4.8.4-darwin-install_name.patch |
96 |
- "${FILESDIR}"/${PN}-4.8.9-link-flags.patch |
97 |
- # We do not need to pass -L$libdir via nspr-config --libs |
98 |
- "${FILESDIR}"/${PN}-4.9.5_nspr_config.patch |
99 |
-) |
100 |
- |
101 |
-src_prepare() { |
102 |
- cd "${S}"/nspr || die |
103 |
- |
104 |
- default |
105 |
- |
106 |
- # rename configure.in to configure.ac for new autotools compatibility |
107 |
- if [[ -e "${S}"/nspr/configure.in ]] ; then |
108 |
- einfo "Renaming configure.in to configure.ac" |
109 |
- mv "${S}"/nspr/configure.{in,ac} || die |
110 |
- fi |
111 |
- |
112 |
- # We must run eautoconf to regenerate configure |
113 |
- eautoconf |
114 |
- |
115 |
- # make sure it won't find Perl out of Prefix |
116 |
- sed -i -e "s/perl5//g" "${S}"/nspr/configure || die |
117 |
- |
118 |
- # Respect LDFLAGS |
119 |
- sed -i -e 's/\$(MKSHLIB) \$(OBJS)/\$(MKSHLIB) \$(LDFLAGS) \$(OBJS)/g' \ |
120 |
- "${S}"/nspr/config/rules.mk || die |
121 |
-} |
122 |
- |
123 |
-multilib_src_configure() { |
124 |
- # We use the standard BUILD_xxx but nspr uses HOST_xxx |
125 |
- tc-export_build_env BUILD_CC |
126 |
- export HOST_CC=${BUILD_CC} HOST_CFLAGS=${BUILD_CFLAGS} HOST_LDFLAGS=${BUILD_LDFLAGS} |
127 |
- tc-export AR CC CXX RANLIB |
128 |
- [[ ${CBUILD} != ${CHOST} ]] \ |
129 |
- && export CROSS_COMPILE=1 \ |
130 |
- || unset CROSS_COMPILE |
131 |
- |
132 |
- local myconf=( |
133 |
- --libdir="${EPREFIX}/usr/$(get_libdir)" |
134 |
- $(use_enable debug) |
135 |
- $(use_enable !debug optimize) |
136 |
- ) |
137 |
- |
138 |
- # The configure has some fancy --enable-{{n,x}32,64bit} switches |
139 |
- # that trigger some code conditional to platform & arch. This really |
140 |
- # matters for the few common arches (x86, ppc) but we pass a little |
141 |
- # more of them to be future-proof. |
142 |
- |
143 |
- # use ABI first, this will work for most cases |
144 |
- case "${ABI}" in |
145 |
- alpha|arm|hppa|m68k|o32|ppc|s390|sh|sparc|x86) ;; |
146 |
- n32) myconf+=( --enable-n32 );; |
147 |
- x32) myconf+=( --enable-x32 );; |
148 |
- s390x|*64) myconf+=( --enable-64bit );; |
149 |
- default) # no abi actually set, fall back to old check |
150 |
- einfo "Running a short build test to determine 64bit'ness" |
151 |
- echo > "${T}"/test.c || die |
152 |
- ${CC} ${CFLAGS} ${CPPFLAGS} -c "${T}"/test.c -o "${T}"/test.o || die |
153 |
- case $(file "${T}"/test.o) in |
154 |
- *32-bit*x86-64*) myconf+=( --enable-x32 );; |
155 |
- *64-bit*|*ppc64*|*x86_64*) myconf+=( --enable-64bit );; |
156 |
- *32-bit*|*ppc*|*i386*) ;; |
157 |
- *) die "Failed to detect whether your arch is 64bits or 32bits, disable distcc if you're using it, please";; |
158 |
- esac ;; |
159 |
- *) ;; |
160 |
- esac |
161 |
- |
162 |
- # Ancient autoconf needs help finding the right tools. |
163 |
- LC_ALL="C" ECONF_SOURCE="${S}/nspr" \ |
164 |
- ac_cv_path_AR="${AR}" \ |
165 |
- econf "${myconf[@]}" |
166 |
-} |
167 |
- |
168 |
-multilib_src_install() { |
169 |
- # Their build system is royally confusing, as usual |
170 |
- MINOR_VERSION=${MIN_PV} # Used for .so version |
171 |
- emake DESTDIR="${D}" install |
172 |
- |
173 |
- einfo "removing static libraries as upstream has requested!" |
174 |
- rm "${ED}"/usr/$(get_libdir)/*.a || die "failed to remove static libraries." |
175 |
- |
176 |
- # install nspr-config |
177 |
- dobin config/nspr-config |
178 |
- |
179 |
- # Remove stupid files in /usr/bin |
180 |
- rm "${ED}"/usr/bin/prerr.properties || die |
181 |
- |
182 |
- # This is used only to generate prerr.c and prerr.h at build time. |
183 |
- # No other projects use it, and we don't want to depend on perl. |
184 |
- # Talked to upstream and they agreed w/punting. |
185 |
- rm "${ED}"/usr/bin/compile-et.pl || die |
186 |
-} |
187 |
|
188 |
diff --git a/dev-libs/nspr/nspr-4.22.ebuild b/dev-libs/nspr/nspr-4.22.ebuild |
189 |
deleted file mode 100644 |
190 |
index 984ee7b34ca..00000000000 |
191 |
--- a/dev-libs/nspr/nspr-4.22.ebuild |
192 |
+++ /dev/null |
193 |
@@ -1,120 +0,0 @@ |
194 |
-# Copyright 1999-2020 Gentoo Authors |
195 |
-# Distributed under the terms of the GNU General Public License v2 |
196 |
- |
197 |
-EAPI=7 |
198 |
- |
199 |
-inherit autotools toolchain-funcs multilib-minimal |
200 |
- |
201 |
-MIN_PV="$(ver_cut 2)" |
202 |
- |
203 |
-DESCRIPTION="Netscape Portable Runtime" |
204 |
-HOMEPAGE="http://www.mozilla.org/projects/nspr/" |
205 |
-SRC_URI="https://archive.mozilla.org/pub/nspr/releases/v${PV}/src/${P}.tar.gz" |
206 |
- |
207 |
-LICENSE="|| ( MPL-2.0 GPL-2 LGPL-2.1 )" |
208 |
-SLOT="0" |
209 |
-KEYWORDS="~alpha amd64 arm arm64 hppa ia64 ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~ppc-aix ~amd64-linux ~x86-linux ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris" |
210 |
-IUSE="debug elibc_musl" |
211 |
- |
212 |
-MULTILIB_CHOST_TOOLS=( |
213 |
- /usr/bin/nspr-config |
214 |
-) |
215 |
- |
216 |
-PATCHES=( |
217 |
- "${FILESDIR}"/${PN}-4.7.0-prtime.patch |
218 |
- "${FILESDIR}"/${PN}-4.7.1-solaris.patch |
219 |
- "${FILESDIR}"/${PN}-4.10.6-solaris.patch |
220 |
- "${FILESDIR}"/${PN}-4.8.4-darwin-install_name.patch |
221 |
- "${FILESDIR}"/${PN}-4.8.9-link-flags.patch |
222 |
- # We do not need to pass -L$libdir via nspr-config --libs |
223 |
- "${FILESDIR}"/${PN}-4.9.5_nspr_config.patch |
224 |
-) |
225 |
- |
226 |
-src_prepare() { |
227 |
- cd "${S}"/nspr || die |
228 |
- |
229 |
- default |
230 |
- |
231 |
- use elibc_musl && eapply "${FILESDIR}"/${PN}-4.21-ipv6-musl-support.patch |
232 |
- |
233 |
- # rename configure.in to configure.ac for new autotools compatibility |
234 |
- if [[ -e "${S}"/nspr/configure.in ]] ; then |
235 |
- einfo "Renaming configure.in to configure.ac" |
236 |
- mv "${S}"/nspr/configure.{in,ac} || die |
237 |
- fi |
238 |
- |
239 |
- # We must run eautoconf to regenerate configure |
240 |
- eautoconf |
241 |
- |
242 |
- # make sure it won't find Perl out of Prefix |
243 |
- sed -i -e "s/perl5//g" "${S}"/nspr/configure || die |
244 |
- |
245 |
- # Respect LDFLAGS |
246 |
- sed -i -e 's/\$(MKSHLIB) \$(OBJS)/\$(MKSHLIB) \$(LDFLAGS) \$(OBJS)/g' \ |
247 |
- "${S}"/nspr/config/rules.mk || die |
248 |
-} |
249 |
- |
250 |
-multilib_src_configure() { |
251 |
- # We use the standard BUILD_xxx but nspr uses HOST_xxx |
252 |
- tc-export_build_env BUILD_CC |
253 |
- export HOST_CC=${BUILD_CC} HOST_CFLAGS=${BUILD_CFLAGS} HOST_LDFLAGS=${BUILD_LDFLAGS} |
254 |
- tc-export AR CC CXX RANLIB |
255 |
- [[ ${CBUILD} != ${CHOST} ]] \ |
256 |
- && export CROSS_COMPILE=1 \ |
257 |
- || unset CROSS_COMPILE |
258 |
- |
259 |
- local myconf=( |
260 |
- --libdir="${EPREFIX}/usr/$(get_libdir)" |
261 |
- $(use_enable debug) |
262 |
- $(use_enable !debug optimize) |
263 |
- ) |
264 |
- |
265 |
- # The configure has some fancy --enable-{{n,x}32,64bit} switches |
266 |
- # that trigger some code conditional to platform & arch. This really |
267 |
- # matters for the few common arches (x86, ppc) but we pass a little |
268 |
- # more of them to be future-proof. |
269 |
- |
270 |
- # use ABI first, this will work for most cases |
271 |
- case "${ABI}" in |
272 |
- alpha|arm|hppa|m68k|o32|ppc|s390|sh|sparc|x86) ;; |
273 |
- n32) myconf+=( --enable-n32 );; |
274 |
- x32) myconf+=( --enable-x32 );; |
275 |
- s390x|*64) myconf+=( --enable-64bit );; |
276 |
- default) # no abi actually set, fall back to old check |
277 |
- einfo "Running a short build test to determine 64bit'ness" |
278 |
- echo > "${T}"/test.c || die |
279 |
- ${CC} ${CFLAGS} ${CPPFLAGS} -c "${T}"/test.c -o "${T}"/test.o || die |
280 |
- case $(file "${T}"/test.o) in |
281 |
- *32-bit*x86-64*) myconf+=( --enable-x32 );; |
282 |
- *64-bit*|*ppc64*|*x86_64*) myconf+=( --enable-64bit );; |
283 |
- *32-bit*|*ppc*|*i386*) ;; |
284 |
- *) die "Failed to detect whether your arch is 64bits or 32bits, disable distcc if you're using it, please";; |
285 |
- esac ;; |
286 |
- *) ;; |
287 |
- esac |
288 |
- |
289 |
- # Ancient autoconf needs help finding the right tools. |
290 |
- LC_ALL="C" ECONF_SOURCE="${S}/nspr" \ |
291 |
- ac_cv_path_AR="${AR}" \ |
292 |
- econf "${myconf[@]}" |
293 |
-} |
294 |
- |
295 |
-multilib_src_install() { |
296 |
- # Their build system is royally confusing, as usual |
297 |
- MINOR_VERSION=${MIN_PV} # Used for .so version |
298 |
- emake DESTDIR="${D}" install |
299 |
- |
300 |
- einfo "removing static libraries as upstream has requested!" |
301 |
- rm "${ED}"/usr/$(get_libdir)/*.a || die "failed to remove static libraries." |
302 |
- |
303 |
- # install nspr-config |
304 |
- dobin config/nspr-config |
305 |
- |
306 |
- # Remove stupid files in /usr/bin |
307 |
- rm "${ED}"/usr/bin/prerr.properties || die |
308 |
- |
309 |
- # This is used only to generate prerr.c and prerr.h at build time. |
310 |
- # No other projects use it, and we don't want to depend on perl. |
311 |
- # Talked to upstream and they agreed w/punting. |
312 |
- rm "${ED}"/usr/bin/compile-et.pl || die |
313 |
-} |
314 |
|
315 |
diff --git a/dev-libs/nspr/nspr-4.24.ebuild b/dev-libs/nspr/nspr-4.24.ebuild |
316 |
deleted file mode 100644 |
317 |
index 0c02c60c9fb..00000000000 |
318 |
--- a/dev-libs/nspr/nspr-4.24.ebuild |
319 |
+++ /dev/null |
320 |
@@ -1,122 +0,0 @@ |
321 |
-# Copyright 1999-2020 Gentoo Authors |
322 |
-# Distributed under the terms of the GNU General Public License v2 |
323 |
- |
324 |
-EAPI=7 |
325 |
- |
326 |
-inherit autotools toolchain-funcs multilib-minimal |
327 |
- |
328 |
-MIN_PV="$(ver_cut 2)" |
329 |
- |
330 |
-DESCRIPTION="Netscape Portable Runtime" |
331 |
-HOMEPAGE="http://www.mozilla.org/projects/nspr/" |
332 |
-SRC_URI="https://archive.mozilla.org/pub/nspr/releases/v${PV}/src/${P}.tar.gz" |
333 |
- |
334 |
-LICENSE="|| ( MPL-2.0 GPL-2 LGPL-2.1 )" |
335 |
-SLOT="0" |
336 |
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~ppc-aix ~amd64-linux ~x86-linux ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris" |
337 |
-IUSE="debug elibc_musl" |
338 |
- |
339 |
-MULTILIB_CHOST_TOOLS=( |
340 |
- /usr/bin/nspr-config |
341 |
-) |
342 |
- |
343 |
-PATCHES=( |
344 |
- "${FILESDIR}"/${PN}-4.23-prtime.patch |
345 |
- "${FILESDIR}"/${PN}-4.7.1-solaris.patch |
346 |
- "${FILESDIR}"/${PN}-4.10.6-solaris.patch |
347 |
- "${FILESDIR}"/${PN}-4.8.4-darwin-install_name.patch |
348 |
- "${FILESDIR}"/${PN}-4.8.9-link-flags.patch |
349 |
- # We do not need to pass -L$libdir via nspr-config --libs |
350 |
- "${FILESDIR}"/${PN}-4.9.5_nspr_config.patch |
351 |
-) |
352 |
- |
353 |
-src_prepare() { |
354 |
- cd "${S}"/nspr || die |
355 |
- |
356 |
- default |
357 |
- |
358 |
- use elibc_musl && eapply "${FILESDIR}"/${PN}-4.21-ipv6-musl-support.patch |
359 |
- |
360 |
- # rename configure.in to configure.ac for new autotools compatibility |
361 |
- if [[ -e "${S}"/nspr/configure.in ]] ; then |
362 |
- einfo "Renaming configure.in to configure.ac" |
363 |
- mv "${S}"/nspr/configure.{in,ac} || die |
364 |
- else |
365 |
- elog "configure.in rename logic can be removed from ebuild." |
366 |
- fi |
367 |
- |
368 |
- # We must run eautoconf to regenerate configure |
369 |
- eautoconf |
370 |
- |
371 |
- # make sure it won't find Perl out of Prefix |
372 |
- sed -i -e "s/perl5//g" "${S}"/nspr/configure || die |
373 |
- |
374 |
- # Respect LDFLAGS |
375 |
- sed -i -e 's/\$(MKSHLIB) \$(OBJS)/\$(MKSHLIB) \$(LDFLAGS) \$(OBJS)/g' \ |
376 |
- "${S}"/nspr/config/rules.mk || die |
377 |
-} |
378 |
- |
379 |
-multilib_src_configure() { |
380 |
- # We use the standard BUILD_xxx but nspr uses HOST_xxx |
381 |
- tc-export_build_env BUILD_CC |
382 |
- export HOST_CC=${BUILD_CC} HOST_CFLAGS=${BUILD_CFLAGS} HOST_LDFLAGS=${BUILD_LDFLAGS} |
383 |
- tc-export AR CC CXX RANLIB |
384 |
- [[ ${CBUILD} != ${CHOST} ]] \ |
385 |
- && export CROSS_COMPILE=1 \ |
386 |
- || unset CROSS_COMPILE |
387 |
- |
388 |
- local myconf=( |
389 |
- --libdir="${EPREFIX}/usr/$(get_libdir)" |
390 |
- $(use_enable debug) |
391 |
- $(use_enable !debug optimize) |
392 |
- ) |
393 |
- |
394 |
- # The configure has some fancy --enable-{{n,x}32,64bit} switches |
395 |
- # that trigger some code conditional to platform & arch. This really |
396 |
- # matters for the few common arches (x86, ppc) but we pass a little |
397 |
- # more of them to be future-proof. |
398 |
- |
399 |
- # use ABI first, this will work for most cases |
400 |
- case "${ABI}" in |
401 |
- alpha|arm|hppa|m68k|o32|ppc|s390|sh|sparc|x86) ;; |
402 |
- n32) myconf+=( --enable-n32 );; |
403 |
- x32) myconf+=( --enable-x32 );; |
404 |
- s390x|*64) myconf+=( --enable-64bit );; |
405 |
- default) # no abi actually set, fall back to old check |
406 |
- einfo "Running a short build test to determine 64bit'ness" |
407 |
- echo > "${T}"/test.c || die |
408 |
- ${CC} ${CFLAGS} ${CPPFLAGS} -c "${T}"/test.c -o "${T}"/test.o || die |
409 |
- case $(file "${T}"/test.o) in |
410 |
- *32-bit*x86-64*) myconf+=( --enable-x32 );; |
411 |
- *64-bit*|*ppc64*|*x86_64*) myconf+=( --enable-64bit );; |
412 |
- *32-bit*|*ppc*|*i386*) ;; |
413 |
- *) die "Failed to detect whether your arch is 64bits or 32bits, disable distcc if you're using it, please";; |
414 |
- esac ;; |
415 |
- *) ;; |
416 |
- esac |
417 |
- |
418 |
- # Ancient autoconf needs help finding the right tools. |
419 |
- LC_ALL="C" ECONF_SOURCE="${S}/nspr" \ |
420 |
- ac_cv_path_AR="${AR}" \ |
421 |
- econf "${myconf[@]}" |
422 |
-} |
423 |
- |
424 |
-multilib_src_install() { |
425 |
- # Their build system is royally confusing, as usual |
426 |
- MINOR_VERSION=${MIN_PV} # Used for .so version |
427 |
- emake DESTDIR="${D}" install |
428 |
- |
429 |
- einfo "removing static libraries as upstream has requested!" |
430 |
- rm "${ED}"/usr/$(get_libdir)/*.a || die "failed to remove static libraries." |
431 |
- |
432 |
- # install nspr-config |
433 |
- dobin config/nspr-config |
434 |
- |
435 |
- # Remove stupid files in /usr/bin |
436 |
- rm "${ED}"/usr/bin/prerr.properties || die |
437 |
- |
438 |
- # This is used only to generate prerr.c and prerr.h at build time. |
439 |
- # No other projects use it, and we don't want to depend on perl. |
440 |
- # Talked to upstream and they agreed w/punting. |
441 |
- rm "${ED}"/usr/bin/compile-et.pl || die |
442 |
-} |