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: nspr-4.8.3.ebuild ChangeLog
Date: Sun, 07 Feb 2010 19:14:03
Message-Id: E1NeCa0-0003K2-9W@stork.gentoo.org
1 anarchy 10/02/07 19:14:00
2
3 Modified: ChangeLog
4 Added: nspr-4.8.3.ebuild
5 Log:
6 version bump
7 (Portage version: 2.1.7.17/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.133 dev-libs/nspr/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/nspr/ChangeLog?rev=1.133&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/nspr/ChangeLog?rev=1.133&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/nspr/ChangeLog?r1=1.132&r2=1.133
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/dev-libs/nspr/ChangeLog,v
19 retrieving revision 1.132
20 retrieving revision 1.133
21 diff -u -r1.132 -r1.133
22 --- ChangeLog 27 Jan 2010 02:08:23 -0000 1.132
23 +++ ChangeLog 7 Feb 2010 19:13:59 -0000 1.133
24 @@ -1,6 +1,11 @@
25 # ChangeLog for dev-libs/nspr
26 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/nspr/ChangeLog,v 1.132 2010/01/27 02:08:23 anarchy Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/nspr/ChangeLog,v 1.133 2010/02/07 19:13:59 anarchy Exp $
29 +
30 +*nspr-4.8.3 (07 Feb 2010)
31 +
32 + 07 Feb 2010; <anarchy@g.o> +nspr-4.8.3.ebuild:
33 + version bump
34
35 *nspr-4.8.2-r1 (27 Jan 2010)
36
37
38
39
40 1.1 dev-libs/nspr/nspr-4.8.3.ebuild
41
42 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/nspr/nspr-4.8.3.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/nspr/nspr-4.8.3.ebuild?rev=1.1&content-type=text/plain
44
45 Index: nspr-4.8.3.ebuild
46 ===================================================================
47 # Copyright 1999-2010 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.3.ebuild,v 1.1 2010/02/07 19:13:59 anarchy 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.8-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 epatch "${FILESDIR}"/${PN}-4.8-pkgconfig-gentoo-1.patch
76
77 # Respect LDFLAGS
78 sed -i -e 's/\$(MKSHLIB) \$(OBJS)/\$(MKSHLIB) \$(LDFLAGS) \$(OBJS)/g' \
79 mozilla/nsprpub/config/rules.mk
80 }
81
82 src_compile() {
83 cd "${S}"/build
84
85 echo > "${T}"/test.c
86 $(tc-getCC) -c "${T}"/test.c -o "${T}"/test.o
87 case $(file "${T}"/test.o) in
88 *64-bit*) myconf="${myconf} --enable-64bit";;
89 *32-bit*) ;;
90 *) die "Failed to detect whether your arch is 64bits or 32bits, disable distcc if you're using it, please";;
91 esac
92
93 myconf="${myconf} --libdir=/usr/$(get_libdir)/nspr \
94 --enable-system-sqlite --with-mozilla --with-pthreads"
95
96 ECONF_SOURCE="../mozilla/nsprpub" econf \
97 $(use_enable ipv6) \
98 $(use_enable debug) \
99 ${myconf} || die "econf failed"
100 make CC="$(tc-getCC)" CXX="$(tc-getCXX)" || die
101 }
102
103 src_install () {
104 # Their build system is royally confusing, as usual
105 MINOR_VERSION=${MIN_PV} # Used for .so version
106 cd "${S}"/build
107 emake DESTDIR="${D}" install || die "emake install failed"
108
109 cd "${D}"/usr/$(get_libdir)/nspr
110 for file in *.so; do
111 mv ${file} ${file}.${MINOR_VERSION}
112 ln -s ${file}.${MINOR_VERSION} ${file}
113 done
114 # cope with libraries being in /usr/lib/nspr
115 dodir /etc/env.d
116 echo "LDPATH=/usr/$(get_libdir)/nspr" > "${D}/etc/env.d/08nspr"
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 }