New snapshot added: All boost-tools are now available via the tools USE-flag.
authorTiziano Müller <dev-zero@gentoo.org>
Mon, 18 Dec 2006 23:17:00 +0000 (23:17 +0000)
committerTiziano Müller <dev-zero@gentoo.org>
Mon, 18 Dec 2006 23:17:00 +0000 (23:17 +0000)
Package-Manager: portage-2.1.2_rc3

dev-libs/boost/ChangeLog
dev-libs/boost/Manifest
dev-libs/boost/boost-1.34_pre20061214.ebuild [new file with mode: 0644]
dev-libs/boost/files/digest-boost-1.34_pre20061214 [new file with mode: 0644]
dev-libs/boost/files/random-Jamfile [new file with mode: 0644]

index b53fc3643b2bc414cc72f417c5d4e81a6e047931..0d43e08c311e4d2cd339fc7320a5e69e792b0415 100644 (file)
@@ -1,6 +1,12 @@
 # ChangeLog for dev-libs/boost
 # Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/boost/ChangeLog,v 1.96 2006/11/27 16:06:54 dev-zero Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/boost/ChangeLog,v 1.97 2006/12/18 23:17:00 dev-zero Exp $
+
+*boost-1.34_pre20061214 (18 Dec 2006)
+
+  18 Dec 2006; Tiziano Müller <dev-zero@gentoo.org> +files/random-Jamfile,
+  +boost-1.34_pre20061214.ebuild:
+  New snapshot added: All boost-tools are now available via the tools USE-flag.
 
   27 Nov 2006; Tiziano Müller <dev-zero@gentoo.org> boost-1.33.1-r1.ebuild:
   Added icu USE-flag and dependency, bug #141170
index 2a9e48fe583db79a17b88fc8c25d2085b2fc250a..3c05596b9a8749187fd6b12084114ed89f29043e 100644 (file)
@@ -6,8 +6,13 @@ AUX boost-alpha-threads.patch 1111 RMD160 49fe6128f6dd9277389d25a83706b401705cdb
 MD5 238bb8043f0cdc8bd91f81bd0b55f92a files/boost-alpha-threads.patch 1111
 RMD160 49fe6128f6dd9277389d25a83706b401705cdb40 files/boost-alpha-threads.patch 1111
 SHA256 e7d1cb78cc73763023edb80cdb66e2a9389d9ef40f448be60cf8cd4f827e7623 files/boost-alpha-threads.patch 1111
+AUX random-Jamfile 355 RMD160 478b592e9d33d371b07e5364e63512c8208263bf SHA1 8ca047df78758f62a6c131bd27441173e9079fa6 SHA256 7dc71ab8b862ccd5ea9c21c42557adfe0c711ea7fbe7faa47328a37aa84bc096
+MD5 1d43f6ee1fc426f1ddcb4aafc6b77b9b files/random-Jamfile 355
+RMD160 478b592e9d33d371b07e5364e63512c8208263bf files/random-Jamfile 355
+SHA256 7dc71ab8b862ccd5ea9c21c42557adfe0c711ea7fbe7faa47328a37aa84bc096 files/random-Jamfile 355
 DIST boost_1_33_1.tar.bz2 11507161 RMD160 3d5999d321b558f74d786bec52ee1b1fcd7e7152 SHA1 22682f75ff0d1ea548688e78c8cca83d599ca576 SHA256 6232e93205acbc8c705f44f15977aae158550c99a384f41606cff26c16393be0
 DIST boost_1_34_pre20060930.tar.bz2 12465498 RMD160 ddf4c22efe379c3f620aca4d75012587f237b207 SHA1 a84edda31b94406325db27a5611cce237dadc1ef SHA256 5f98f27309994f2d660bc763efef177c76954421f308748f732b2d62e35753ad
