Gentoo Archives: gentoo-commits

From: "Nirbheek Chauhan (nirbheek)" <nirbheek@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-libs/nspr: nspr-4.8.ebuild ChangeLog
Date: Wed, 24 Jun 2009 17:47:28
Message-Id: E1MJWZA-0003SW-IM@stork.gentoo.org
1 nirbheek 09/06/24 17:47:24
2
3 Modified: ChangeLog
4 Added: nspr-4.8.ebuild
5 Log:
6 Add nspr-4.8, dependency of firefox 3.5rc*
7 (Portage version: 2.2_rc33/cvs/Linux i686)
8
9 Revision Changes Path
10 1.123 dev-libs/nspr/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/nspr/ChangeLog?rev=1.123&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/nspr/ChangeLog?rev=1.123&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/nspr/ChangeLog?r1=1.122&r2=1.123
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/dev-libs/nspr/ChangeLog,v
19 retrieving revision 1.122
20 retrieving revision 1.123
21 diff -u -r1.122 -r1.123
22 --- ChangeLog 1 May 2009 14:03:12 -0000 1.122
23 +++ ChangeLog 24 Jun 2009 17:47:24 -0000 1.123
24 @@ -1,6 +1,11 @@
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.122 2009/05/01 14:03:12 maekke Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/nspr/ChangeLog,v 1.123 2009/06/24 17:47:24 nirbheek Exp $
29 +
30 +*nspr-4.8 (24 Jun 2009)
31 +
32 + 24 Jun 2009; <nirbheek@g.o> +nspr-4.8.ebuild:
33 + Add nspr-4.8, dependency of firefox 3.5rc*
34
35 01 May 2009; Markus Meier <maekke@g.o> nspr-4.7.4.ebuild:
36 amd64 stable, bug #267234
37
38
39
40 1.1 dev-libs/nspr/nspr-4.8.ebuild
41
42 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/nspr/nspr-4.8.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/nspr/nspr-4.8.ebuild?rev=1.1&content-type=text/plain
44
45 Index: nspr-4.8.ebuild
46 ===================================================================
47 # Copyright 1999-2009 Gentoo Foundation
48 # Distributed under the terms of the GNU General Public License v2
49 # $Header: /var/cvsroot/gentoo-x86/dev-libs/nspr/nspr-4.8.ebuild,v 1.1 2009/06/24 17:47:24 nirbheek Exp $
50
51 inherit eutils multilib toolchain-funcs versionator
52
53 MIN_PV="$(get_version_component_range 2)"
54
55 DESCRIPTION="Netscape Portable Runtime"
56 HOMEPAGE="http://www.mozilla.org/projects/nspr/"
57 SRC_URI="ftp://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v${PV}/src/${P}.tar.gz"
58
59 LICENSE="|| ( MPL-1.1 GPL-2 LGPL-2.1 )"
60 SLOT="0"
61 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
62 IUSE="ipv6 debug"
63
64 DEPEND=">=dev-db/sqlite-3.5"
65 RDEPEND="${DEPEND}"
66
67 src_unpack() {
68 unpack ${A}
69 cd "${S}"
70 mkdir build inst
71 epatch "${FILESDIR}"/${PN}-4.6.1-config.patch
72 epatch "${FILESDIR}"/${PN}-4.6.1-config-1.patch
73 epatch "${FILESDIR}"/${PN}-4.6.1-lang.patch
74 epatch "${FILESDIR}"/${PN}-4.7.0-prtime.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 if use ipv6; then
93 myconf="${myconf} --enable-ipv6"
94 fi
95
96 myconf="${myconf} --libdir=/usr/$(get_libdir)/nspr \
97 --enable-system-sqlite"
98
99 ECONF_SOURCE="../mozilla/nsprpub" econf \
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 fucked, 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,nspr.pc}
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 }