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