Gentoo Archives: gentoo-commits

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