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