1 |
polynomial-c 14/09/03 16:10:05 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: nspr-4.10.7.ebuild |
5 |
Removed: nspr-4.10.ebuild nspr-4.10.4.ebuild |
6 |
Log: |
7 |
Version bump (bug #522044). Removed old. |
8 |
|
9 |
(Portage version: 2.2.12/cvs/Linux x86_64, signed Manifest commit with key 0x981CA6FC) |
10 |
|
11 |
Revision Changes Path |
12 |
1.281 dev-libs/nspr/ChangeLog |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/nspr/ChangeLog?rev=1.281&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/nspr/ChangeLog?rev=1.281&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/nspr/ChangeLog?r1=1.280&r2=1.281 |
17 |
|
18 |
Index: ChangeLog |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/dev-libs/nspr/ChangeLog,v |
21 |
retrieving revision 1.280 |
22 |
retrieving revision 1.281 |
23 |
diff -u -r1.280 -r1.281 |
24 |
--- ChangeLog 10 Aug 2014 18:37:45 -0000 1.280 |
25 |
+++ ChangeLog 3 Sep 2014 16:10:05 -0000 1.281 |
26 |
@@ -1,6 +1,12 @@ |
27 |
# ChangeLog for dev-libs/nspr |
28 |
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/nspr/ChangeLog,v 1.280 2014/08/10 18:37:45 ago Exp $ |
30 |
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/nspr/ChangeLog,v 1.281 2014/09/03 16:10:05 polynomial-c Exp $ |
31 |
+ |
32 |
+*nspr-4.10.7 (03 Sep 2014) |
33 |
+ |
34 |
+ 03 Sep 2014; Lars Wendler <polynomial-c@g.o> -nspr-4.10.ebuild, |
35 |
+ -nspr-4.10.4.ebuild, +nspr-4.10.7.ebuild, -files/nspr-4.8.3-aix-gcc.patch: |
36 |
+ Version bump (bug #522044). Removed old. |
37 |
|
38 |
10 Aug 2014; Agostino Sarubbo <ago@g.o> nspr-4.10.6-r1.ebuild: |
39 |
Stable for ppc64, wrt bug #517876 |
40 |
|
41 |
|
42 |
|
43 |
1.1 dev-libs/nspr/nspr-4.10.7.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/nspr/nspr-4.10.7.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/nspr/nspr-4.10.7.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: nspr-4.10.7.ebuild |
49 |
=================================================================== |
50 |
# Copyright 1999-2014 Gentoo Foundation |
51 |
# Distributed under the terms of the GNU General Public License v2 |
52 |
# $Header: /var/cvsroot/gentoo-x86/dev-libs/nspr/nspr-4.10.7.ebuild,v 1.1 2014/09/03 16:10:05 polynomial-c Exp $ |
53 |
|
54 |
EAPI=5 |
55 |
WANT_AUTOCONF="2.5" |
56 |
|
57 |
inherit autotools eutils multilib toolchain-funcs versionator multilib-minimal |
58 |
|
59 |
MIN_PV="$(get_version_component_range 2)" |
60 |
|
61 |
DESCRIPTION="Netscape Portable Runtime" |
62 |
HOMEPAGE="http://www.mozilla.org/projects/nspr/" |
63 |
SRC_URI="ftp://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v${PV}/src/${P}.tar.gz" |
64 |
|
65 |
LICENSE="|| ( MPL-2.0 GPL-2 LGPL-2.1 )" |
66 |
SLOT="0" |
67 |
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" |
68 |
IUSE="debug" |
69 |
|
70 |
RDEPEND=" |
71 |
abi_x86_32? ( |
72 |
!<=app-emulation/emul-linux-x86-baselibs-20140508-r12 |
73 |
!app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)] |
74 |
)" |
75 |
|
76 |
MULTILIB_CHOST_TOOLS=( |
77 |
/usr/bin/nspr-config |
78 |
) |
79 |
|
80 |
src_prepare() { |
81 |
cd "${S}"/nspr || die |
82 |
epatch "${FILESDIR}"/${PN}-4.7.0-prtime.patch |
83 |
epatch "${FILESDIR}"/${PN}-4.7.1-solaris.patch |
84 |
epatch "${FILESDIR}"/${PN}-4.10.6-solaris.patch |
85 |
epatch "${FILESDIR}"/${PN}-4.8.4-darwin-install_name.patch |
86 |
epatch "${FILESDIR}"/${PN}-4.8.9-link-flags.patch |
87 |
# We do not need to pass -L$libdir via nspr-config --libs |
88 |
epatch "${FILESDIR}"/${PN}-4.9.5_nspr_config.patch |
89 |
|
90 |
# We must run eautoconf to regenerate configure |
91 |
eautoconf |
92 |
|
93 |
# make sure it won't find Perl out of Prefix |
94 |
sed -i -e "s/perl5//g" "${S}"/nspr/configure || die |
95 |
|
96 |
# Respect LDFLAGS |
97 |
sed -i -e 's/\$(MKSHLIB) \$(OBJS)/\$(MKSHLIB) \$(LDFLAGS) \$(OBJS)/g' \ |
98 |
"${S}"/nspr/config/rules.mk || die |
99 |
} |
100 |
|
101 |
multilib_src_configure() { |
102 |
# We use the standard BUILD_xxx but nspr uses HOST_xxx |
103 |
tc-export_build_env BUILD_CC |
104 |
export HOST_CC=${BUILD_CC} HOST_CFLAGS=${BUILD_CFLAGS} HOST_LDFLAGS=${BUILD_LDFLAGS} |
105 |
tc-export AR CC CXX RANLIB |
106 |
[[ ${CBUILD} != ${CHOST} ]] \ |
107 |
&& export CROSS_COMPILE=1 \ |
108 |
|| unset CROSS_COMPILE |
109 |
|
110 |
local myconf=() |
111 |
|
112 |
# The configure has some fancy --enable-{{n,x}32,64bit} switches |
113 |
# that trigger some code conditional to platform & arch. This really |
114 |
# matters for the few common arches (x86, ppc) but we pass a little |
115 |
# more of them to be future-proof. |
116 |
|
117 |
# use ABI first, this will work for most cases |
118 |
case "${ABI}" in |
119 |
alpha|arm|hppa|m68k|o32|ppc|s390|sh|sparc|x86) ;; |
120 |
n32) myconf+=( --enable-n32 );; |
121 |
x32) myconf+=( --enable-x32 );; |
122 |
s390x|*64) myconf+=( --enable-64bit );; |
123 |
default) # no abi actually set, fall back to old check |
124 |
einfo "Running a short build test to determine 64bit'ness" |
125 |
echo > "${T}"/test.c || die |
126 |
${CC} ${CFLAGS} ${CPPFLAGS} -c "${T}"/test.c -o "${T}"/test.o || die |
127 |
case $(file "${T}"/test.o) in |
128 |
*32-bit*x86-64*) myconf+=( --enable-x32 );; |
129 |
*64-bit*|*ppc64*|*x86_64*) myconf+=( --enable-64bit );; |
130 |
*32-bit*|*ppc*|*i386*) ;; |
131 |
*) die "Failed to detect whether your arch is 64bits or 32bits, disable distcc if you're using it, please";; |
132 |
esac ;; |
133 |
*) ;; |
134 |
esac |
135 |
|
136 |
# Ancient autoconf needs help finding the right tools. |
137 |
LC_ALL="C" ECONF_SOURCE="${S}/nspr" \ |
138 |
ac_cv_path_AR="${AR}" \ |
139 |
econf \ |
140 |
--libdir="${EPREFIX}/usr/$(get_libdir)" \ |
141 |
$(use_enable debug) \ |
142 |
$(use_enable !debug optimize) \ |
143 |
"${myconf[@]}" |
144 |
} |
145 |
|
146 |
multilib_src_install() { |
147 |
# Their build system is royally confusing, as usual |
148 |
MINOR_VERSION=${MIN_PV} # Used for .so version |
149 |
emake DESTDIR="${D}" install |
150 |
|
151 |
einfo "removing static libraries as upstream has requested!" |
152 |
rm -f "${ED}"/usr/$(get_libdir)/*.a || die "failed to remove static libraries." |
153 |
|
154 |
# install nspr-config |
155 |
dobin config/nspr-config |
156 |
|
157 |
# Remove stupid files in /usr/bin |
158 |
rm "${ED}"/usr/bin/prerr.properties || die "failed to cleanup unneeded files" |
159 |
} |