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.9.6.ebuild ChangeLog
Date: Fri, 29 Mar 2013 01:25:36
Message-Id: 20130329012459.817C12171D@flycatcher.gentoo.org
1 anarchy 13/03/29 01:24:59
2
3 Modified: ChangeLog
4 Added: nspr-4.9.6.ebuild
5 Log:
6 nspr: Version bump, bmo #807883,782214,812085 includes aarch64 support
7
8 (Portage version: 2.1.11.55/cvs/Linux x86_64, signed Manifest commit with key 0xB4D088B4)
9
10 Revision Changes Path
11 1.229 dev-libs/nspr/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/nspr/ChangeLog?rev=1.229&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/nspr/ChangeLog?rev=1.229&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/nspr/ChangeLog?r1=1.228&r2=1.229
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-libs/nspr/ChangeLog,v
20 retrieving revision 1.228
21 retrieving revision 1.229
22 diff -u -r1.228 -r1.229
23 --- ChangeLog 12 Mar 2013 15:16:23 -0000 1.228
24 +++ ChangeLog 29 Mar 2013 01:24:59 -0000 1.229
25 @@ -1,6 +1,11 @@
26 # ChangeLog for dev-libs/nspr
27 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/nspr/ChangeLog,v 1.228 2013/03/12 15:16:23 vapier Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/nspr/ChangeLog,v 1.229 2013/03/29 01:24:59 anarchy Exp $
30 +
31 +*nspr-4.9.6 (29 Mar 2013)
32 +
33 + 29 Mar 2013; Jory A. Pratt <anarchy@g.o> +nspr-4.9.6.ebuild:
34 + Version bump, bmo #807883,782214,812085 includes aarch64 support
35
36 *nspr-4.9.5-r2 (12 Mar 2013)
37
38
39
40
41 1.1 dev-libs/nspr/nspr-4.9.6.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/nspr/nspr-4.9.6.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/nspr/nspr-4.9.6.ebuild?rev=1.1&content-type=text/plain
45
46 Index: nspr-4.9.6.ebuild
47 ===================================================================
48 # Copyright 1999-2013 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.9.6.ebuild,v 1.1 2013/03/29 01:24:59 anarchy Exp $
51
52 EAPI=3
53 WANT_AUTOCONF="2.1"
54
55 inherit autotools eutils multilib toolchain-funcs versionator
56
57 MIN_PV="$(get_version_component_range 2)"
58
59 DESCRIPTION="Netscape Portable Runtime"
60 HOMEPAGE="http://www.mozilla.org/projects/nspr/"
61 SRC_URI="ftp://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v${PV}/src/${P}.tar.gz"
62
63 LICENSE="|| ( MPL-2.0 GPL-2 LGPL-2.1 )"
64 SLOT="0"
65 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
66 IUSE="debug"
67
68 src_prepare() {
69 mkdir build inst
70 epatch "${FILESDIR}"/${PN}-4.6.1-lang.patch
71 epatch "${FILESDIR}"/${PN}-4.7.0-prtime.patch
72 epatch "${FILESDIR}"/${PN}-4.7.1-solaris.patch
73 epatch "${FILESDIR}"/${PN}-4.7.4-solaris.patch
74 epatch "${FILESDIR}"/${PN}-4.8.3-aix-gcc.patch
75 epatch "${FILESDIR}"/${PN}-4.8.4-darwin-install_name.patch
76 epatch "${FILESDIR}"/${PN}-4.8.9-link-flags.patch
77 # We do not need to pass -L$libdir via nspr-config --libs
78 epatch "${FILESDIR}"/${PN}-4.9.5_nspr_config.patch
79
80 # We must run eautoconf to regenerate configure
81 cd "${S}"/mozilla/nsprpub
82 eautoconf
83
84 # make sure it won't find Perl out of Prefix
85 sed -i -e "s/perl5//g" "${S}"/mozilla/nsprpub/configure || die
86
87 # Respect LDFLAGS
88 sed -i -e 's/\$(MKSHLIB) \$(OBJS)/\$(MKSHLIB) \$(LDFLAGS) \$(OBJS)/g' \
89 "${S}"/mozilla/nsprpub/config/rules.mk || die
90 }
91
92 src_configure() {
93 cd "${S}"/build
94
95 # We use the standard BUILD_xxx but nspr uses HOST_xxx
96 tc-export_build_env BUILD_CC
97 export HOST_CC=${BUILD_CC} HOST_CFLAGS=${BUILD_CFLAGS} HOST_LDFLAGS=${BUILD_LDFLAGS}
98 tc-export AR CC CXX RANLIB
99 [[ ${CBUILD} != ${CHOST} ]] \
100 && export CROSS_COMPILE=1 \
101 || unset CROSS_COMPILE
102
103 local myconf
104 echo > "${T}"/test.c
105 ${CC} ${CFLAGS} ${CPPFLAGS} -c "${T}"/test.c -o "${T}"/test.o || die
106 case $(file "${T}"/test.o) in
107 *32-bit*x86-64*|*64-bit*|*ppc64*|*x86_64*) myconf+=" --enable-64bit";;
108 *32-bit*|*ppc*|*i386*) ;;
109 *) die "Failed to detect whether your arch is 64bits or 32bits, disable distcc if you're using it, please";;
110 esac
111
112 # Ancient autoconf needs help finding the right tools.
113 LC_ALL="C" ECONF_SOURCE="../mozilla/nsprpub" \
114 ac_cv_path_AR="${AR}" \
115 econf \
116 --libdir="${EPREFIX}/usr/$(get_libdir)" \
117 $(use_enable debug) \
118 $(use_enable !debug optimize) \
119 ${myconf}
120 }
121
122 src_compile() {
123 cd "${S}"/build
124 emake || die "failed to build"
125 }
126
127 src_install() {
128 # Their build system is royally confusing, as usual
129 MINOR_VERSION=${MIN_PV} # Used for .so version
130 cd "${S}"/build
131 emake DESTDIR="${D}" install || die "emake install failed"
132
133 cd "${ED}"/usr/$(get_libdir)
134 einfo "removing static libraries as upstream has requested!"
135 rm -f *.a || die "failed to remove static libraries."
136
137 # install nspr-config
138 dobin "${S}"/build/config/nspr-config || die "failed to install nspr-config"
139
140 # Remove stupid files in /usr/bin
141 rm -f "${ED}"/usr/bin/prerr.properties || die "failed to cleanup unneeded files"
142 }