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-r1.ebuild
Date: Tue, 09 Feb 2010 04:33:12
Message-Id: E1Nehme-0004ke-QT@stork.gentoo.org
1 anarchy 10/02/09 04:33:08
2
3 Modified: ChangeLog
4 Added: nspr-4.8.3-r1.ebuild
5 Log:
6 remove unneeded configure options, fix debug/optimize
7 (Portage version: 2.1.7.17/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.134 dev-libs/nspr/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/nspr/ChangeLog?rev=1.134&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/nspr/ChangeLog?rev=1.134&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/nspr/ChangeLog?r1=1.133&r2=1.134
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/dev-libs/nspr/ChangeLog,v
19 retrieving revision 1.133
20 retrieving revision 1.134
21 diff -u -r1.133 -r1.134
22 --- ChangeLog 7 Feb 2010 19:13:59 -0000 1.133
23 +++ ChangeLog 9 Feb 2010 04:33:08 -0000 1.134
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.133 2010/02/07 19:13:59 anarchy Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/nspr/ChangeLog,v 1.134 2010/02/09 04:33:08 anarchy Exp $
29 +
30 +*nspr-4.8.3-r1 (09 Feb 2010)
31 +
32 + 09 Feb 2010; <anarchy@g.o> +nspr-4.8.3-r1.ebuild:
33 + remove unneeded configure options, fix debug/optimize
34
35 *nspr-4.8.3 (07 Feb 2010)
36
37
38
39
40 1.1 dev-libs/nspr/nspr-4.8.3-r1.ebuild
41
42 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/nspr/nspr-4.8.3-r1.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/nspr/nspr-4.8.3-r1.ebuild?rev=1.1&content-type=text/plain
44
45 Index: nspr-4.8.3-r1.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-r1.ebuild,v 1.1 2010/02/09 04:33:08 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="debug"
63
64 src_unpack() {
65 unpack ${A}
66 cd "${S}"
67 mkdir build inst
68 epatch "${FILESDIR}"/${PN}-4.8-config.patch
69 epatch "${FILESDIR}"/${PN}-4.6.1-config-1.patch
70 epatch "${FILESDIR}"/${PN}-4.6.1-lang.patch
71 epatch "${FILESDIR}"/${PN}-4.7.0-prtime.patch
72 epatch "${FILESDIR}"/${PN}-4.8-pkgconfig-gentoo-1.patch
73
74 # Respect LDFLAGS
75 sed -i -e 's/\$(MKSHLIB) \$(OBJS)/\$(MKSHLIB) \$(LDFLAGS) \$(OBJS)/g' \
76 mozilla/nsprpub/config/rules.mk
77 }
78
79 src_compile() {
80 cd "${S}"/build
81
82 echo > "${T}"/test.c
83 $(tc-getCC) -c "${T}"/test.c -o "${T}"/test.o
84 case $(file "${T}"/test.o) in
85 *64-bit*) myconf="${myconf} --enable-64bit";;
86 *32-bit*) ;;
87 *) die "Failed to detect whether your arch is 64bits or 32bits, disable distcc if you're using it, please";;
88 esac
89
90 myconf="${myconf} --libdir=/usr/$(get_libdir)/nspr"
91
92 ECONF_SOURCE="../mozilla/nsprpub" econf \
93 $(use_enable debug) \
94 $(use_enable !debug optimize) \
95 ${myconf} || die "econf failed"
96 make CC="$(tc-getCC)" CXX="$(tc-getCXX)" || die
97 }
98
99 src_install () {
100 # Their build system is royally confusing, as usual
101 MINOR_VERSION=${MIN_PV} # Used for .so version
102 cd "${S}"/build
103 emake DESTDIR="${D}" install || die "emake install failed"
104
105 cd "${D}"/usr/$(get_libdir)/nspr
106 for file in *.so; do
107 mv ${file} ${file}.${MINOR_VERSION}
108 ln -s ${file}.${MINOR_VERSION} ${file}
109 done
110 # cope with libraries being in /usr/lib/nspr
111 dodir /etc/env.d
112 echo "LDPATH=/usr/$(get_libdir)/nspr" > "${D}/etc/env.d/08nspr"
113
114 # install nspr-config
115 dobin "${S}"/build/config/nspr-config
116
117 # create pkg-config file
118 insinto /usr/$(get_libdir)/pkgconfig/
119 doins "${S}"/build/config/nspr.pc
120
121 # Remove stupid files in /usr/bin
122 rm "${D}"/usr/bin/prerr.properties
123 }
124
125 pkg_postinst() {
126 ewarn
127 ewarn "Please make sure you run revdep-rebuild after upgrade."
128 ewarn "This is *extremely* important to ensure your system nspr works properly."
129 ewarn
130 }