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-r3.ebuild nspr-4.8.3-r2.ebuild
Date: Mon, 22 Feb 2010 00:59:07
Message-Id: E1NjMdZ-0001A5-Th@stork.gentoo.org
1 anarchy 10/02/22 00:59:01
2
3 Modified: ChangeLog
4 Added: nspr-4.8.3-r3.ebuild
5 Removed: nspr-4.8.3-r2.ebuild
6 Log:
7 minor fix ups, readd ipv6 useflag
8 (Portage version: 2.1.7.17/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.136 dev-libs/nspr/ChangeLog
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/nspr/ChangeLog?rev=1.136&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/nspr/ChangeLog?rev=1.136&content-type=text/plain
15 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/nspr/ChangeLog?r1=1.135&r2=1.136
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-libs/nspr/ChangeLog,v
20 retrieving revision 1.135
21 retrieving revision 1.136
22 diff -u -r1.135 -r1.136
23 --- ChangeLog 11 Feb 2010 03:30:01 -0000 1.135
24 +++ ChangeLog 22 Feb 2010 00:59:01 -0000 1.136
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.135 2010/02/11 03:30:01 anarchy Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/nspr/ChangeLog,v 1.136 2010/02/22 00:59:01 anarchy Exp $
30 +
31 +*nspr-4.8.3-r3 (22 Feb 2010)
32 +
33 + 22 Feb 2010; <anarchy@g.o> -nspr-4.8.3-r2.ebuild,
34 + +nspr-4.8.3-r3.ebuild:
35 + minor fix ups, readd ipv6 useflag
36
37 *nspr-4.8.3-r2 (11 Feb 2010)
38
39
40
41
42 1.1 dev-libs/nspr/nspr-4.8.3-r3.ebuild
43
44 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/nspr/nspr-4.8.3-r3.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/nspr/nspr-4.8.3-r3.ebuild?rev=1.1&content-type=text/plain
46
47 Index: nspr-4.8.3-r3.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-r3.ebuild,v 1.1 2010/02/22 00:59: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 ipv6"
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 $(use_enable ipv6) \
98 ${myconf} || die "econf failed"
99 emake CC="$(tc-getCC)" CXX="$(tc-getCXX)" || die "failed to build"
100 }
101
102 src_install () {
103 # Their build system is royally confusing, as usual
104 MINOR_VERSION=${MIN_PV} # Used for .so version
105 cd "${S}"/build
106 emake DESTDIR="${D}" install || die "emake install failed"
107
108 cd "${D}"/usr/$(get_libdir)
109 for file in *.a; do
110 einfo "removing static libraries as upstream has requested!"
111 rm -f ${file} || die "failed to remove staic libraries."
112 done
113
114 for file in *.so; do
115 mv ${file} ${file}.${MINOR_VERSION} || die "failed to mv files around"
116 ln -s ${file}.${MINOR_VERSION} ${file} || die "failed to symlink files."
117 done
118
119 # install nspr-config
120 dobin "${S}"/build/config/nspr-config || die "failed to install nspr-config"
121
122 # create pkg-config file
123 insinto /usr/$(get_libdir)/pkgconfig/
124 doins "${S}"/build/config/nspr.pc || die "failed to insall nspr pkg-config file"
125
126 # Remove stupid files in /usr/bin
127 rm -f "${D}"/usr/bin/prerr.properties || die "failed to cleanup unneeded files"
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 }