Gentoo Archives: gentoo-commits

From: "Raul Porcel (armin76)" <armin76@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-libs/nspr: ChangeLog nspr-4.7.0_pre20080120.ebuild
Date: Thu, 24 Jan 2008 21:50:34
Message-Id: E1JI9xv-00009O-AE@stork.gentoo.org
1 armin76 08/01/24 21:50:31
2
3 Modified: ChangeLog
4 Added: nspr-4.7.0_pre20080120.ebuild
5 Log:
6 Version bump
7 (Portage version: 2.1.3.19)
8
9 Revision Changes Path
10 1.92 dev-libs/nspr/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/nspr/ChangeLog?rev=1.92&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/nspr/ChangeLog?rev=1.92&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/nspr/ChangeLog?r1=1.91&r2=1.92
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/dev-libs/nspr/ChangeLog,v
19 retrieving revision 1.91
20 retrieving revision 1.92
21 diff -u -r1.91 -r1.92
22 --- ChangeLog 18 Jan 2008 16:58:02 -0000 1.91
23 +++ ChangeLog 24 Jan 2008 21:50:30 -0000 1.92
24 @@ -1,6 +1,12 @@
25 # ChangeLog for dev-libs/nspr
26 # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/nspr/ChangeLog,v 1.91 2008/01/18 16:58:02 armin76 Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/nspr/ChangeLog,v 1.92 2008/01/24 21:50:30 armin76 Exp $
29 +
30 +*nspr-4.7.0_pre20080120 (24 Jan 2008)
31 +
32 + 24 Jan 2008; Raúl Porcel <armin76@g.o>
33 + +nspr-4.7.0_pre20080120.ebuild:
34 + Version bump
35
36 *nspr-4.7.0_pre20080113 (18 Jan 2008)
37
38
39
40
41 1.1 dev-libs/nspr/nspr-4.7.0_pre20080120.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/nspr/nspr-4.7.0_pre20080120.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/nspr/nspr-4.7.0_pre20080120.ebuild?rev=1.1&content-type=text/plain
45
46 Index: nspr-4.7.0_pre20080120.ebuild
47 ===================================================================
48 # Copyright 1999-2008 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.7.0_pre20080120.ebuild,v 1.1 2008/01/24 21:50:30 armin76 Exp $
51
52 inherit eutils multilib
53
54 DESCRIPTION="Netscape Portable Runtime"
55 HOMEPAGE="http://www.mozilla.org/projects/nspr/"
56 SRC_URI="mirror://gentoo/${P}.tar.bz2"
57
58 LICENSE="MPL-1.1 GPL-2 LGPL-2.1"
59 SLOT="0"
60 KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~sparc ~x86 ~x86-fbsd"
61 IUSE="ipv6 debug"
62
63 DEPEND=""
64
65 src_unpack() {
66 unpack ${A}
67 cd "${S}"
68 mkdir build inst
69 epatch "${FILESDIR}"/${PN}-4.6.1-config.patch
70 epatch "${FILESDIR}"/${PN}-4.6.1-config-1.patch
71 epatch "${FILESDIR}"/${PN}-4.6.1-lang.patch
72 epatch "${FILESDIR}"/${PN}-4.7.0-prtime.patch
73 }
74
75 src_compile() {
76 cd "${S}"/build
77
78 if use amd64 || use ppc64 || use ia64 || use s390; then
79 myconf="${myconf} --enable-64bit"
80 else
81 myconf=""
82 fi
83
84 if use ipv6; then
85 myconf="${myconf} --enable-ipv6"
86 fi
87
88 myconf="${myconf} --libdir=/usr/$(get_libdir)/nspr"
89
90 ECONF_SOURCE="../mozilla/nsprpub" econf \
91 $(use_enable debug) \
92 ${myconf} || die "econf failed"
93 make || die
94 }
95
96 src_install () {
97 # Their build system is royally fucked, as usual
98 MINOR_VERSION=7
99 cd "${S}"/build
100 emake DESTDIR="${D}" install || die "emake install failed"
101
102 cd "${D}"/usr/$(get_libdir)/nspr
103 for file in *.so; do
104 mv ${file} ${file}.${MINOR_VERSION}
105 ln -s ${file}.${MINOR_VERSION} ${file}
106 done
107 # cope with libraries being in /usr/lib/nspr
108 dodir /etc/env.d
109 echo "LDPATH=/usr/$(get_libdir)/nspr" > "${D}/etc/env.d/08nspr"
110
111 # install nspr-config
112 dobin "${S}"/build/config/nspr-config
113
114 # create pkg-config file
115 insinto /usr/$(get_libdir)/pkgconfig/
116 doins "${S}"/build/config/nspr.pc
117
118 # Remove stupid files in /usr/bin
119 rm "${D}"/usr/bin/{prerr.properties,nspr.pc}
120 }
121
122
123
124 --
125 gentoo-commits@l.g.o mailing list