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