+DIST boost_1_34_pre20061214.tar.bz2 12357020 RMD160 51a96ef3dc28b4bd1d5fc3c295a4a3f874fe59fa SHA1 62e6fc5ea23aec68e26282068e950c0ca035f846 SHA256 4c88805afe6b47366d960d878eec8a6e0e7f40a7f9122a7d877020e9102d0e49
 EBUILD boost-1.33.1-r1.ebuild 5494 RMD160 51f5505b46e9f3a61f37ed5493cedb88b605ec2a SHA1 b1d63aeb9c70a0ccbe73b50faed09c18fdcb8911 SHA256 fc87b1fae08acd65cb0bad798e2225c8c51c789b9f162fd3e08804889d92217b
 MD5 8b25df2f6dd561b87a894e3992e634b6 boost-1.33.1-r1.ebuild 5494
 RMD160 51f5505b46e9f3a61f37ed5493cedb88b605ec2a boost-1.33.1-r1.ebuild 5494
@@ -20,10 +25,14 @@ EBUILD boost-1.34_pre20060930.ebuild 6413 RMD160 a27fb80c02f5934c56114a0255471eb
 MD5 62003e12d13292538a10a9cfe7f5d36b boost-1.34_pre20060930.ebuild 6413
 RMD160 a27fb80c02f5934c56114a0255471eb6441c8e78 boost-1.34_pre20060930.ebuild 6413
 SHA256 f4b9c991c7c7622da98e4add8c4dee6485bf27da13ec3107defea829815229e1 boost-1.34_pre20060930.ebuild 6413
-MISC ChangeLog 13077 RMD160 21fa64ee654c37c233ef80922622f4165bc7bc79 SHA1 ceea052346d1e51b8a501ee3eeee827d6a9cc77d SHA256 af2d9313733262f15ad8b08ffc7d18aad0b25abde18f800982593ce1e2aae953
-MD5 90b4e5b6437fb6b8fce7b4b0c42eb1ac ChangeLog 13077
-RMD160 21fa64ee654c37c233ef80922622f4165bc7bc79 ChangeLog 13077
-SHA256 af2d9313733262f15ad8b08ffc7d18aad0b25abde18f800982593ce1e2aae953 ChangeLog 13077
+EBUILD boost-1.34_pre20061214.ebuild 4023 RMD160 9738766390156e31e808754abc1432161cdc3225 SHA1 afaa044d1187ab6a68cddebb70be2be1ed14036d SHA256 5a229be753d9b90f72179ea13e02525579ded81608939babd74afdfd809bf6d7
+MD5 33837bc255ea05a290ef56183e65f9c3 boost-1.34_pre20061214.ebuild 4023
+RMD160 9738766390156e31e808754abc1432161cdc3225 boost-1.34_pre20061214.ebuild 4023
+SHA256 5a229be753d9b90f72179ea13e02525579ded81608939babd74afdfd809bf6d7 boost-1.34_pre20061214.ebuild 4023
+MISC ChangeLog 13307 RMD160 c873f5db166870b100afc779703991c2bbb81701 SHA1 bf161f4035e4c0e2292508af0c73b071d56c6f22 SHA256 a4326887ebfbb51ac696c0d792775637c367a2ba82b6d735d1c76776cbde42de
+MD5 3c5054473b62110b2c14c396e2e72f84 ChangeLog 13307
+RMD160 c873f5db166870b100afc779703991c2bbb81701 ChangeLog 13307
+SHA256 a4326887ebfbb51ac696c0d792775637c367a2ba82b6d735d1c76776cbde42de ChangeLog 13307
 MISC metadata.xml 349 RMD160 d25d9702dc4a5438f4bf5f7a9e9fc1b0664b6bdd SHA1 042144f72d878c355a55ad72a5212b2c2db88b9a SHA256 17524a0d3400af3c713289c5cf1f713cf63619264b9c6b535be3e2d543512cf6
 MD5 b0f631e883fed00f233ff27ce7ceb93d metadata.xml 349
 RMD160 d25d9702dc4a5438f4bf5f7a9e9fc1b0664b6bdd metadata.xml 349
@@ -37,3 +46,6 @@ SHA256 81d215f8a743fe6c248ca79c782decf96967f883a5e015840cdea311556a278b files/di
 MD5 6fe4006c9c09440c4342f0ad3f13fbd3 files/digest-boost-1.34_pre20060930 277
 RMD160 e0aa05d6a4abd8c316fa1e8f3751d9ae46d6f303 files/digest-boost-1.34_pre20060930 277
 SHA256 0336896df45c00f19d39b9fffb08047888534b353780efb1f91a55c862b27ac0 files/digest-boost-1.34_pre20060930 277
