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/nss: ChangeLog nss-3.12_rc3.ebuild
Date: Sun, 11 May 2008 14:30:26
Message-Id: E1JvCZD-0006sl-MV@stork.gentoo.org
1 armin76 08/05/11 14:30:23
2
3 Modified: ChangeLog
4 Added: nss-3.12_rc3.ebuild
5 Log:
6 Version bump
7 (Portage version: 2.1.4.4)
8
9 Revision Changes Path
10 1.122 dev-libs/nss/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/nss/ChangeLog?rev=1.122&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/nss/ChangeLog?rev=1.122&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/nss/ChangeLog?r1=1.121&r2=1.122
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/dev-libs/nss/ChangeLog,v
19 retrieving revision 1.121
20 retrieving revision 1.122
21 diff -u -r1.121 -r1.122
22 --- ChangeLog 11 Apr 2008 17:15:38 -0000 1.121
23 +++ ChangeLog 11 May 2008 14:30:23 -0000 1.122
24 @@ -1,6 +1,11 @@
25 # ChangeLog for dev-libs/nss
26 # Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/nss/ChangeLog,v 1.121 2008/04/11 17:15:38 armin76 Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/nss/ChangeLog,v 1.122 2008/05/11 14:30:23 armin76 Exp $
29 +
30 +*nss-3.12_rc3 (11 May 2008)
31 +
32 + 11 May 2008; Raúl Porcel <armin76@g.o> +nss-3.12_rc3.ebuild:
33 + Version bump
34
35 11 Apr 2008; Raúl Porcel <armin76@g.o> nss-3.11.7.ebuild,
36 nss-3.11.9.ebuild, nss-3.12_beta3.ebuild, nss-3.12_rc2.ebuild:
37
38
39
40 1.1 dev-libs/nss/nss-3.12_rc3.ebuild
41
42 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/nss/nss-3.12_rc3.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/nss/nss-3.12_rc3.ebuild?rev=1.1&content-type=text/plain
44
45 Index: nss-3.12_rc3.ebuild
46 ===================================================================
47 # Copyright 1999-2008 Gentoo Foundation
48 # Distributed under the terms of the GNU General Public License v2
49 # $Header: /var/cvsroot/gentoo-x86/dev-libs/nss/nss-3.12_rc3.ebuild,v 1.1 2008/05/11 14:30:23 armin76 Exp $
50
51 inherit eutils flag-o-matic multilib toolchain-funcs
52
53 NSPR_VER="4.7.1_beta3"
54 RTM_NAME="NSS_${PV//./_}_RTM"
55 DESCRIPTION="Mozilla's Network Security Services library that implements PKI support"
56 HOMEPAGE="http://www.mozilla.org/projects/security/pki/nss/"
57 SRC_URI="mirror://gentoo/${P}.tar.bz2"
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="utils"
63
64 DEPEND=">=dev-libs/nspr-${NSPR_VER}
65 >=dev-db/sqlite-3.5"
66
67 S="${WORKDIR}"
68
69 src_unpack() {
70 unpack ${A}
71
72 # hack nspr paths
73 echo 'INCLUDES += -I/usr/include/nspr -I$(DIST)/include/dbm' \
74 >> "${S}"/mozilla/security/coreconf/headers.mk || die "failed to append include"
75
76 # cope with nspr being in /usr/$(get_libdir)/nspr
77 sed -e 's:$(DIST)/lib:/usr/'"$(get_libdir)"/nspr':' \
78 -i "${S}"/mozilla/security/coreconf/location.mk
79
80 # modify install path
81 sed -e 's:SOURCE_PREFIX = $(CORE_DEPTH)/\.\./dist:SOURCE_PREFIX = $(CORE_DEPTH)/dist:' \
82 -i "${S}"/mozilla/security/coreconf/source.mk
83
84 cd "${S}"
85 epatch "${FILESDIR}"/${PN}-3.11-config.patch
86 epatch "${FILESDIR}"/${PN}-3.12-config-1.patch
87 epatch "${FILESDIR}"/${PN}-mips64.patch
88 }
89
90 src_compile() {
91 strip-flags
92
93 echo > "${T}"/test.c
94 $(tc-getCC) -c "${T}"/test.c -o "${T}"/test.o
95 case $(file "${T}"/test.o) in
96 *64-bit*) export USE_64=1;;
97 *32-bit*) ;;
98 *) die "FAIL";;
99 esac
100
101 export NSDISTMODE=copy
102 export NSS_USE_SYSTEM_SQLITE=1
103 cd "${S}"/mozilla/security/coreconf
104 emake -j1 BUILD_OPT=1 XCFLAGS="${CFLAGS}" CC="$(tc-getCC)" || die "coreconf make failed"
105 cd "${S}"/mozilla/security/dbm
106 emake -j1 BUILD_OPT=1 XCFLAGS="${CFLAGS}" CC="$(tc-getCC)" || die "dbm make failed"
107 cd "${S}"/mozilla/security/nss
108 emake -j1 BUILD_OPT=1 XCFLAGS="${CFLAGS}" CC="$(tc-getCC)" || die "nss make failed"
109 }
110
111 src_install () {
112 MINOR_VERSION=12
113 cd "${S}"/mozilla/security/dist
114
115 # put all *.a files in /usr/lib/nss (because some have conflicting names
116 # with existing libraries)
117 dodir /usr/$(get_libdir)/nss
118 cp -L */lib/*.so "${D}"/usr/$(get_libdir)/nss || die "copying shared libs failed"
119 cp -L */lib/*.chk "${D}"/usr/$(get_libdir)/nss || die "copying chk files failed"
120 cp -L */lib/*.a "${D}"/usr/$(get_libdir)/nss || die "copying libs failed"
121
122 # all the include files
123 insinto /usr/include/nss
124 doins private/nss/*.h
125 doins public/nss/*.h
126 cd "${D}"/usr/$(get_libdir)/nss
127 for file in *.so; do
128 mv ${file} ${file}.${MINOR_VERSION}
129 ln -s ${file}.${MINOR_VERSION} ${file}
130 done
131
132 # coping with nss being in a different path. We move up priority to
133 # ensure that nss/nspr are used specifically before searching elsewhere.
134 dodir /etc/env.d
135 echo "LDPATH=/usr/$(get_libdir)/nss" > "${D}"/etc/env.d/08nss
136
137 dodir /usr/bin
138 dodir /usr/$(get_libdir)/pkgconfig
139 cp "${FILESDIR}"/3.12-nss-config.in "${D}"/usr/bin/nss-config
140 cp "${FILESDIR}"/3.12-nss.pc.in "${D}"/usr/$(get_libdir)/pkgconfig/nss.pc
141 NSS_VMAJOR=`cat ${S}/mozilla/security/nss/lib/nss/nss.h | grep "#define.*NSS_VMAJOR" | awk '{print $3}'`
142 NSS_VMINOR=`cat ${S}/mozilla/security/nss/lib/nss/nss.h | grep "#define.*NSS_VMINOR" | awk '{print $3}'`
143 NSS_VPATCH=`cat ${S}/mozilla/security/nss/lib/nss/nss.h | grep "#define.*NSS_VPATCH" | awk '{print $3}'`
144
145 sed -e "s,@libdir@,/usr/"$(get_libdir)"/nss,g" \
146 -e "s,@prefix@,/usr,g" \
147 -e "s,@exec_prefix@,\$\{prefix},g" \
148 -e "s,@includedir@,\$\{prefix}/include/nss,g" \
149 -e "s,@MOD_MAJOR_VERSION@,$NSS_VMAJOR,g" \
150 -e "s,@MOD_MINOR_VERSION@,$NSS_VMINOR,g" \
151 -e "s,@MOD_PATCH_VERSION@,$NSS_VPATCH,g" \
152 -i "${D}"/usr/bin/nss-config
153 chmod 755 "${D}"/usr/bin/nss-config
154
155 sed -e "s,@libdir@,/usr/"$(get_libdir)"/nss,g" \
156 -e "s,@prefix@,/usr,g" \
157 -e "s,@exec_prefix@,\$\{prefix},g" \
158 -e "s,@includedir@,\$\{prefix}/include/nss," \
159 -e "s,@NSPR_VERSION@,`nspr-config --version`,g" \
160 -e "s,@NSS_VERSION@,$NSS_VMAJOR.$NSS_VMINOR.$NSS_VPATCH,g" \
161 -i "${D}"/usr/$(get_libdir)/pkgconfig/nss.pc
162 chmod 644 "${D}"/usr/$(get_libdir)/pkgconfig/nss.pc
163
164 if use utils; then
165 cd "${S}"/mozilla/security/dist/*/bin/
166 for f in *; do
167 newbin ${f} nss${f}
168 done
169 fi
170 }
171
172
173
174 --
175 gentoo-commits@l.g.o mailing list