Gentoo Archives: gentoo-commits

From: "Jory Pratt (anarchy)" <anarchy@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-libs/nspr: ChangeLog nspr-4.8.3-r2.ebuild nspr-4.8.3-r1.ebuild nspr-4.8.3.ebuild
Date: Thu, 11 Feb 2010 03:30:05
Message-Id: E1NfPkf-00078k-V5@stork.gentoo.org
1 anarchy 10/02/11 03:30:01
2
3 Modified: ChangeLog
4 Added: nspr-4.8.3-r2.ebuild
5 Removed: nspr-4.8.3-r1.ebuild nspr-4.8.3.ebuild
6 Log:
7 update for upstream concerns, thanks to Wan-Teh for his concerns.
8 (Portage version: 2.1.7.17/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.135 dev-libs/nspr/ChangeLog
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/nspr/ChangeLog?rev=1.135&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/nspr/ChangeLog?rev=1.135&content-type=text/plain
15 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/nspr/ChangeLog?r1=1.134&r2=1.135
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-libs/nspr/ChangeLog,v
20 retrieving revision 1.134
21 retrieving revision 1.135
22 diff -u -r1.134 -r1.135
23 --- ChangeLog 9 Feb 2010 04:33:08 -0000 1.134
24 +++ ChangeLog 11 Feb 2010 03:30:01 -0000 1.135
25 @@ -1,6 +1,12 @@
26 # ChangeLog for dev-libs/nspr
27 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/nspr/ChangeLog,v 1.134 2010/02/09 04:33:08 anarchy Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/nspr/ChangeLog,v 1.135 2010/02/11 03:30:01 anarchy Exp $
30 +
31 +*nspr-4.8.3-r2 (11 Feb 2010)
32 +
33 + 11 Feb 2010; <anarchy@g.o> -nspr-4.8.3.ebuild,
34 + -nspr-4.8.3-r1.ebuild, +nspr-4.8.3-r2.ebuild:
35 + Finish fixing upstream conerns about build issues, move to /usr/lib{64}
36
37 *nspr-4.8.3-r1 (09 Feb 2010)
38
39
40
41
42 1.1 dev-libs/nspr/nspr-4.8.3-r2.ebuild
43
44 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/nspr/nspr-4.8.3-r2.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/nspr/nspr-4.8.3-r2.ebuild?rev=1.1&content-type=text/plain
46
47 Index: nspr-4.8.3-r2.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.3-r2.ebuild,v 1.1 2010/02/11 03:30:01 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="debug"
65
66 src_unpack() {
67 unpack ${A}
68 cd "${S}"
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.8-pkgconfig-gentoo-1.patch
75
76 # Respect LDFLAGS
77 sed -i -e 's/\$(MKSHLIB) \$(OBJS)/\$(MKSHLIB) \$(LDFLAGS) \$(OBJS)/g' \
78 mozilla/nsprpub/config/rules.mk
79 }
80
81 src_compile() {
82 cd "${S}"/build
83
84 echo > "${T}"/test.c
85 $(tc-getCC) -c "${T}"/test.c -o "${T}"/test.o
86 case $(file "${T}"/test.o) in
87 *64-bit*) myconf="${myconf} --enable-64bit";;
88 *32-bit*) ;;
89 *) die "Failed to detect whether your arch is 64bits or 32bits, disable distcc if you're using it, please";;
90 esac
91
92 myconf="${myconf} --libdir=/usr/$(get_libdir)"
93
94 ECONF_SOURCE="../mozilla/nsprpub" econf \
95 $(use_enable debug) \
96 $(use_enable !debug optimize) \
97 ${myconf} || die "econf failed"
98 make CC="$(tc-getCC)" CXX="$(tc-getCXX)" || die
99 }
100
101 src_install () {
102 # Their build system is royally confusing, as usual
103 MINOR_VERSION=${MIN_PV} # Used for .so version
104 cd "${S}"/build
105 emake DESTDIR="${D}" install || die "emake install failed"
106
107 cd "${D}"/usr/$(get_libdir)
108 for file in *.a; do
109 einfo "removing static libraries as upstream has requested!"
110 rm ${file}
111 done
112
113 for file in *.so; do
114 mv ${file} ${file}.${MINOR_VERSION}
115 ln -s ${file}.${MINOR_VERSION} ${file}
116 done
117
118 # install nspr-config
119 dobin "${S}"/build/config/nspr-config
120
121 # create pkg-config file
122 insinto /usr/$(get_libdir)/pkgconfig/
123 doins "${S}"/build/config/nspr.pc
124
125 # Remove stupid files in /usr/bin
126 rm "${D}"/usr/bin/prerr.properties
127 }
128
129 pkg_postinst() {
130 ewarn
131 ewarn "Please make sure you run revdep-rebuild after upgrade."
132 ewarn "This is *extremely* important to ensure your system nspr works properly."
133 ewarn
134 }