Gentoo Archives: gentoo-commits

From: "Tiziano Mueller (dev-zero)" <dev-zero@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-libs/boost: ChangeLog boost-1.34.1-r1.ebuild boost-1.34.0-r1.ebuild boost-1.34.1.ebuild
Date: Mon, 24 Dec 2007 08:07:52
Message-Id: E1J6iLg-00038a-HZ@stork.gentoo.org
1 dev-zero 07/12/24 08:07:44
2
3 Modified: ChangeLog
4 Added: boost-1.34.1-r1.ebuild
5 Removed: boost-1.34.0-r1.ebuild boost-1.34.1.ebuild
6 Log:
7 Added patch to fix a critical bug in Boost.Function and another one to fix a missing include showing up with gcc-4.3 (both bug #202964). Dropped old version and old revisions.
8 (Portage version: 2.1.4_rc11)
9
10 Revision Changes Path
11 1.124 dev-libs/boost/ChangeLog
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/boost/ChangeLog?rev=1.124&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/boost/ChangeLog?rev=1.124&content-type=text/plain
15 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/boost/ChangeLog?r1=1.123&r2=1.124
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-libs/boost/ChangeLog,v
20 retrieving revision 1.123
21 retrieving revision 1.124
22 diff -u -r1.123 -r1.124
23 --- ChangeLog 18 Nov 2007 12:15:12 -0000 1.123
24 +++ ChangeLog 24 Dec 2007 08:07:43 -0000 1.124
25 @@ -1,6 +1,15 @@
26 # ChangeLog for dev-libs/boost
27 # Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/boost/ChangeLog,v 1.123 2007/11/18 12:15:12 dev-zero Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/boost/ChangeLog,v 1.124 2007/12/24 08:07:43 dev-zero Exp $
30 +
31 +*boost-1.34.1-r1 (24 Dec 2007)
32 +
33 + 24 Dec 2007; Tiziano Müller <dev-zero@g.o>
34 + -files/boost-1.34.0-gcc42-atomicity.h.patch, -boost-1.34.0-r1.ebuild,
35 + -boost-1.34.1.ebuild, +boost-1.34.1-r1.ebuild:
36 + Added patch to fix a critical bug in Boost.Function and another one to fix a
37 + missing include showing up with gcc-4.3 (both bug #202964). Dropped old
38 + version and old revisions.
39
40 18 Nov 2007; Tiziano Müller <dev-zero@g.o> boost-1.34.1.ebuild:
41 Fixed broken links in documentation (bug #194789) and added '-q' to the bjam
42
43
44
45 1.1 dev-libs/boost/boost-1.34.1-r1.ebuild
46
47 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/boost/boost-1.34.1-r1.ebuild?rev=1.1&view=markup
48 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/boost/boost-1.34.1-r1.ebuild?rev=1.1&content-type=text/plain
49
50 Index: boost-1.34.1-r1.ebuild
51 ===================================================================
52 # Copyright 1999-2007 Gentoo Foundation
53 # Distributed under the terms of the GNU General Public License v2
54 # $Header: /var/cvsroot/gentoo-x86/dev-libs/boost/boost-1.34.1-r1.ebuild,v 1.1 2007/12/24 08:07:43 dev-zero Exp $
55
56 inherit distutils flag-o-matic multilib toolchain-funcs versionator check-reqs
57
58 KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
59
60 MY_P=${PN}_$(replace_all_version_separators _)
61 PATCHSET_VERSION="${PV}-1"
62
63 DESCRIPTION="Boost Libraries for C++"
64 HOMEPAGE="http://www.boost.org/"
65 SRC_URI="mirror://sourceforge/boost/${MY_P}.tar.bz2
66 mirror://gentoo/boost-patches-${PATCHSET_VERSION}.tbz2"
67 LICENSE="freedist Boost-1.0"
68 SLOT="0"
69 IUSE="debug doc icu pyste tools"
70
71 DEPEND="icu? ( >=dev-libs/icu-3.2 )
72 sys-libs/zlib
73 ~dev-util/boost-build-${PV}"
74 RDEPEND="${DEPEND}
75 pyste? ( dev-cpp/gccxml dev-python/elementtree )"
76
77 S=${WORKDIR}/${MY_P}
78
79 # Maintainer Information
80 # ToDo:
81 # - write a patch to support /dev/urandom on FreeBSD and OSX (see below)
82
83 pkg_setup() {
84 if has test ${FEATURES} ; then
85 CHECKREQS_DISK_BUILD="1024"
86 check_reqs
87
88 ewarn "The tests may take several hours on a recent machine"
89 ewarn "but they will not fail (unless something weird happens ;-)"
90 ewarn "This is because the tests depend on the used compiler/-version"
91 ewarn "and the platform and upstream says that this is normal."
92 ewarn "If you are interested in the results, please take a look at the"
93 ewarn "generated results page:"
94 ewarn " ${ROOT}usr/share/doc/${PF}/status/cs-$(uname).html"
95 ebeep 5
96
97 fi
98 }
99
100 src_unpack() {
101 unpack ${A}
102
103 EPATCH_SOURCE="${WORKDIR}/patches"
104 EPATCH_SUFFIX="patch"
105 epatch
106
107 cd "${S}"
108
109 rm boost-build.jam
110
111 # This enables building the boost.random library with /dev/urandom support
112 if ! use userland_Darwin ; then
113 mkdir -p libs/random/build
114 cp "${FILESDIR}/random-Jamfile" libs/random/build/Jamfile.v2
115 fi
116 }
117
118 generate_options() {
119 LINK_OPTIONS="shared static"
120
121 # Maintainer information:
122 # The debug-symbols=none and optimization=none
123 # are not official upstream flags but a Gentoo
124 # specific patch to make sure that all our
125 # CXXFLAGS/LDFLAGS are being respected.
126 # Using optimization=off would for example add
127 # "-O0" and override "-O2" set by the user.
128 # Please take a look at the boost-build ebuild
129 # for more infomration.
130 if ! use debug ; then
131 OPTIONS="release debug-symbols=none"
132 else
133 OPTIONS="debug"
134 fi
135
136 OPTIONS="${OPTIONS} optimization=none"
137
138 use icu && OPTIONS="${OPTIONS} -sHAVE_ICU=1 -sICU_PATH=/usr"
139
140 OPTIONS="${OPTIONS} --user-config=${S}/user-config.jam"
141 }
142
143 generate_userconfig() {
144 einfo "Writing new user-config.jam"
145 distutils_python_version
146
147 local compiler compilerVersion compilerExecutable
148 if [[ ${CHOST} == *-darwin* ]] ; then
149 compiler=darwin
150 compilerVersion=$(gcc-version)
151 compilerExecutable=$(tc-getCXX)
152 append-ldflags -ldl
153 else
154 compiler=gcc
155 compilerVersion=$(gcc-version)
156 compilerExecutable=$(tc-getCXX)
157 fi
158
159 cat > "${S}/user-config.jam" << __EOF__
160 import toolset : using ;
161 import toolset : flags ;
162 using ${compiler} : ${compilerVersion} : ${compilerExecutable} : <cxxflags>"${CXXFLAGS}" <linkflags>"${LDFLAGS}" ;
163 using python : ${PYVER} : /usr : /usr/include/python${PYVER} : /usr/lib/python${PYVER} ;
164 __EOF__
165
166 }
167
168 src_compile() {
169
170 NUMJOBS=$(sed -e 's/.*\(\-j[ 0-9]\+\) .*/\1/' <<< ${MAKEOPTS})
171
172 generate_userconfig
173 generate_options
174
175 elog "Using the following options to build: "
176 elog " ${OPTIONS}"
177
178 export BOOST_ROOT=${S}
179 export BOOST_BUILD_PATH=/usr/share/boost-build
180
181 for linkoption in ${LINK_OPTIONS} ; do
182 einfo "Building ${linkoption} libraries"
183 bjam ${NUMJOBS} -q \
184 ${OPTIONS} \
185 threading=single,multi \
186 runtime-link=${linkoption} link=${linkoption} \
187 --prefix="${D}/usr" \
188 --layout=system \
189 || die "building boost failed"
190 done
191
192 if use pyste; then
193 cd "${S}/libs/python/pyste/install"
194 distutils_src_compile
195 fi
196
197 if use tools; then
198 cd "${S}/tools/"
199 # We have to set optimization to -O0 or -O1 to work around a gcc-bug
200 # optimization=off adds -O0 to the compiler call and overwrites our settings.
201 bjam ${NUMJOBS} -q \
202 release debug-symbols=none \
203 optimization=off \
204 --prefix="${D}/usr" \
205 --layout=system \
206 --user-config="${S}/user-config.jam" \
207 || die "building tools failed"
208 fi
209
210 if has test ${FEATURES} ; then
211 cd "${S}/tools/regression/build"
212 bjam -q \
213 ${OPTIONS} \
214 --prefix="${D}/usr" \
215 --layout=system \
216 || die "building regression test helpers failed"
217 fi
218
219 }
220
221 src_install () {
222
223 generate_options
224
225 export BOOST_ROOT=${S}
226 export BOOST_BUILD_PATH=/usr/share/boost-build
227
228 for linkoption in ${LINK_OPTIONS} ; do
229 bjam -q \
230 ${OPTIONS} \
231 threading=single,multi \
232 runtime-link=${linkoption} link=${linkoption} \
233 --prefix="${D}/usr" \
234 --includedir="${D}/usr/include" \
235 --libdir="${D}/usr/$(get_libdir)" \
236 --layout=system \
237 install || die "install failed"
238 done
239
240 dodoc README
241
242 if use doc ; then
243 dohtml -A pdf,txt \
244 *.htm *.png *.css \
245 -r doc libs more people wiki
246
247 insinto /usr/share/doc/${PF}/html
248 doins LICENSE_1_0.txt
249
250 dosym /usr/include/boost /usr/share/doc/${PF}/html/boost
251 fi
252
253 cd "${D}/usr/$(get_libdir)"
254
255 # If built with debug enabled, all libraries get a 'd' postfix,
256 # this breaks linking other apps against boost (bug #181972)
257 if use debug ; then
258 for lib in $(ls -1 libboost_*) ; do
259 dosym ${lib} "/usr/$(get_libdir)/$(sed -e 's/-d\././' -e 's/d\././' <<< ${lib})"
260 done
261 fi
262
263 for lib in $(ls -1 libboost_thread-mt.*) ; do
264 dosym ${lib} "/usr/$(get_libdir)/$(sed -e 's/-mt//' <<< ${lib})"
265 done
266
267 if use pyste; then
268 cd "${S}/libs/python/pyste/install"
269 distutils_src_install
270 fi
271
272 if use tools; then
273 cd "${S}/dist"
274 dobin bin/*
275 insinto /usr
276 doins -r share
277 fi
278
279 if has test ${FEATURES} ; then
280 cd "${S}/status"
281 docinto status
282 dohtml *.{html,gif} ../boost.png
283 dodoc regress.log
284 fi
285 }
286
287 src_test() {
288 generate_options
289
290 export BOOST_ROOT=${S}
291 export BOOST_BUILD_PATH=/usr/share/boost-build
292
293 cd "${S}/status"
294
295 # Some of the test-checks seem to rely on regexps
296 export LC_ALL="C"
297
298 # The following is largely taken from tools/regression/run_tests.sh,
299 # but adapted to our needs.
300
301 # Run the tests & write them into a file for postprocessing
302 bjam \
303 ${OPTIONS} \
304 --dump-tests 2>&1 | tee regress.log
305
306 # Postprocessing
307 cat regress.log | "${S}/dist/bin/process_jam_log" --v2
308 if test $? != 0 ; then
309 die "Postprocessing the build log failed"
310 fi
311
312 cat > "${S}/status/comment.html" <<- __EOF__
313 <p>Tests are run on a <a href="http://www.gentoo.org">Gentoo</a> system.</p>
314 __EOF__
315
316 # Generate the build log html summary page
317 "${S}/dist/bin/compiler_status" --v2 \
318 --comment "${S}/status/comment.html" "${S}" \
319 cs-$(uname).html cs-$(uname)-links.html
320 if test $? != 0 ; then
321 die "Generating the build log html summary page failed"
322 fi
323
324 # And do some cosmetic fixes :)
325 sed -i -e 's|../boost.png|boost.png|' *.html
326 }
327
328
329
330 --
331 gentoo-commits@g.o mailing list