+MD5 4d2c7622840a8822a22de0b6b476a878 files/digest-boost-1.34_pre20061214 277
+RMD160 9a9df1d0836e4228bb0555168feaec083d916c49 files/digest-boost-1.34_pre20061214 277
+SHA256 06642f8f05261ead16839bb8350548064c469dba0f16992c748e9a3c2b0b0f46 files/digest-boost-1.34_pre20061214 277
diff --git a/dev-libs/boost/boost-1.34_pre20061214.ebuild b/dev-libs/boost/boost-1.34_pre20061214.ebuild
new file mode 100644 (file)
index 0000000..ed99b33
--- /dev/null
@@ -0,0 +1,172 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/boost/boost-1.34_pre20061214.ebuild,v 1.1 2006/12/18 23:17:00 dev-zero Exp $
+
+inherit distutils flag-o-matic multilib python toolchain-funcs versionator
+
+KEYWORDS="~amd64 ~x86"
+
+MY_P=${PN}_$(replace_all_version_separators _)
+
+DESCRIPTION="Boost Libraries for C++"
+HOMEPAGE="http://www.boost.org/"
+SRC_URI="http://dev.gentoo.org/~dev-zero/distfiles/${MY_P}.tar.bz2"
+LICENSE="freedist Boost-1.0"
+SLOT="0"
+IUSE="debug doc icc icu pyste static threads threadsonly tools"
+
+DEPEND="icu? ( >=dev-libs/icu-3.2 )
+               sys-libs/zlib
+               ~dev-util/boost-build-${PV}"
+RDEPEND="${DEPEND}
+               pyste? ( dev-cpp/gccxml dev-python/elementtree )"
+
+S=${WORKDIR}/${MY_P}
+
+src_unpack() {
+       unpack ${A}
+       cd "${S}"
+
+       rm boost-build.jam
+
+       mkdir -p libs/random/build
+       cp "${FILESDIR}/random-Jamfile" libs/random/build/Jamfile.v2
+}
+
+generate_options() {
+       LINK_OPTIONS="shared"
+       use static && LINK_OPTIONS="${LINK_OPTIONS} static"
+
+       if ! use debug ; then
+               OPTIONS="release debug-symbols=none"
+       else
+               OPTIONS="debug"
+       fi
+
+       OPTIONS="${OPTIONS} optimization=none"
+
+       if use threads ; then
+               if use threadsonly ; then
+                       OPTIONS="${OPTIONS} threading=multi"
+               else
+                       OPTIONS="${OPTIONS} threading=single,multi"
+               fi
+       else
+               OPTIONS="${OPTIONS} threading=single"
+       fi
+
+       use icu && OPTIONS="${OPTIONS} -sHAVE_ICU=1 -sICU_PATH=\"${ROOT}/usr\""
+
+}
+
+generate_userconfig() {
+       einfo "Writing new user-config.jam"
+       python_version
+
+       local compiler compilerVersion compilerExecutable
+       if use icc ; then
+               compiler=intel-linux
+               compilerExecutable=icc
+       elif [ "${ARCH}" == "ppc-macos" ] ; then
+               compiler=darwin
+               compilerExecutable=cc
+       else
+               compiler=gcc
+               compilerVersion=$(gcc-version)
+               compilerExecutable=$(tc-getCXX)
+       fi
+
+       cat > "${HOME}/user-config.jam" << __EOF__
+import toolset : using ;
+import toolset : flags ;
+using ${compiler} : ${compilerVersion} : ${compilerExecutable} : <cxxflags>"${CXXFLAGS}" <linkflags>"${LDFLAGS}" ;
+using python : ${PYVER} : ${ROOT}usr : ${ROOT}usr/include/python${PYVER} : ${ROOT}usr/lib/python${PYVER} ;
+__EOF__
+
+}
+
+src_compile() {
+
+       NUMJOBS=$(sed -e 's/.*\(\-j[ 0-9]\+\) .*/\1/' <<< ${MAKEOPTS})
+
+       generate_userconfig
+       generate_options
+
+       BOOST_ROOT=${S}
+       BOOST_BUILD_PATH=${ROOT}/usr/share/boost-build
+
+       # Note: The line "debug-symbols=on" only adds '-g' to compiler and linker invocation
+       # and prevents boost-build from stripping the libraries/binaries
+       for linkoption in ${LINK_OPTIONS} ; do
+               einfo "Building ${linkoption} libraries"
+               bjam ${NUMJOBS} \
+                       ${OPTIONS} \
+                       runtime-link=${linkoption} link=${linkoption} \
+                       --prefix="${D}/usr" \
+                       --layout=system \
+                       || die "building boost failed"
+       done
+
+       if use pyste; then
+               cd "${S}/libs/python/pyste/install"
+               distutils_src_compile
+       fi
+
+       if use tools; then
+               cd "${S}/tools/"
+               # We have to set optimization to -O0 or -O1 to work aroudn a gcc-bug
+               # optimization=off adds -O0 to the compiler call and overwrites our settings.
+               bjam ${NUMJOBS} \
+                       release \
+                       debug-symbols=none \
+                       optimization=off \
+                       --prefix="${D}/usr" \
+                       --layout=system || die "building tools failed"
+       fi
+}
+
+src_install () {
+
+       generate_options
+
+       BOOST_ROOT=${S}
+       BOOST_BUILD_PATH=${ROOT}/usr/share/boost-build
+
+       for linkoption in ${LINK_OPTIONS} ; do
+               bjam \
+                       ${OPTIONS} \
+                       runtime-link=${linkoption} link=${linkoption} \
+                       --prefix="${D}/usr" \
+                       --includedir="${D}/usr/include" \
+                       --libdir="${D}/usr/$(get_libdir)" \
+                       --layout=system \
+                       install || die "install failed"
+       done
+
+       dodoc README
+
+       if use doc ; then
+               dohtml -A .pdf,.txt \
+                       *.htm *.gif *.css \
+                       -r doc libs more people wiki
+       fi
+
+       cd "${D}/usr/$(get_libdir)"
+
+       for lib in $(ls -1 libboost_thread-mt.*) ; do
+               dosym ${lib} "/usr/$(get_libdir)/$(sed -e 's/-mt//' <<< ${lib})"
+       done
+
+       if use pyste; then
+               cd "${S}/libs/python/pyste/install"
+               distutils_src_install
+       fi
+
+       if use tools; then
+               cd "${S}/dist"
+               dobin bin/*
+               insinto /usr
+               doins -r share
+       fi
+
+}
diff --git a/dev-libs/boost/files/digest-boost-1.34_pre20061214 b/dev-libs/boost/files/digest-boost-1.34_pre20061214
new file mode 100644 (file)
index 0000000..ed25c5f
--- /dev/null
@@ -0,0 +1,3 @@
+MD5 c2ecc5f9f12198eb7fe116a14edd65a5 boost_1_34_pre20061214.tar.bz2 12357020
+RMD160 51a96ef3dc28b4bd1d5fc3c295a4a3f874fe59fa boost_1_34_pre20061214.tar.bz2 12357020
+SHA256 4c88805afe6b47366d960d878eec8a6e0e7f40a7f9122a7d877020e9102d0e49 boost_1_34_pre20061214.tar.bz2 12357020
diff --git a/dev-libs/boost/files/random-Jamfile b/dev-libs/boost/files/random-Jamfile
new file mode 100644 (file)
index 0000000..5cb6f6b
--- /dev/null
@@ -0,0 +1,15 @@
+# Copyright (c) 2006 Tiziano Mueller
+#
+# Use, modification and distribution of the file is subject to the
+# Boost Software License, Version 1.0.
+# (See at http://www.boost.org/LICENSE_1_0.txt)
+
+
+project boost/random
+       : source-location ../ ;
+
+SOURCES = random_device ;
+
+lib boost_random
+       : $(SOURCES).cpp 
+       : <link>shared:<define>BOOST_RANDOM_DYN_LINK=1 ;