1 |
commit: 2ad9441335e0a4cedf62609f140c5d589d08d4b8 |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Jan 18 15:17:25 2019 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Jan 18 15:17:25 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2ad94413 |
7 |
|
8 |
dev-libs/nspr: Removed old. |
9 |
|
10 |
Package-Manager: Portage-2.3.56, Repoman-2.3.12 |
11 |
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org> |
12 |
|
13 |
dev-libs/nspr/Manifest | 2 - |
14 |
dev-libs/nspr/nspr-4.13.1.ebuild | 119 --------------------------------------- |
15 |
dev-libs/nspr/nspr-4.19.ebuild | 118 -------------------------------------- |
16 |
3 files changed, 239 deletions(-) |
17 |
|
18 |
diff --git a/dev-libs/nspr/Manifest b/dev-libs/nspr/Manifest |
19 |
index be14ae2b613..4c7d9c4707e 100644 |
20 |
--- a/dev-libs/nspr/Manifest |
21 |
+++ b/dev-libs/nspr/Manifest |
22 |
@@ -1,3 +1 @@ |
23 |
-DIST nspr-4.13.1.tar.gz 1136646 BLAKE2B 68a756f16f3bed7b75e26ce67b8216b06a61c71f669f29970ff6caec624d39a98496f22e643478b20d1bf2b3e753dd4a98aa5fc685929cbece365dda7302a6d0 SHA512 4755dce1a0fddbf4991f46328bdd15b6b07162792370953e16481be56952d4c02d11a83001b3600c80a919b1c45e99d6150ef2c24d407c86f430f9376fe6a694 |
24 |
-DIST nspr-4.19.tar.gz 1139967 BLAKE2B a8358249647a3d0e073f00febc475199d6479e2a34bb8255268fde90f0d3064ccc4b03e012231700ed6d75cd44669b6ea8afa5e760bad1d73682cd9eac1f8432 SHA512 45a48111d0f89db0649a5e1356719868ff81881f9cf48c22c1d13b0831978b103f19e9840d6a5359fcdc90d763c0a60f0a29f7840d756a5efbd53ce1afd36844 |
25 |
DIST nspr-4.20.tar.gz 1140892 BLAKE2B 2cb96b7a40c307f904dac038f016b5c0e527aaf673463cbcb59d8bb6c9d0239219402587d624f48804e33f43abd4427c87f267bf1a88a0dacffcc408ac15dc49 SHA512 22fdf7627f450b0594ebccaee170098e1a8cd0f429fd44816f1322756002ced3d69cf686c3f69f7cb30b8132d3605a9fce5457ab99d0002e6af11a3408a5c949 |
26 |
|
27 |
diff --git a/dev-libs/nspr/nspr-4.13.1.ebuild b/dev-libs/nspr/nspr-4.13.1.ebuild |
28 |
deleted file mode 100644 |
29 |
index 6bc28a90733..00000000000 |
30 |
--- a/dev-libs/nspr/nspr-4.13.1.ebuild |
31 |
+++ /dev/null |
32 |
@@ -1,119 +0,0 @@ |
33 |
-# Copyright 1999-2018 Gentoo Foundation |
34 |
-# Distributed under the terms of the GNU General Public License v2 |
35 |
- |
36 |
-EAPI=6 |
37 |
- |
38 |
-inherit autotools eutils multilib toolchain-funcs versionator multilib-minimal |
39 |
- |
40 |
-MIN_PV="$(get_version_component_range 2)" |
41 |
- |
42 |
-DESCRIPTION="Netscape Portable Runtime" |
43 |
-HOMEPAGE="http://www.mozilla.org/projects/nspr/" |
44 |
-SRC_URI="https://archive.mozilla.org/pub/nspr/releases/v${PV}/src/${P}.tar.gz" |
45 |
- |
46 |
-LICENSE="|| ( MPL-2.0 GPL-2 LGPL-2.1 )" |
47 |
-SLOT="0" |
48 |
-KEYWORDS="alpha amd64 arm arm64 hppa ia64 ~m68k ~mips ppc ppc64 s390 ~sh sparc x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris" |
49 |
-IUSE="debug" |
50 |
- |
51 |
-RDEPEND="" |
52 |
- |
53 |
-MULTILIB_CHOST_TOOLS=( |
54 |
- /usr/bin/nspr-config |
55 |
-) |
56 |
- |
57 |
-PATCHES=( |
58 |
- "${FILESDIR}"/${PN}-4.7.0-prtime.patch |
59 |
- "${FILESDIR}"/${PN}-4.7.1-solaris.patch |
60 |
- "${FILESDIR}"/${PN}-4.10.6-solaris.patch |
61 |
- "${FILESDIR}"/${PN}-4.8.4-darwin-install_name.patch |
62 |
- "${FILESDIR}"/${PN}-4.8.9-link-flags.patch |
63 |
- # We do not need to pass -L$libdir via nspr-config --libs |
64 |
- "${FILESDIR}"/${PN}-4.9.5_nspr_config.patch |
65 |
-) |
66 |
- |
67 |
-src_prepare() { |
68 |
- cd "${S}"/nspr || die |
69 |
- |
70 |
- default |
71 |
- |
72 |
- # rename configure.in to configure.ac for new autotools compatibility |
73 |
- if [[ -e "${S}"/nspr/configure.in ]] ; then |
74 |
- einfo "Renaming configure.in to configure.ac" |
75 |
- mv "${S}"/nspr/configure.{in,ac} || die |
76 |
- fi |
77 |
- # We must run eautoconf to regenerate configure |
78 |
- eautoconf |
79 |
- |
80 |
- # make sure it won't find Perl out of Prefix |
81 |
- sed -i -e "s/perl5//g" "${S}"/nspr/configure || die |
82 |
- |
83 |
- # Respect LDFLAGS |
84 |
- sed -i -e 's/\$(MKSHLIB) \$(OBJS)/\$(MKSHLIB) \$(LDFLAGS) \$(OBJS)/g' \ |
85 |
- "${S}"/nspr/config/rules.mk || die |
86 |
-} |
87 |
- |
88 |
-multilib_src_configure() { |
89 |
- # We use the standard BUILD_xxx but nspr uses HOST_xxx |
90 |
- tc-export_build_env BUILD_CC |
91 |
- export HOST_CC=${BUILD_CC} HOST_CFLAGS=${BUILD_CFLAGS} HOST_LDFLAGS=${BUILD_LDFLAGS} |
92 |
- tc-export AR CC CXX RANLIB |
93 |
- [[ ${CBUILD} != ${CHOST} ]] \ |
94 |
- && export CROSS_COMPILE=1 \ |
95 |
- || unset CROSS_COMPILE |
96 |
- |
97 |
- local myconf=() |
98 |
- |
99 |
- # The configure has some fancy --enable-{{n,x}32,64bit} switches |
100 |
- # that trigger some code conditional to platform & arch. This really |
101 |
- # matters for the few common arches (x86, ppc) but we pass a little |
102 |
- # more of them to be future-proof. |
103 |
- |
104 |
- # use ABI first, this will work for most cases |
105 |
- case "${ABI}" in |
106 |
- alpha|arm|hppa|m68k|o32|ppc|s390|sh|sparc|x86) ;; |
107 |
- n32) myconf+=( --enable-n32 );; |
108 |
- x32) myconf+=( --enable-x32 );; |
109 |
- s390x|*64) myconf+=( --enable-64bit );; |
110 |
- default) # no abi actually set, fall back to old check |
111 |
- einfo "Running a short build test to determine 64bit'ness" |
112 |
- echo > "${T}"/test.c || die |
113 |
- ${CC} ${CFLAGS} ${CPPFLAGS} -c "${T}"/test.c -o "${T}"/test.o || die |
114 |
- case $(file "${T}"/test.o) in |
115 |
- *32-bit*x86-64*) myconf+=( --enable-x32 );; |
116 |
- *64-bit*|*ppc64*|*x86_64*) myconf+=( --enable-64bit );; |
117 |
- *32-bit*|*ppc*|*i386*) ;; |
118 |
- *) die "Failed to detect whether your arch is 64bits or 32bits, disable distcc if you're using it, please";; |
119 |
- esac ;; |
120 |
- *) ;; |
121 |
- esac |
122 |
- |
123 |
- # Ancient autoconf needs help finding the right tools. |
124 |
- LC_ALL="C" ECONF_SOURCE="${S}/nspr" \ |
125 |
- ac_cv_path_AR="${AR}" \ |
126 |
- econf \ |
127 |
- --libdir="${EPREFIX}/usr/$(get_libdir)" \ |
128 |
- $(use_enable debug) \ |
129 |
- $(use_enable !debug optimize) \ |
130 |
- "${myconf[@]}" |
131 |
-} |
132 |
- |
133 |
-multilib_src_install() { |
134 |
- # Their build system is royally confusing, as usual |
135 |
- MINOR_VERSION=${MIN_PV} # Used for .so version |
136 |
- emake DESTDIR="${D}" install |
137 |
- |
138 |
- einfo "removing static libraries as upstream has requested!" |
139 |
- rm -f "${ED}"/usr/$(get_libdir)/*.a || die "failed to remove static libraries." |
140 |
- |
141 |
- # install nspr-config |
142 |
- dobin config/nspr-config |
143 |
- |
144 |
- # Remove stupid files in /usr/bin |
145 |
- rm "${ED}"/usr/bin/prerr.properties || die |
146 |
- |
147 |
- # This is used only to generate prerr.c and prerr.h at build time. |
148 |
- # No other projects use it, and we don't want to depend on perl. |
149 |
- # Talked to upstream and they agreed w/punting. |
150 |
- rm "${ED}"/usr/bin/compile-et.pl || die |
151 |
-} |
152 |
|
153 |
diff --git a/dev-libs/nspr/nspr-4.19.ebuild b/dev-libs/nspr/nspr-4.19.ebuild |
154 |
deleted file mode 100644 |
155 |
index aea55ed4cdd..00000000000 |
156 |
--- a/dev-libs/nspr/nspr-4.19.ebuild |
157 |
+++ /dev/null |
158 |
@@ -1,118 +0,0 @@ |
159 |
-# Copyright 1999-2018 Gentoo Foundation |
160 |
-# Distributed under the terms of the GNU General Public License v2 |
161 |
- |
162 |
-EAPI=6 |
163 |
- |
164 |
-inherit autotools eutils multilib toolchain-funcs versionator multilib-minimal |
165 |
- |
166 |
-MIN_PV="$(get_version_component_range 2)" |
167 |
- |
168 |
-DESCRIPTION="Netscape Portable Runtime" |
169 |
-HOMEPAGE="http://www.mozilla.org/projects/nspr/" |
170 |
-SRC_URI="https://archive.mozilla.org/pub/nspr/releases/v${PV}/src/${P}.tar.gz" |
171 |
- |
172 |
-LICENSE="|| ( MPL-2.0 GPL-2 LGPL-2.1 )" |
173 |
-SLOT="0" |
174 |
-KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris" |
175 |
-IUSE="debug" |
176 |
- |
177 |
-MULTILIB_CHOST_TOOLS=( |
178 |
- /usr/bin/nspr-config |
179 |
-) |
180 |
- |
181 |
-PATCHES=( |
182 |
- "${FILESDIR}"/${PN}-4.7.0-prtime.patch |
183 |
- "${FILESDIR}"/${PN}-4.7.1-solaris.patch |
184 |
- "${FILESDIR}"/${PN}-4.10.6-solaris.patch |
185 |
- "${FILESDIR}"/${PN}-4.8.4-darwin-install_name.patch |
186 |
- "${FILESDIR}"/${PN}-4.8.9-link-flags.patch |
187 |
- # We do not need to pass -L$libdir via nspr-config --libs |
188 |
- "${FILESDIR}"/${PN}-4.9.5_nspr_config.patch |
189 |
-) |
190 |
- |
191 |
-src_prepare() { |
192 |
- cd "${S}"/nspr || die |
193 |
- |
194 |
- default |
195 |
- |
196 |
- # rename configure.in to configure.ac for new autotools compatibility |
197 |
- if [[ -e "${S}"/nspr/configure.in ]] ; then |
198 |
- einfo "Renaming configure.in to configure.ac" |
199 |
- mv "${S}"/nspr/configure.{in,ac} || die |
200 |
- fi |
201 |
- |
202 |
- # We must run eautoconf to regenerate configure |
203 |
- eautoconf |
204 |
- |
205 |
- # make sure it won't find Perl out of Prefix |
206 |
- sed -i -e "s/perl5//g" "${S}"/nspr/configure || die |
207 |
- |
208 |
- # Respect LDFLAGS |
209 |
- sed -i -e 's/\$(MKSHLIB) \$(OBJS)/\$(MKSHLIB) \$(LDFLAGS) \$(OBJS)/g' \ |
210 |
- "${S}"/nspr/config/rules.mk || die |
211 |
-} |
212 |
- |
213 |
-multilib_src_configure() { |
214 |
- # We use the standard BUILD_xxx but nspr uses HOST_xxx |
215 |
- tc-export_build_env BUILD_CC |
216 |
- export HOST_CC=${BUILD_CC} HOST_CFLAGS=${BUILD_CFLAGS} HOST_LDFLAGS=${BUILD_LDFLAGS} |
217 |
- tc-export AR CC CXX RANLIB |
218 |
- [[ ${CBUILD} != ${CHOST} ]] \ |
219 |
- && export CROSS_COMPILE=1 \ |
220 |
- || unset CROSS_COMPILE |
221 |
- |
222 |
- local myconf=( |
223 |
- --libdir="${EPREFIX}/usr/$(get_libdir)" |
224 |
- $(use_enable debug) |
225 |
- $(use_enable !debug optimize) |
226 |
- ) |
227 |
- |
228 |
- # The configure has some fancy --enable-{{n,x}32,64bit} switches |
229 |
- # that trigger some code conditional to platform & arch. This really |
230 |
- # matters for the few common arches (x86, ppc) but we pass a little |
231 |
- # more of them to be future-proof. |
232 |
- |
233 |
- # use ABI first, this will work for most cases |
234 |
- case "${ABI}" in |
235 |
- alpha|arm|hppa|m68k|o32|ppc|s390|sh|sparc|x86) ;; |
236 |
- n32) myconf+=( --enable-n32 );; |
237 |
- x32) myconf+=( --enable-x32 );; |
238 |
- s390x|*64) myconf+=( --enable-64bit );; |
239 |
- default) # no abi actually set, fall back to old check |
240 |
- einfo "Running a short build test to determine 64bit'ness" |
241 |
- echo > "${T}"/test.c || die |
242 |
- ${CC} ${CFLAGS} ${CPPFLAGS} -c "${T}"/test.c -o "${T}"/test.o || die |
243 |
- case $(file "${T}"/test.o) in |
244 |
- *32-bit*x86-64*) myconf+=( --enable-x32 );; |
245 |
- *64-bit*|*ppc64*|*x86_64*) myconf+=( --enable-64bit );; |
246 |
- *32-bit*|*ppc*|*i386*) ;; |
247 |
- *) die "Failed to detect whether your arch is 64bits or 32bits, disable distcc if you're using it, please";; |
248 |
- esac ;; |
249 |
- *) ;; |
250 |
- esac |
251 |
- |
252 |
- # Ancient autoconf needs help finding the right tools. |
253 |
- LC_ALL="C" ECONF_SOURCE="${S}/nspr" \ |
254 |
- ac_cv_path_AR="${AR}" \ |
255 |
- econf "${myconf[@]}" |
256 |
-} |
257 |
- |
258 |
-multilib_src_install() { |
259 |
- # Their build system is royally confusing, as usual |
260 |
- MINOR_VERSION=${MIN_PV} # Used for .so version |
261 |
- emake DESTDIR="${D}" install |
262 |
- |
263 |
- einfo "removing static libraries as upstream has requested!" |
264 |
- rm "${ED%/}"/usr/$(get_libdir)/*.a || die "failed to remove static libraries." |
265 |
- |
266 |
- # install nspr-config |
267 |
- dobin config/nspr-config |
268 |
- |
269 |
- # Remove stupid files in /usr/bin |
270 |
- rm "${ED%/}"/usr/bin/prerr.properties || die |
271 |
- |
272 |
- # This is used only to generate prerr.c and prerr.h at build time. |
273 |
- # No other projects use it, and we don't want to depend on perl. |
274 |
- # Talked to upstream and they agreed w/punting. |
275 |
- rm "${ED%/}"/usr/bin/compile-et.pl || die |
276 |
-} |