1 |
anarchy 12/06/06 12:50:51 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: nspr-4.9.1.ebuild |
5 |
Log: |
6 |
Version bump for security on nss-3.13.5 |
7 |
|
8 |
(Portage version: 2.1.10.65/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.186 dev-libs/nspr/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/nspr/ChangeLog?rev=1.186&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/nspr/ChangeLog?rev=1.186&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/nspr/ChangeLog?r1=1.185&r2=1.186 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/dev-libs/nspr/ChangeLog,v |
20 |
retrieving revision 1.185 |
21 |
retrieving revision 1.186 |
22 |
diff -u -r1.185 -r1.186 |
23 |
--- ChangeLog 28 May 2012 14:26:12 -0000 1.185 |
24 |
+++ ChangeLog 6 Jun 2012 12:50:51 -0000 1.186 |
25 |
@@ -1,6 +1,11 @@ |
26 |
# ChangeLog for dev-libs/nspr |
27 |
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/nspr/ChangeLog,v 1.185 2012/05/28 14:26:12 armin76 Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/nspr/ChangeLog,v 1.186 2012/06/06 12:50:51 anarchy Exp $ |
30 |
+ |
31 |
+*nspr-4.9.1 (06 Jun 2012) |
32 |
+ |
33 |
+ 06 Jun 2012; Jory A. Pratt <anarchy@g.o> +nspr-4.9.1.ebuild: |
34 |
+ Version bump for security release of nss-3.13.5 |
35 |
|
36 |
28 May 2012; Raúl Porcel <armin76@g.o> nspr-4.9.ebuild: |
37 |
sparc stable |
38 |
|
39 |
|
40 |
|
41 |
1.1 dev-libs/nspr/nspr-4.9.1.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/nspr/nspr-4.9.1.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/nspr/nspr-4.9.1.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: nspr-4.9.1.ebuild |
47 |
=================================================================== |
48 |
# Copyright 1999-2012 Gentoo Foundation |
49 |
# Distributed under the terms of the GNU General Public License v2 |
50 |
# $Header: /var/cvsroot/gentoo-x86/dev-libs/nspr/nspr-4.9.1.ebuild,v 1.1 2012/06/06 12:50:51 anarchy Exp $ |
51 |
|
52 |
EAPI=3 |
53 |
WANT_AUTOCONF="2.1" |
54 |
|
55 |
inherit autotools eutils multilib toolchain-funcs versionator |
56 |
|
57 |
MIN_PV="$(get_version_component_range 2)" |
58 |
|
59 |
DESCRIPTION="Netscape Portable Runtime" |
60 |
HOMEPAGE="http://www.mozilla.org/projects/nspr/" |
61 |
SRC_URI="ftp://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v${PV}/src/${P}.tar.gz" |
62 |
|
63 |
LICENSE="|| ( MPL-1.1 GPL-2 LGPL-2.1 )" |
64 |
SLOT="0" |
65 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris" |
66 |
IUSE="debug" |
67 |
|
68 |
src_prepare() { |
69 |
mkdir build inst |
70 |
epatch "${FILESDIR}"/${PN}-4.8-config.patch |
71 |
epatch "${FILESDIR}"/${PN}-4.6.1-config-1.patch |
72 |
epatch "${FILESDIR}"/${PN}-4.6.1-lang.patch |
73 |
epatch "${FILESDIR}"/${PN}-4.7.0-prtime.patch |
74 |
epatch "${FILESDIR}"/${PN}-4.7.1-solaris.patch |
75 |
epatch "${FILESDIR}"/${PN}-4.7.4-solaris.patch |
76 |
epatch "${FILESDIR}"/${PN}-4.8.3-aix-gcc.patch |
77 |
# Patch needs updating |
78 |
#epatch "${FILESDIR}"/${PN}-4.8.3-aix-soname.patch |
79 |
epatch "${FILESDIR}"/${PN}-4.8.4-darwin-install_name.patch |
80 |
epatch "${FILESDIR}"/${PN}-4.8.9-link-flags.patch |
81 |
|
82 |
# We must run eautoconf to regenerate configure |
83 |
cd "${S}"/mozilla/nsprpub |
84 |
eautoconf |
85 |
|
86 |
# make sure it won't find Perl out of Prefix |
87 |
sed -i -e "s/perl5//g" "${S}"/mozilla/nsprpub/configure || die |
88 |
|
89 |
# Respect LDFLAGS |
90 |
sed -i -e 's/\$(MKSHLIB) \$(OBJS)/\$(MKSHLIB) \$(LDFLAGS) \$(OBJS)/g' \ |
91 |
"${S}"/mozilla/nsprpub/config/rules.mk || die |
92 |
} |
93 |
|
94 |
src_configure() { |
95 |
cd "${S}"/build |
96 |
|
97 |
echo > "${T}"/test.c |
98 |
$(tc-getCC) -c "${T}"/test.c -o "${T}"/test.o |
99 |
case $(scanelf -BF'%M' "${T}"/test.o)$(scanmacho -BF'%M' "${T}"/test.o) in |
100 |
ELFCLASS64*|POWERPC64*|X86_64*) myconf="${myconf} --enable-64bit";; |
101 |
ELFCLASS32*|POWERPC*|I386*|ARM*) ;; |
102 |
*) die "Failed to detect whether your arch is 64bits or 32bits, disable distcc if you're using it, please";; |
103 |
esac |
104 |
|
105 |
myconf="${myconf} --libdir=${EPREFIX}/usr/$(get_libdir)" |
106 |
|
107 |
LC_ALL="C" ECONF_SOURCE="../mozilla/nsprpub" econf \ |
108 |
$(use_enable debug) \ |
109 |
$(use_enable !debug optimize) \ |
110 |
${myconf} || die "econf failed" |
111 |
} |
112 |
|
113 |
src_compile() { |
114 |
cd "${S}"/build |
115 |
if tc-is-cross-compiler; then |
116 |
emake CC="$(tc-getBUILD_CC)" CXX="$(tc-getBUILD_CXX)" \ |
117 |
-C config nsinstall || die "failed to build" |
118 |
mv config/{,native-}nsinstall |
119 |
sed -s 's#/nsinstall$#/native-nsinstall#' -i config/autoconf.mk |
120 |
rm config/nsinstall.o |
121 |
fi |
122 |
emake CC="$(tc-getCC)" CXX="$(tc-getCXX)" || die "failed to build" |
123 |
} |
124 |
|
125 |
src_install () { |
126 |
# Their build system is royally confusing, as usual |
127 |
MINOR_VERSION=${MIN_PV} # Used for .so version |
128 |
cd "${S}"/build |
129 |
emake DESTDIR="${D}" install || die "emake install failed" |
130 |
|
131 |
cd "${ED}"/usr/$(get_libdir) |
132 |
for file in *.a; do |
133 |
einfo "removing static libraries as upstream has requested!" |
134 |
rm -f ${file} || die "failed to remove static libraries." |
135 |
done |
136 |
|
137 |
local n= |
138 |
# aix-soname.patch does this already |
139 |
[[ ${CHOST} == *-aix* ]] || |
140 |
for file in *$(get_libname); do |
141 |
n=${file%$(get_libname)}$(get_libname ${MINOR_VERSION}) |
142 |
mv ${file} ${n} || die "failed to mv files around" |
143 |
ln -s ${n} ${file} || die "failed to symlink files." |
144 |
if [[ ${CHOST} == *-darwin* ]]; then |
145 |
install_name_tool -id "${EPREFIX}/usr/$(get_libdir)/${n}" ${n} || die |
146 |
fi |
147 |
done |
148 |
|
149 |
# install nspr-config |
150 |
dobin "${S}"/build/config/nspr-config || die "failed to install nspr-config" |
151 |
|
152 |
# Remove stupid files in /usr/bin |
153 |
rm -f "${ED}"/usr/bin/prerr.properties || die "failed to cleanup unneeded files" |
154 |
} |