1 |
anarchy 10/01/27 02:08:24 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: nspr-4.8.2-r1.ebuild |
5 |
Log: |
6 |
ensure dynamic linking is consistent for everyone |
7 |
(Portage version: 2.1.7.16/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.132 dev-libs/nspr/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/nspr/ChangeLog?rev=1.132&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/nspr/ChangeLog?rev=1.132&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/nspr/ChangeLog?r1=1.131&r2=1.132 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/dev-libs/nspr/ChangeLog,v |
19 |
retrieving revision 1.131 |
20 |
retrieving revision 1.132 |
21 |
diff -u -r1.131 -r1.132 |
22 |
--- ChangeLog 30 Nov 2009 15:07:32 -0000 1.131 |
23 |
+++ ChangeLog 27 Jan 2010 02:08:23 -0000 1.132 |
24 |
@@ -1,6 +1,12 @@ |
25 |
# ChangeLog for dev-libs/nspr |
26 |
-# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/nspr/ChangeLog,v 1.131 2009/11/30 15:07:32 anarchy Exp $ |
28 |
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
29 |
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/nspr/ChangeLog,v 1.132 2010/01/27 02:08:23 anarchy Exp $ |
30 |
+ |
31 |
+*nspr-4.8.2-r1 (27 Jan 2010) |
32 |
+ |
33 |
+ 27 Jan 2010; <anarchy@g.o> |
34 |
+ +files/nspr-4.8-pkgconfig-gentoo-1.patch, +nspr-4.8.2-r1.ebuild: |
35 |
+ Ensure dynamic linking stays consistent for all |
36 |
|
37 |
*nspr-4.8.2 (30 Nov 2009) |
38 |
|
39 |
|
40 |
|
41 |
|
42 |
1.1 dev-libs/nspr/nspr-4.8.2-r1.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/nspr/nspr-4.8.2-r1.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/nspr/nspr-4.8.2-r1.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: nspr-4.8.2-r1.ebuild |
48 |
=================================================================== |
49 |
# Copyright 1999-2010 Gentoo Foundation |
50 |
# Distributed under the terms of the GNU General Public License v2 |
51 |
# $Header: /var/cvsroot/gentoo-x86/dev-libs/nspr/nspr-4.8.2-r1.ebuild,v 1.1 2010/01/27 02:08:23 anarchy Exp $ |
52 |
|
53 |
inherit eutils multilib toolchain-funcs versionator |
54 |
|
55 |
MIN_PV="$(get_version_component_range 2)" |
56 |
|
57 |
DESCRIPTION="Netscape Portable Runtime" |
58 |
HOMEPAGE="http://www.mozilla.org/projects/nspr/" |
59 |
SRC_URI="ftp://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v${PV}/src/${P}.tar.gz" |
60 |
|
61 |
LICENSE="|| ( MPL-1.1 GPL-2 LGPL-2.1 )" |
62 |
SLOT="0" |
63 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" |
64 |
IUSE="ipv6 debug" |
65 |
|
66 |
DEPEND=">=dev-db/sqlite-3.5" |
67 |
RDEPEND="${DEPEND}" |
68 |
|
69 |
src_unpack() { |
70 |
unpack ${A} |
71 |
cd "${S}" |
72 |
mkdir build inst |
73 |
epatch "${FILESDIR}"/${PN}-4.8-config.patch |
74 |
epatch "${FILESDIR}"/${PN}-4.6.1-config-1.patch |
75 |
epatch "${FILESDIR}"/${PN}-4.6.1-lang.patch |
76 |
epatch "${FILESDIR}"/${PN}-4.7.0-prtime.patch |
77 |
epatch "${FILESDIR}"/${PN}-4.8-pkgconfig-gentoo-1.patch |
78 |
|
79 |
# Respect LDFLAGS |
80 |
sed -i -e 's/\$(MKSHLIB) \$(OBJS)/\$(MKSHLIB) \$(LDFLAGS) \$(OBJS)/g' \ |
81 |
mozilla/nsprpub/config/rules.mk |
82 |
} |
83 |
|
84 |
src_compile() { |
85 |
cd "${S}"/build |
86 |
|
87 |
echo > "${T}"/test.c |
88 |
$(tc-getCC) -c "${T}"/test.c -o "${T}"/test.o |
89 |
case $(file "${T}"/test.o) in |
90 |
*64-bit*) myconf="${myconf} --enable-64bit";; |
91 |
*32-bit*) ;; |
92 |
*) die "Failed to detect whether your arch is 64bits or 32bits, disable distcc if you're using it, please";; |
93 |
esac |
94 |
|
95 |
myconf="${myconf} --libdir=/usr/$(get_libdir)/nspr \ |
96 |
--enable-system-sqlite --with-mozilla --with-pthreads" |
97 |
|
98 |
ECONF_SOURCE="../mozilla/nsprpub" econf \ |
99 |
$(use_enable ipv6) \ |
100 |
$(use_enable debug) \ |
101 |
${myconf} || die "econf failed" |
102 |
make CC="$(tc-getCC)" CXX="$(tc-getCXX)" || die |
103 |
} |
104 |
|
105 |
src_install () { |
106 |
# Their build system is royally confusing, as usual |
107 |
MINOR_VERSION=${MIN_PV} # Used for .so version |
108 |
cd "${S}"/build |
109 |
emake DESTDIR="${D}" install || die "emake install failed" |
110 |
|
111 |
cd "${D}"/usr/$(get_libdir)/nspr |
112 |
for file in *.so; do |
113 |
mv ${file} ${file}.${MINOR_VERSION} |
114 |
ln -s ${file}.${MINOR_VERSION} ${file} |
115 |
done |
116 |
# cope with libraries being in /usr/lib/nspr |
117 |
dodir /etc/env.d |
118 |
echo "LDPATH=/usr/$(get_libdir)/nspr" > "${D}/etc/env.d/08nspr" |
119 |
|
120 |
# install nspr-config |
121 |
dobin "${S}"/build/config/nspr-config |
122 |
|
123 |
# create pkg-config file |
124 |
insinto /usr/$(get_libdir)/pkgconfig/ |
125 |
doins "${S}"/build/config/nspr.pc |
126 |
|
127 |
# Remove stupid files in /usr/bin |
128 |
rm "${D}"/usr/bin/prerr.properties |
129 |
} |
130 |
|
131 |
pkg_postinst() { |
132 |
ewarn |
133 |
ewarn "Please make sure you run revdep-rebuild after upgrade." |
134 |
ewarn "This is *extremely* important to ensure your system nspr works properly." |
135 |
ewarn |
136 |
} |