diff options
author | Dirkjan Ochtman <djc@gentoo.org> | 2009-12-17 14:12:38 +0000 |
---|---|---|
committer | Dirkjan Ochtman <djc@gentoo.org> | 2009-12-17 14:12:38 +0000 |
commit | 146389c811e36bef2c392e0292adcd6849837ab8 (patch) | |
tree | 9bb9d9bcedf3c2561f1475f76824a2e4bb09185a /dev-libs/boost | |
parent | version bump, added russian docs with LINGUAS=ru (diff) | |
download | historical-146389c811e36bef2c392e0292adcd6849837ab8.tar.gz historical-146389c811e36bef2c392e0292adcd6849837ab8.tar.bz2 historical-146389c811e36bef2c392e0292adcd6849837ab8.zip |
Prune some useless old ebuilds.
Package-Manager: portage-2.1.6.13/cvs/Linux x86_64
Diffstat (limited to 'dev-libs/boost')
-rw-r--r-- | dev-libs/boost/Manifest | 10 | ||||
-rw-r--r-- | dev-libs/boost/boost-1.34.1-r2.ebuild | 276 | ||||
-rw-r--r-- | dev-libs/boost/boost-1.35.0-r1.ebuild | 269 | ||||
-rw-r--r-- | dev-libs/boost/boost-1.35.0-r3.ebuild | 288 | ||||
-rw-r--r-- | dev-libs/boost/boost-1.41.0-r1.ebuild | 459 | ||||
-rw-r--r-- | dev-libs/boost/metadata.xml | 1 |
6 files changed, 1 insertions, 1302 deletions
diff --git a/dev-libs/boost/Manifest b/dev-libs/boost/Manifest index a3005629eef3..ed63b730293f 100644 --- a/dev-libs/boost/Manifest +++ b/dev-libs/boost/Manifest @@ -8,29 +8,21 @@ AUX buildid-fix.patch 1045 RMD160 ce9dbea25e21ed1ac177b16982ef1850957474f2 SHA1 AUX random-Jamfile 355 RMD160 478b592e9d33d371b07e5364e63512c8208263bf SHA1 8ca047df78758f62a6c131bd27441173e9079fa6 SHA256 7dc71ab8b862ccd5ea9c21c42557adfe0c711ea7fbe7faa47328a37aa84bc096 AUX remove-toolset-1.41.0.patch 465 RMD160 5d93141f9cf98fc558e15c273d4ede298a96d535 SHA1 0533de67dd64cf96c992a05161fc8dc6cff3453e SHA256 e1b3c77d5116722df5c5a48973f95307fd46fea675d53d268d60548b7ac4bd2b AUX remove_toolset_from_targetname.patch 490 RMD160 e050992fd79005af73410a2ea4037a82177ddf33 SHA1 80d96cca8cb0acb752c428ffcada3ef2964642b1 SHA256 5c5c6fea3c1e20e290d15a68f91b6c084cc5b34daae338e3aa0879a3fd5b9fb5 -DIST boost-patches-1.34.1-3.tbz2 5681 RMD160 b7a3cece3602d6cab91118ef03bf0fd7a89db58e SHA1 ac22f748c1c31b874552a72cb62b4ee143432357 SHA256 d77f9c7d76694e3f443b8381f1506e2d586f2e3ff07b8835f512878cc8249a82 -DIST boost-patches-1.35.0-2.tbz2 4327 RMD160 ef72f3b59b4b0d6bbe4e99813f5d1d63dffc7a58 SHA1 a534b8d0e9c104e35093b2f5580a15fa764feb79 SHA256 8eae1416f1ee1885ff42a01ab6dcabb7bd454405d0ca1ab2d51172d1e20d516f DIST boost-patches-1.35.0-3.tbz2 4521 RMD160 8a1cac05a7db956482ffb9bc16accaae04891970 SHA1 bcb41aa6bba2ad46df82d9a87751a2ae046bf988 SHA256 e6360a99de6daa43daa3a605d1e2eeee2bf3a8bb4bf0128fc17b4e9d3f9348b8 -DIST boost-patches-1.35.0-4.tbz2 4885 RMD160 e24b4fc68c7c32970a3876c4bf68c662983a8ddd SHA1 2b276a9affda23abc46e8873d1b99991849be18f SHA256 779ea472fa800afac976c226656b3a95ef2b22832bbd8823634e4d6e7969a3da DIST boost-patches-1.35.0-5.tbz2 5537 RMD160 94ce8edab7127308b93705d6fb0317277dbd88db SHA1 2d195374d6cb6af3b187544afc58a00ee1e2309d SHA256 9d8d6c61d6915cb7629f5f1537054949b616301ecd1f1cfe1d0e2a5a7a676e11 DIST boost-patches-1.36.0-1.tbz2 1392 RMD160 d179db21115da98def22fe41a6cad84e3eb776bc SHA1 3aa5733bff99f1922e792ea0dec06973a4bdaa7a SHA256 55ec3be6b19535a130ab6e9dc783f5fe7a063cdaca7e4184c6d54acaba2d7697 DIST boost-patches-1.37.0-1.tbz2 1207 RMD160 009566c470f15608061cd48b2303ea20c4f907ae SHA1 4344d12f6e0ebcebbc82671d10190e15d36d48b4 SHA256 a10e3de954a812a181835f62b410c53b9ff21b8e7a063850fc70c0cf58804b37 DIST boost-patches-1.39.0-1.tbz2 1113 RMD160 29753fc7ca54fa57c65410073621e251750b89bc SHA1 6389ba81a977bfd42ab1fc7d911290a3976afd8a SHA256 f98f4ed539425b46de47a14b8b9ca06a69bb3248f966342999a73a619db8fec3 -DIST boost_1_34_1.tar.bz2 12986931 RMD160 303327ff852bc19dd7a94657fdef3c56f5882e06 SHA1 b771271d5cbd3bdb0f119dd66dfd36bad7a66866 SHA256 0f866c75b025a4f1340117a106595cc0675f48ba1e5a9b5c221ec7f19e96ec4c DIST boost_1_35_0.tar.bz2 23416747 RMD160 89dc46b7841cd288b5fb6f4b9a1ac7309786dc14 SHA1 80d1fe7b0c45541e2af7628295b18f2af996de16 SHA256 f8bf7368a22ccf2e2cf77048ab2129744be4c03f8488c76ad31c0aa229b280da DIST boost_1_36_0.tar.bz2 28839275 RMD160 0ac38ee3c355c22fd5534bc806bf516890e5182d SHA1 b8f0f5d90b260aff995ef38fad4eee5e73d00810 SHA256 9a4a0cfbbd227c20a13519a2c41f2e707dc0d89e518a3c7bfcd381f7b7fbcdef DIST boost_1_37_0.tar.bz2 29435646 RMD160 3c4cf7eb97a8fb126e564ba529ed9edec8765185 SHA1 c0d0cf9ad8d954507824aed51a3e93e6a9da1d99 SHA256 d52ef49f70b1b9addc4e0d1a3a2a1966227f0d173c3301bac3e6d399eeac5472 DIST boost_1_39_0.tar.bz2 29408537 RMD160 4962256b48fa8563bf373b8bed97cc8655206a51 SHA1 6af42f74ab24ccc51589a025593bad298c8adde8 SHA256 44785eae8c6cce61a29a8a51f9b737e57b34d66baa7c0bcd4af188832b8018fd DIST boost_1_41_0.tar.bz2 33348161 RMD160 a604ef5a6f6f5bf50be59206c8534258ab431aea SHA1 31134e28866b90c39ca4a903c263e036bb25550c SHA256 1ef94e6749eaf13318284b4f629be063544c7015b45e38113b975ac1945cc726 -EBUILD boost-1.34.1-r2.ebuild 6892 RMD160 3158dea84b5c69198153b90bc508551c5aca29a6 SHA1 8e6e56551e5beb538c923262e1771da85a52f175 SHA256 a48bda0aab6f8d85dffa4399084ff609f7a8d9ecbe288a5932ec9b22a412bd1e -EBUILD boost-1.35.0-r1.ebuild 6977 RMD160 57bc31b521cf7b97ca5ce578a1f5db317b689fea SHA1 8d100206e4f65eeb0fc70dea720a6aece8ef7f01 SHA256 0d6fb6d2fb61afbd74060f4b67ff2a58a9a5303716206cf27dca7be490638f53 EBUILD boost-1.35.0-r2.ebuild 7110 RMD160 561df964af02bc9aac75ad3f33f610c2aa8a9ad7 SHA1 70b4d1946342770d6a361cb61fdbaba678fc70c3 SHA256 be62c1e09e7aa5bb4e44115fa0a49797f4a8333dd40f0311e4019090c0b09626 -EBUILD boost-1.35.0-r3.ebuild 7806 RMD160 07923dca35fdeca700518f8d0bb272cb8e5a287a SHA1 0ddc59a813fc3530ccebccd9a935b586056829e1 SHA256 140b207a8db405132a14492bb8668d2fe01b7c4e3db1d8a9a44b186ef3fb5681 EBUILD boost-1.35.0-r5.ebuild 9720 RMD160 3d30139d774d76add1e411536156052a4c0c148e SHA1 d4ab4402e56b6500084d016689ac7f5f38f4b549 SHA256 d34acc2afb57e6b3782751a686396c9e65b29031a91ea1a8e2e760490f48d950 EBUILD boost-1.36.0-r1.ebuild 9662 RMD160 f415650ed89492c5a635f4b8183a6693a1f61578 SHA1 33c523b5aaf2a9822ae67a7616b8541f736cff3d SHA256 5b452ed5fa1b3f01f3420a0854c0e5356e3130f9f09b1a4cda19b5ccd479df92 EBUILD boost-1.37.0-r1.ebuild 13178 RMD160 14d44df115bb49d1551abd07ad9dc5303ade1f94 SHA1 5108f92ac808fb83fa4dd1d49c29ae299ab86cf0 SHA256 96a715f1af3950b5440bd5b415f01efea3b186c480eaf48d4d63cca4f633c809 EBUILD boost-1.39.0.ebuild 12985 RMD160 f6f349747e51213713321a3d31b1e1c53713f47e SHA1 a26afdda9369d7ea8a690ec67e854e53eee3d045 SHA256 74d8f0e1992659639b52012bf01097d3f9b4da809f8bf7aed4eb2dea5a4bb22a -EBUILD boost-1.41.0-r1.ebuild 15094 RMD160 43a3f004ec8b0adeb3c44de7f92a771ea175881f SHA1 3d6f2e02653a42355704fa8f359164b94a83a013 SHA256 1afd0f2aa04016bdd87de99af1dfbb86a371dfe25e046922e60c9d932bf68e2d EBUILD boost-1.41.0-r2.ebuild 15233 RMD160 75f118ccbb1c9eb6edd6ba0dd445887e8b5cd2e9 SHA1 26f267523a0360c3bf3ec3b7b4ea1fa3a4700d1c SHA256 a5ded34c079650c83342462cd30c1ddc653cda89db5e0ba48728510e936401cb MISC ChangeLog 28468 RMD160 172a889f698bf89cba671bd1305a64458b53eed2 SHA1 648db77fb11f2e818fca7b80044fe4451e5565d0 SHA256 5d04417b8f1c33c6ab25407839912ec3b79bed7dd26e4bcf7465143c7ee6fbff -MISC metadata.xml 832 RMD160 e2fce8e6a640739f9414a21acc92c9b6b09714f8 SHA1 68af68ca9db98f7554c3be6f033f247591d33243 SHA256 158e6e45457451d90b9a0d774a41713169d471f7b0ab38c9e1793517cf3a7a54 +MISC metadata.xml 769 RMD160 e6bbf02a9f1fcd72dd5fd362e7bec537f1cee024 SHA1 2ba5a2d97f635bc855bb4004c563d3b1ef3fae8f SHA256 e429f749e5872188ba979cd3fde10a5ba798c210413a57c9d8685ee06613b964 diff --git a/dev-libs/boost/boost-1.34.1-r2.ebuild b/dev-libs/boost/boost-1.34.1-r2.ebuild deleted file mode 100644 index 6c90225ce70c..000000000000 --- a/dev-libs/boost/boost-1.34.1-r2.ebuild +++ /dev/null @@ -1,276 +0,0 @@ -# Copyright 1999-2009 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/boost/boost-1.34.1-r2.ebuild,v 1.12 2009/10/21 16:57:23 djc Exp $ - -inherit distutils flag-o-matic multilib toolchain-funcs versionator check-reqs - -KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86" - -MY_P=${PN}_$(replace_all_version_separators _) -PATCHSET_VERSION="${PV}-3" - -DESCRIPTION="Boost Libraries for C++" -HOMEPAGE="http://www.boost.org/" -SRC_URI="mirror://sourceforge/boost/${MY_P}.tar.bz2 - mirror://gentoo/boost-patches-${PATCHSET_VERSION}.tbz2" -LICENSE="Boost-1.0" -SLOT="0" -IUSE="debug doc icu pyste test 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} - -# Maintainer Information -# ToDo: -# - write a patch to support /dev/urandom on FreeBSD and OSX (see below) - -pkg_setup() { - if use test ; then - CHECKREQS_DISK_BUILD="1024" - check_reqs - - ewarn "The tests may take several hours on a recent machine" - ewarn "but they will not fail (unless something weird happens ;-)" - ewarn "This is because the tests depend on the used compiler/-version" - ewarn "and the platform and upstream says that this is normal." - ewarn "If you are interested in the results, please take a look at the" - ewarn "generated results page:" - ewarn " ${ROOT}usr/share/doc/${PF}/status/cs-$(uname).html" - ebeep 5 - - fi -} - -src_unpack() { - unpack ${A} - - cd "${S}" - - EPATCH_SOURCE="${WORKDIR}/patches" - EPATCH_SUFFIX="patch" - epatch - - rm boost-build.jam - - # This enables building the boost.random library with /dev/urandom support - if ! use userland_Darwin ; then - mkdir -p libs/random/build - cp "${FILESDIR}/random-Jamfile" libs/random/build/Jamfile.v2 - fi -} - -generate_options() { - LINK_OPTIONS="static shared" - - # Maintainer information: - # The debug-symbols=none and optimization=none - # are not official upstream flags but a Gentoo - # specific patch to make sure that all our - # CXXFLAGS/LDFLAGS are being respected. - # Using optimization=off would for example add - # "-O0" and override "-O2" set by the user. - # Please take a look at the boost-build ebuild - # for more infomration. - if ! use debug ; then - OPTIONS="release debug-symbols=none" - else - OPTIONS="debug" - fi - - OPTIONS="${OPTIONS} optimization=none" - - use icu && OPTIONS="${OPTIONS} -sHAVE_ICU=1 -sICU_PATH=/usr" - - OPTIONS="${OPTIONS} --user-config=${S}/user-config.jam" -} - -generate_userconfig() { - einfo "Writing new user-config.jam" - distutils_python_version - - local compiler compilerVersion compilerExecutable - if [[ ${CHOST} == *-darwin* ]] ; then - compiler=darwin - compilerVersion=$(gcc-version) - compilerExecutable=$(tc-getCXX) - append-ldflags -ldl - else - compiler=gcc - compilerVersion=$(gcc-version) - compilerExecutable=$(tc-getCXX) - fi - - cat > "${S}/user-config.jam" << __EOF__ -import toolset : using ; -import toolset : flags ; -using ${compiler} : ${compilerVersion} : ${compilerExecutable} : <cxxflags>"${CXXFLAGS}" <linkflags>"${LDFLAGS}" ; -using python : ${PYVER} : /usr : /usr/include/python${PYVER} : /usr/lib/python${PYVER} ; -__EOF__ - -} - -src_compile() { - - NUMJOBS=$(sed -e 's/.*\(\-j[ 0-9]\+\) .*/\1/' <<< ${MAKEOPTS}) - - generate_userconfig - generate_options - - elog "Using the following options to build: " - elog " ${OPTIONS}" - - export BOOST_ROOT=${S} - export BOOST_BUILD_PATH=/usr/share/boost-build - - for linkoption in ${LINK_OPTIONS} ; do - einfo "Building ${linkoption} libraries" - bjam ${NUMJOBS} -q \ - ${OPTIONS} \ - threading=single,multi \ - 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 around a gcc-bug - # optimization=off adds -O0 to the compiler call and overwrites our settings. - bjam ${NUMJOBS} -q \ - release debug-symbols=none \ - optimization=off \ - --prefix="${D}/usr" \ - --layout=system \ - --user-config="${S}/user-config.jam" \ - || die "building tools failed" - fi - - if use test ; then - cd "${S}/tools/regression/build" - bjam -q \ - ${OPTIONS} \ - --prefix="${D}/usr" \ - --layout=system \ - || die "building regression test helpers failed" - fi - -} - -src_install () { - - generate_options - - export BOOST_ROOT=${S} - export BOOST_BUILD_PATH=/usr/share/boost-build - - for linkoption in ${LINK_OPTIONS} ; do - bjam -q \ - ${OPTIONS} \ - threading=single,multi \ - 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 *.png *.css \ - -r doc libs more people wiki - - # To avoid broken links - insinto /usr/share/doc/${PF}/html - doins LICENSE_1_0.txt - - dosym /usr/include/boost /usr/share/doc/${PF}/html/boost - fi - - cd "${D}/usr/$(get_libdir)" - - # If built with debug enabled, all libraries get a 'd' postfix, - # this breaks linking other apps against boost (bug #181972) - if use debug ; then - for lib in $(ls -1 libboost_*) ; do - dosym ${lib} "/usr/$(get_libdir)/$(sed -e 's/-d\././' -e 's/d\././' <<< ${lib})" - done - fi - - 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 - - if use test ; then - cd "${S}/status" - docinto status - dohtml *.{html,gif} ../boost.png - dodoc regress.log - fi -} - -src_test() { - generate_options - - export BOOST_ROOT=${S} - export BOOST_BUILD_PATH=/usr/share/boost-build - - cd "${S}/status" - - # Some of the test-checks seem to rely on regexps - export LC_ALL="C" - - # The following is largely taken from tools/regression/run_tests.sh, - # but adapted to our needs. - - # Run the tests & write them into a file for postprocessing - bjam \ - ${OPTIONS} \ - --dump-tests 2>&1 | tee regress.log - - # Postprocessing - cat regress.log | "${S}/dist/bin/process_jam_log" --v2 - if test $? != 0 ; then - die "Postprocessing the build log failed" - fi - - cat > "${S}/status/comment.html" <<- __EOF__ - <p>Tests are run on a <a href="http://www.gentoo.org">Gentoo</a> system.</p> -__EOF__ - - # Generate the build log html summary page - "${S}/dist/bin/compiler_status" --v2 \ - --comment "${S}/status/comment.html" "${S}" \ - cs-$(uname).html cs-$(uname)-links.html - if test $? != 0 ; then - die "Generating the build log html summary page failed" - fi - - # And do some cosmetic fixes :) - sed -i -e 's|../boost.png|boost.png|' *.html -} diff --git a/dev-libs/boost/boost-1.35.0-r1.ebuild b/dev-libs/boost/boost-1.35.0-r1.ebuild deleted file mode 100644 index 99d3c257e56a..000000000000 --- a/dev-libs/boost/boost-1.35.0-r1.ebuild +++ /dev/null @@ -1,269 +0,0 @@ -# Copyright 1999-2009 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/boost/boost-1.35.0-r1.ebuild,v 1.7 2009/10/21 16:57:23 djc Exp $ - -inherit python flag-o-matic multilib toolchain-funcs versionator check-reqs - -KEYWORDS="alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" - -MY_P=${PN}_$(replace_all_version_separators _) -PATCHSET_VERSION="${PV}-2" - -DESCRIPTION="Boost Libraries for C++" -HOMEPAGE="http://www.boost.org/" -SRC_URI="mirror://sourceforge/boost/${MY_P}.tar.bz2 - mirror://gentoo/boost-patches-${PATCHSET_VERSION}.tbz2" -LICENSE="Boost-1.0" -SLOT="0" -IUSE="debug doc expat icu mpi test tools" - -RDEPEND="icu? ( >=dev-libs/icu-3.3 ) - expat? ( dev-libs/expat ) - mpi? ( || ( sys-cluster/openmpi sys-cluster/mpich2 ) ) - sys-libs/zlib - virtual/python" -DEPEND="${RDEPEND} - >=dev-util/boost-build-${PV}-r1" - -S=${WORKDIR}/${MY_P} - -# Maintainer Information -# ToDo: -# - write a patch to support /dev/urandom on FreeBSD and OSX (see below) - -pkg_setup() { - if use test ; then - CHECKREQS_DISK_BUILD="1024" - check_reqs - - ewarn "The tests may take several hours on a recent machine" - ewarn "but they will not fail (unless something weird happens ;-)" - ewarn "This is because the tests depend on the used compiler/-version" - ewarn "and the platform and upstream says that this is normal." - ewarn "If you are interested in the results, please take a look at the" - ewarn "generated results page:" - ewarn " ${ROOT}usr/share/doc/${PF}/status/cs-$(uname).html" - ebeep 5 - - fi -} - -src_unpack() { - unpack ${A} - - cd "${S}" - - EPATCH_SOURCE="${WORKDIR}/patches" - EPATCH_SUFFIX="patch" - epatch - - # This enables building the boost.random library with /dev/urandom support - if ! use userland_Darwin ; then - mkdir -p libs/random/build - cp "${FILESDIR}/random-Jamfile" libs/random/build/Jamfile.v2 - fi -} - -generate_options() { - # Maintainer information: - # The debug-symbols=none and optimization=none - # are not official upstream flags but a Gentoo - # specific patch to make sure that all our - # CXXFLAGS/LDFLAGS are being respected. - # Using optimization=off would for example add - # "-O0" and override "-O2" set by the user. - # Please take a look at the boost-build ebuild - # for more infomration. - - OPTIONS="gentoorelease" - use debug && OPTIONS="gentoodebug" - - use icu && OPTIONS="${OPTIONS} -sICU_PATH=/usr" - if use expat ; then - OPTIONS="${OPTIONS} -sEXPAT_INCLUDE=/usr/include -sEXPAT_LIBPATH=/usr/$(get_libdir)" - fi - - if ! use mpi ; then - OPTIONS="${OPTIONS} --without-mpi" - fi - - OPTIONS="${OPTIONS} --user-config=${S}/user-config.jam --boost-build=/usr/share/boost-build" -} - -generate_userconfig() { - einfo "Writing new user-config.jam" - python_version - - local compiler compilerVersion compilerExecutable - if [[ ${CHOST} == *-darwin* ]] ; then - compiler=darwin - compilerVersion=$(gcc-version) - compilerExecutable=$(tc-getCXX) - append-ldflags -ldl - else - compiler=gcc - compilerVersion=$(gcc-version) - compilerExecutable=$(tc-getCXX) - fi - - cat > "${S}/user-config.jam" << __EOF__ - -variant gentoorelease : release : <optimization>none <debug-symbols>none ; -variant gentoodebug : debug : <optimization>none <debug-symbols>none ; - -using ${compiler} : ${compilerVersion} : ${compilerExecutable} : <cxxflags>"${CXXFLAGS}" <linkflags>"${LDFLAGS}" ; -using python : ${PYVER} : /usr : /usr/include/python${PYVER} : /usr/lib/python${PYVER} ; - -__EOF__ - - if use mpi ; then - echo "using mpi ;" >> "${S}/user-config.jam" - fi -} - -src_compile() { - - NUMJOBS=$(sed -e 's/.*\(\-j[ 0-9]\+\) .*/\1/' <<< ${MAKEOPTS}) - - generate_userconfig - generate_options - - elog "Using the following options to build: " - elog " ${OPTIONS}" - - export BOOST_ROOT=${S} - - bjam ${NUMJOBS} -q \ - ${OPTIONS} \ - threading=single,multi link=shared,static runtime-link=shared,static \ - --prefix="${D}/usr" \ - --layout=system \ - || die "building boost failed" - - if use tools; then - cd "${S}/tools/" - # We have to set optimization to -O0 or -O1 to work around a gcc-bug - # optimization=off adds -O0 to the compiler call and overwrites our settings. - bjam ${NUMJOBS} -q \ - ${OPTIONS} \ - --prefix="${D}/usr" \ - --layout=system \ - || die "building tools failed" - fi - - if use test ; then - cd "${S}/tools/regression/build" - bjam -q \ - ${OPTIONS} \ - --prefix="${D}/usr" \ - --layout=system \ - || die "building regression test helpers failed" - fi - -} - -src_install () { - - generate_options - - export BOOST_ROOT=${S} - - bjam -q \ - ${OPTIONS} \ - threading=single,multi link=shared,static runtime-link=shared,static \ - --prefix="${D}/usr" \ - --includedir="${D}/usr/include" \ - --libdir="${D}/usr/$(get_libdir)" \ - --layout=system \ - install || die "install failed for options '${OPTIONS}'" - - # Move the mpi.so to the right place - if use mpi; then - mkdir -p "${D}/usr/$(get_libdir)/python${PYVER}/site-packages" - mv "${D}/usr/$(get_libdir)/mpi.so" "${D}/usr/$(get_libdir)/python${PYVER}/site-packages" - fi - - if use doc ; then - find libs -iname "test" -or -iname "src" | xargs rm -rf - dohtml \ - -A pdf,txt,cpp \ - *.{htm,html,png,css} \ - -r doc more people wiki - insinto /usr/share/doc/${PF}/html - doins -r libs - - # To avoid broken links - insinto /usr/share/doc/${PF}/html - doins LICENSE_1_0.txt - - dosym /usr/include/boost /usr/share/doc/${PF}/html/boost - fi - - cd "${D}/usr/$(get_libdir)" - - # If built with debug enabled, all libraries get a 'd' postfix, - # this breaks linking other apps against boost (bug #181972) - if use debug ; then - for lib in $(ls -1 libboost_*) ; do - dosym ${lib} "/usr/$(get_libdir)/$(sed -e 's/-d\././' -e 's/d\././' <<< ${lib})" - done - fi - - for lib in $(ls -1 libboost_thread-mt.*) ; do - dosym ${lib} "/usr/$(get_libdir)/$(sed -e 's/-mt//' <<< ${lib})" - done - - if use tools; then - cd "${S}/dist" - dobin bin/* - insinto /usr - doins -r share - fi - - if use test ; then - cd "${S}/status" - docinto status - dohtml *.{html,gif} ../boost.png - dodoc regress.log - fi -} - -src_test() { - generate_options - - export BOOST_ROOT=${S} - - cd "${S}/status" - - # Some of the test-checks seem to rely on regexps - export LC_ALL="C" - - # The following is largely taken from tools/regression/run_tests.sh, - # but adapted to our needs. - - # Run the tests & write them into a file for postprocessing - bjam \ - ${OPTIONS} \ - --dump-tests 2>&1 | tee regress.log - - # Postprocessing - cat regress.log | "${S}/dist/bin/process_jam_log" --v2 - if test $? != 0 ; then - die "Postprocessing the build log failed" - fi - - cat > "${S}/status/comment.html" <<- __EOF__ - <p>Tests are run on a <a href="http://www.gentoo.org">Gentoo</a> system.</p> -__EOF__ - - # Generate the build log html summary page - "${S}/dist/bin/compiler_status" --v2 \ - --comment "${S}/status/comment.html" "${S}" \ - cs-$(uname).html cs-$(uname)-links.html - if test $? != 0 ; then - die "Generating the build log html summary page failed" - fi - - # And do some cosmetic fixes :) - sed -i -e 's|../boost.png|boost.png|' *.html -} diff --git a/dev-libs/boost/boost-1.35.0-r3.ebuild b/dev-libs/boost/boost-1.35.0-r3.ebuild deleted file mode 100644 index c13a545fbb90..000000000000 --- a/dev-libs/boost/boost-1.35.0-r3.ebuild +++ /dev/null @@ -1,288 +0,0 @@ -# Copyright 1999-2009 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/boost/boost-1.35.0-r3.ebuild,v 1.5 2009/10/21 16:57:23 djc Exp $ - -EAPI="2" - -inherit python flag-o-matic multilib toolchain-funcs versionator check-reqs - -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" - -MY_P=${PN}_$(replace_all_version_separators _) -PATCHSET_VERSION="${PV}-4" - -DESCRIPTION="Boost Libraries for C++" -HOMEPAGE="http://www.boost.org/" -SRC_URI="mirror://sourceforge/boost/${MY_P}.tar.bz2 - mirror://gentoo/boost-patches-${PATCHSET_VERSION}.tbz2 - http://www.gentoo.org/~dev-zero/distfiles/boost-patches-${PATCHSET_VERSION}.tbz2" -LICENSE="Boost-1.0" -SLOT="0" -IUSE="debug doc expat icu mpi test tools" - -RDEPEND="icu? ( >=dev-libs/icu-3.3 ) - expat? ( dev-libs/expat ) - mpi? ( || ( sys-cluster/openmpi sys-cluster/mpich2 ) ) - sys-libs/zlib - virtual/python" -DEPEND="${RDEPEND} - =dev-util/boost-build-1.35.0-r2" -PDEPEND="app-admin/eselect-boost" - -S=${WORKDIR}/${MY_P} - -# Maintainer Information -# ToDo: -# - write a patch to support /dev/urandom on FreeBSD and OSX (see below) - -# manually setting it for this major version -MAJOR_PV=1_35 -BJAM="bjam-${MAJOR_PV}" - -pkg_setup() { - if use test ; then - CHECKREQS_DISK_BUILD="1024" - check_reqs - - ewarn "The tests may take several hours on a recent machine" - ewarn "but they will not fail (unless something weird happens ;-)" - ewarn "This is because the tests depend on the used compiler/-version" - ewarn "and the platform and upstream says that this is normal." - ewarn "If you are interested in the results, please take a look at the" - ewarn "generated results page:" - ewarn " ${ROOT}usr/share/doc/${PF}/status/cs-$(uname).html" - ebeep 5 - - fi -} - -src_prepare() { - EPATCH_SOURCE="${WORKDIR}/patches" - EPATCH_SUFFIX="patch" - epatch - - epatch "${FILESDIR}/remove_toolset_from_targetname.patch" - - # This enables building the boost.random library with /dev/urandom support - if ! use userland_Darwin ; then - mkdir -p libs/random/build - cp "${FILESDIR}/random-Jamfile" libs/random/build/Jamfile.v2 - fi -} - -generate_options() { - # Maintainer information: - # The debug-symbols=none and optimization=none - # are not official upstream flags but a Gentoo - # specific patch to make sure that all our - # CXXFLAGS/LDFLAGS are being respected. - # Using optimization=off would for example add - # "-O0" and override "-O2" set by the user. - # Please take a look at the boost-build ebuild - # for more infomration. - - BUILDNAME="gentoorelease" - use debug && BUILDNAME="gentoodebug" - - OPTIONS="${BUILDNAME}" - - use icu && OPTIONS="${OPTIONS} -sICU_PATH=/usr" - if use expat ; then - OPTIONS="${OPTIONS} -sEXPAT_INCLUDE=/usr/include -sEXPAT_LIBPATH=/usr/$(get_libdir)" - fi - - if ! use mpi ; then - OPTIONS="${OPTIONS} --without-mpi" - fi - - OPTIONS="${OPTIONS} --user-config=${S}/user-config.jam --boost-build=/usr/share/boost-build-${MAJOR_PV}" -} - -src_configure() { - einfo "Writing new user-config.jam" - python_version - - local compiler compilerVersion compilerExecutable mpi - if [[ ${CHOST} == *-darwin* ]] ; then - compiler=darwin - compilerVersion=$(gcc-version) - compilerExecutable=$(tc-getCXX) - append-ldflags -ldl - else - compiler=gcc - compilerVersion=$(gcc-version) - compilerExecutable=$(tc-getCXX) - fi - - use mpi && mpi="using mpi ;" - - cat > "${S}/user-config.jam" << __EOF__ - -variant gentoorelease : release : <optimization>none <debug-symbols>none ; -variant gentoodebug : debug : <optimization>none <debug-symbols>none ; - -using ${compiler} : ${compilerVersion} : ${compilerExecutable} : <cxxflags>"${CXXFLAGS}" <linkflags>"${LDFLAGS}" ; -using python : ${PYVER} : /usr : /usr/include/python${PYVER} : /usr/lib/python${PYVER} ; - -${mpi} - -__EOF__ - -} - -src_compile() { - - NUMJOBS=$(sed -e 's/.*\(\-j[ 0-9]\+\) .*/\1/; s/--jobs=\?/-j/' <<< ${MAKEOPTS}) - - generate_options - - elog "Using the following options to build: " - elog " ${OPTIONS}" - - export BOOST_ROOT="${S}" - - ${BJAM} ${NUMJOBS} -q \ - ${OPTIONS} \ - threading=single,multi link=shared,static runtime-link=shared,static \ - --prefix="${D}/usr" \ - --layout=versioned \ - || die "building boost failed" - - if use tools; then - cd "${S}/tools/" - ${BJAM} ${NUMJOBS} -q \ - ${OPTIONS} \ - --prefix="${D}/usr" \ - --layout=versioned \ - || die "building tools failed" - fi - -} - -src_install () { - - generate_options - - export BOOST_ROOT="${S}" - - ${BJAM} -q \ - ${OPTIONS} \ - threading=single,multi link=shared,static runtime-link=shared,static \ - --prefix="${D}/usr" \ - --includedir="${D}/usr/include" \ - --libdir="${D}/usr/$(get_libdir)" \ - --layout=versioned \ - install || die "install failed for options '${OPTIONS}'" - - # Move the mpi.so to the right place and make sure it's slotted - if use mpi; then - mkdir -p "${D}/usr/$(get_libdir)/python${PYVER}/site-packages/mpi_${MAJOR_PV}" - mv "${D}/usr/$(get_libdir)/mpi.so" "${D}/usr/$(get_libdir)/python${PYVER}/site-packages/mpi_${MAJOR_PV}/" - touch "${D}/usr/$(get_libdir)/python${PYVER}/site-packages/mpi_${MAJOR_PV}/__init__.py" - fi - - if use doc ; then - find libs -iname "test" -or -iname "src" | xargs rm -rf - dohtml \ - -A pdf,txt,cpp \ - *.{htm,html,png,css} \ - -r doc more people wiki - insinto /usr/share/doc/${PF}/html - doins -r libs - - # To avoid broken links - insinto /usr/share/doc/${PF}/html - doins LICENSE_1_0.txt - - dosym /usr/include/boost /usr/share/doc/${PF}/html/boost - fi - - cd "${D}/usr/$(get_libdir)" - - # Remove (unversioned) symlinks - # And check for what we remove to catch bugs - rm libboost_*[!$(get_version_component_range 2)].{a,so} - - # If built with debug enabled, all libraries get a 'd' postfix, - # this breaks linking other apps against boost (bug #181972) - if use debug ; then - for lib in libboost_* ; do - dosym ${lib} "/usr/$(get_libdir)/$(sed -e 's/-d\././' -e 's/d\././' <<< ${lib})" - done - fi - - for lib in libboost_thread-mt-{s-${MAJOR_PV}.a,${MAJOR_PV}.a,${MAJOR_PV}.so} ; do - dosym ${lib} "/usr/$(get_libdir)/$(sed -e 's/-mt//' <<< ${lib})" - done - - if use tools; then - cd "${S}/dist/bin" - # Append version postfix to binaries for slotting - for b in * ; do - newbin "${b}" "${b}-${MAJOR_PV}" - done - - cd "${S}/dist" - insinto /usr/share - doins -r share/boostbook - # Append version postfix for slotting - mv "${D}/usr/share/boostbook" "${D}/usr/share/boostbook-${MAJOR_PV}" - fi - - cd "${S}/status" - if [ -f regress.log ] ; then - docinto status - dohtml *.{html,gif} ../boost.png - dodoc regress.log - fi - - python_need_rebuild -} - -src_test() { - generate_options - - export BOOST_ROOT=${S} - - cd "${S}/tools/regression/build" - ${BJAM} -q \ - ${OPTIONS} \ - --prefix="${D}/usr" \ - --layout=versioned \ - process_jam_log compiler_status \ - || die "building regression test helpers failed" - - cd "${S}/status" - - # Some of the test-checks seem to rely on regexps - export LC_ALL="C" - - # The following is largely taken from tools/regression/run_tests.sh, - # but adapted to our needs. - - # Run the tests & write them into a file for postprocessing - ${BJAM} \ - ${OPTIONS} \ - --dump-tests 2>&1 | tee regress.log - - # Postprocessing - cat regress.log | "${S}/tools/regression/build/bin/gcc-$(gcc-version)/${BUILDNAME}/process_jam_log" --v2 - if test $? != 0 ; then - die "Postprocessing the build log failed" - fi - - cat > "${S}/status/comment.html" <<- __EOF__ - <p>Tests are run on a <a href="http://www.gentoo.org">Gentoo</a> system.</p> -__EOF__ - - # Generate the build log html summary page - "${S}/tools/regression/build/bin/gcc-$(gcc-version)/${BUILDNAME}/compiler_status" --v2 \ - --comment "${S}/status/comment.html" "${S}" \ - cs-$(uname).html cs-$(uname)-links.html - if test $? != 0 ; then - die "Generating the build log html summary page failed" - fi - - # And do some cosmetic fixes :) - sed -i -e 's|../boost.png|boost.png|' *.html -} diff --git a/dev-libs/boost/boost-1.41.0-r1.ebuild b/dev-libs/boost/boost-1.41.0-r1.ebuild deleted file mode 100644 index 3c6e3a617748..000000000000 --- a/dev-libs/boost/boost-1.41.0-r1.ebuild +++ /dev/null @@ -1,459 +0,0 @@ -# Copyright 1999-2009 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/boost/boost-1.41.0-r1.ebuild,v 1.3 2009/12/10 21:36:22 aballier Exp $ - -EAPI="2" - -inherit python flag-o-matic multilib toolchain-funcs versionator check-reqs - -MY_P=${PN}_$(replace_all_version_separators _) - -DESCRIPTION="Boost Libraries for C++" -HOMEPAGE="http://www.boost.org/" -SRC_URI="mirror://sourceforge/boost/${MY_P}.tar.bz2" -LICENSE="Boost-1.0" -SLOT="$(get_version_component_range 1-2)" -IUSE="debug doc +eselect expat icu mpi python test tools" - -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd" - -RDEPEND="icu? ( >=dev-libs/icu-3.3 ) - expat? ( dev-libs/expat ) - mpi? ( || ( >=sys-cluster/openmpi-1.2.9[cxx] <sys-cluster/openmpi-1.2.9[-nocxx] sys-cluster/mpich2[cxx,threads] sys-cluster/lam-mpi ) ) - sys-libs/zlib - python? ( virtual/python ) - !!<=dev-libs/boost-1.35.0-r2 - >=app-admin/eselect-boost-0.3" -DEPEND="${RDEPEND} - dev-util/boost-build:${SLOT}" - -S=${WORKDIR}/${MY_P} - -MAJOR_PV=$(replace_all_version_separators _ ${SLOT}) -BJAM="bjam-${MAJOR_PV}" - -# Usage: -# _add_line <line-to-add> <profile> -# ... to add to specific profile -# or -# _add_line <line-to-add> -# ... to add to all profiles for which the use flag set - -_add_line() { - if [ -z "$2" ] ; then - echo "${1}" >> "${D}/usr/share/boost-eselect/profiles/${SLOT}/default" - use debug && echo "${1}" >> "${D}/usr/share/boost-eselect/profiles/${SLOT}/debug" - else - echo "${1}" >> "${D}/usr/share/boost-eselect/profiles/${SLOT}/${2}" - fi -} - -pkg_setup() { - # It doesn't compile with USE="python mpi" and python-3 (bug 295705) - if use python && use mpi ; then - python_version - if [[ "${PYVER_MAJOR}" != "2" ]]; then - eerror "The Boost.MPI python bindings do not support any other python version" - eerror "than 2.x. Please either use eselect to select a python 2.x version or" - eerror "disable the python and/or mpi use flag for =${CATEGORY}/${PF}." - die "unsupported python version" - fi - fi - - if use test ; then - CHECKREQS_DISK_BUILD="1024" - check_reqs - - ewarn "The tests may take several hours on a recent machine" - ewarn "but they will not fail (unless something weird happens ;-)" - ewarn "This is because the tests depend on the used compiler/-version" - ewarn "and the platform and upstream says that this is normal." - ewarn "If you are interested in the results, please take a look at the" - ewarn "generated results page:" - ewarn " ${ROOT}usr/share/doc/${PF}/status/cs-$(uname).html" - ebeep 5 - - fi - - if use debug ; then - ewarn "The debug USE-flag means that a second set of the boost libraries" - ewarn "will be built containing debug-symbols. You'll be able to select them" - ewarn "using the boost-eselect module. But even though the optimization flags" - ewarn "you might have set are not stripped, there will be a performance" - ewarn "penalty and linking other packages against the debug version" - ewarn "of boost is _not_ recommended." - fi -} - -src_prepare() { - epatch "${FILESDIR}/remove-toolset-${PV}.patch" - - # bug 291660 - epatch "${FILESDIR}/boost-${PV}-parameter-needs-python.patch" - - # http://thread.gmane.org/gmane.comp.lib.boost.devel/196471 - epatch "${FILESDIR}/boost-${PV}-mpi_process_group-missing-include.patch" - - # https://svn.boost.org/trac/boost/ticket/3010 - epatch "${FILESDIR}/boost-${PV}-iostreams-missing-include-guard.patch" - - # This enables building the boost.random library with /dev/urandom support - if [[ -e /dev/urandom ]] ; then - mkdir -p libs/random/build - cp "${FILESDIR}/random-Jamfile" libs/random/build/Jamfile.v2 - # yeah, we WANT it to work on non-Linux too - sed -i -e 's/#ifdef __linux__/#if 1/' libs/random/random_device.cpp || die - fi -} - -src_configure() { - einfo "Writing new user-config.jam" - - local compiler compilerVersion compilerExecutable mpi - if [[ ${CHOST} == *-darwin* ]] ; then - compiler=darwin - compilerVersion=$(gcc-fullversion) - compilerExecutable=$(tc-getCXX) - # we need to add the prefix, and in two cases this exceeds, so prepare - # for the largest possible space allocation - append-ldflags -Wl,-headerpad_max_install_names - else - compiler=gcc - compilerVersion=$(gcc-version) - compilerExecutable=$(tc-getCXX) - fi - - # Using -fno-strict-aliasing to prevent possible creation of invalid code. - append-flags -fno-strict-aliasing - - use mpi && mpi="using mpi ;" - - if use python ; then - python_version - pystring="using python : ${PYVER} : /usr : /usr/include/python${PYVER} : /usr/lib/python${PYVER} ;" - fi - - cat > "${S}/user-config.jam" << __EOF__ - -variant gentoorelease : release : <optimization>none <debug-symbols>none ; -variant gentoodebug : debug : <optimization>none ; - -using ${compiler} : ${compilerVersion} : ${compilerExecutable} : <cxxflags>"${CXXFLAGS}" <linkflags>"${LDFLAGS}" ; - -${pystring} - -${mpi} - -__EOF__ - - # Maintainer information: - # The debug-symbols=none and optimization=none - # are not official upstream flags but a Gentoo - # specific patch to make sure that all our - # CXXFLAGS/LDFLAGS are being respected. - # Using optimization=off would for example add - # "-O0" and override "-O2" set by the user. - # Please take a look at the boost-build ebuild - # for more infomration. - - use icu && OPTIONS="-sICU_PATH=/usr" - use expat && OPTIONS="${OPTIONS} -sEXPAT_INCLUDE=/usr/include -sEXPAT_LIBPATH=/usr/$(get_libdir)" - use mpi || OPTIONS="${OPTIONS} --without-mpi" - use python || OPTIONS="${OPTIONS} --without-python" - - # https://svn.boost.org/trac/boost/attachment/ticket/2597/add-disable-long-double.patch - if use sparc || use mips || use hppa || use arm || use x86-fbsd; then - OPTIONS="${OPTIONS} --disable-long-double" - fi - - OPTIONS="${OPTIONS} --user-config=\"${S}/user-config.jam\" --boost-build=/usr/share/boost-build-${MAJOR_PV} --prefix=\"${D}/usr\" --layout=versioned" - -} - -src_compile() { - jobs=$( echo " ${MAKEOPTS} " | \ - sed -e 's/ --jobs[= ]/ -j /g' \ - -e 's/ -j \([1-9][0-9]*\)/ -j\1/g' \ - -e 's/ -j\>/ -j1/g' | \ - ( while read -d ' ' j ; do if [[ "${j#-j}" = "$j" ]]; then continue; fi; jobs="${j#-j}"; done; echo ${jobs} ) ) - if [[ "${jobs}" != "" ]]; then NUMJOBS="-j"${jobs}; fi; - - export BOOST_ROOT="${S}" - - einfo "Using the following command to build: " - einfo "${BJAM} ${NUMJOBS} -q -d+2 gentoorelease ${OPTIONS} threading=single,multi link=shared,static runtime-link=shared" - - ${BJAM} ${NUMJOBS} -q -d+2 \ - gentoorelease \ - ${OPTIONS} \ - threading=single,multi link=shared,static runtime-link=shared \ - || die "building boost failed" - - # ... and do the whole thing one more time to get the debug libs - if use debug ; then - einfo "Using the following command to build: " - einfo "${BJAM} ${NUMJOBS} -q -d+2 gentoodebug ${OPTIONS} threading=single,multi link=shared,static runtime-link=shared --buildid=debug" - - ${BJAM} ${NUMJOBS} -q -d+2 \ - gentoodebug \ - ${OPTIONS} \ - threading=single,multi link=shared,static runtime-link=shared \ - --buildid=debug \ - || die "building boost failed" - fi - - if use tools; then - cd "${S}/tools/" - einfo "Using the following command to build the tools: " - einfo "${BJAM} ${NUMJOBS} -q -d+2 gentoorelease ${OPTIONS}" - - ${BJAM} ${NUMJOBS} -q -d+2\ - gentoorelease \ - ${OPTIONS} \ - || die "building tools failed" - fi - -} - -src_install () { - export BOOST_ROOT="${S}" - - einfo "Using the following command to install: " - einfo "${BJAM} -q -d+2 gentoorelease ${OPTIONS} threading=single,multi link=shared,static runtime-link=shared --includedir=\"${D}/usr/include\" --libdir=\"${D}/usr/$(get_libdir)\" install" - - ${BJAM} -q -d+2 \ - gentoorelease \ - ${OPTIONS} \ - threading=single,multi link=shared,static runtime-link=shared \ - --includedir="${D}/usr/include" \ - --libdir="${D}/usr/$(get_libdir)" \ - install || die "install failed for options '${OPTIONS}'" - - if use debug ; then - einfo "Using the following command to install: " - einfo "${BJAM} -q -d+2 gentoodebug ${OPTIONS} threading=single,multi link=shared,static runtime-link=shared --includedir=\"${D}/usr/include\" --libdir=\"${D}/usr/$(get_libdir)\" --buildid=debug" - - ${BJAM} -q -d+2 \ - gentoodebug \ - ${OPTIONS} \ - threading=single,multi link=shared,static runtime-link=shared \ - --includedir="${D}/usr/include" \ - --libdir="${D}/usr/$(get_libdir)" \ - --buildid=debug \ - install || die "install failed for options '${OPTIONS}'" - fi - - use python || rm -rf "${D}/usr/include/boost-${MAJOR_PV}/boost"/python* - - dodir /usr/share/boost-eselect/profiles/${SLOT} - touch "${D}/usr/share/boost-eselect/profiles/${SLOT}/default" - use debug && touch "${D}/usr/share/boost-eselect/profiles/${SLOT}/debug" - - # Move the mpi.so to the right place and make sure it's slotted - if use mpi && use python; then - mkdir -p "${D}/usr/$(get_libdir)/python${PYVER}/site-packages/boost_${MAJOR_PV}" - mv "${D}/usr/$(get_libdir)/mpi.so" "${D}/usr/$(get_libdir)/python${PYVER}/site-packages/boost_${MAJOR_PV}/" - touch "${D}/usr/$(get_libdir)/python${PYVER}/site-packages/boost_${MAJOR_PV}/__init__.py" - _add_line "python=\"/usr/$(get_libdir)/python${PYVER}/site-packages/boost_${MAJOR_PV}/mpi.so\"" - fi - - if use doc ; then - find libs/*/* -iname "test" -or -iname "src" | xargs rm -rf - dohtml \ - -A pdf,txt,cpp,hpp \ - *.{htm,html,png,css} \ - -r doc more people wiki - dohtml \ - -A pdf,txt \ - -r tools - insinto /usr/share/doc/${PF}/html - doins -r libs - - # To avoid broken links - insinto /usr/share/doc/${PF}/html - doins LICENSE_1_0.txt - - dosym /usr/include/boost-${MAJOR_PV}/boost /usr/share/doc/${PF}/html/boost - fi - - cd "${D}/usr/$(get_libdir)" - - # Remove (unversioned) symlinks - # And check for what we remove to catch bugs - # got a better idea how to do it? tell me! - for f in $(ls -1 *{.a,$(get_libname)} | grep -v "${MAJOR_PV}") ; do - if [ ! -h "${f}" ] ; then - eerror "Ups, tried to remove '${f}' which is a a real file instead of a symlink" - die "slotting/naming of the libs broken!" - fi - rm "${f}" - done - - # The threading libs obviously always gets the "-mt" (multithreading) tag - # some packages seem to have a problem with it. Creating symlinks... - for lib in libboost_thread-mt-${MAJOR_PV}{.a,$(get_libname)} ; do - dosym ${lib} "/usr/$(get_libdir)/$(sed -e 's/-mt//' <<< ${lib})" - done - - # The same goes for the mpi libs - if use mpi ; then - for lib in libboost_mpi-mt-${MAJOR_PV}{.a,$(get_libname)} ; do - dosym ${lib} "/usr/$(get_libdir)/$(sed -e 's/-mt//' <<< ${lib})" - done - fi - - if use debug ; then - for lib in libboost_thread-mt-${MAJOR_PV}-debug{.a,$(get_libname)} ; do - dosym ${lib} "/usr/$(get_libdir)/$(sed -e 's/-mt//' <<< ${lib})" - done - - if use mpi ; then - for lib in libboost_mpi-mt-${MAJOR_PV}-debug{.a,$(get_libname)} ; do - dosym ${lib} "/usr/$(get_libdir)/$(sed -e 's/-mt//' <<< ${lib})" - done - fi - fi - - # Create a subdirectory with completely unversioned symlinks - # and store the names in the profiles-file for eselect - dodir /usr/$(get_libdir)/boost-${MAJOR_PV} - - _add_line "libs=\"" default - for f in $(ls -1 *{.a,$(get_libname)} | grep -v debug) ; do - dosym ../${f} /usr/$(get_libdir)/boost-${MAJOR_PV}/${f/-${MAJOR_PV}} - _add_line "/usr/$(get_libdir)/${f}" default - done - _add_line "\"" default - - if use debug ; then - _add_line "libs=\"" debug - dodir /usr/$(get_libdir)/boost-${MAJOR_PV}-debug - for f in $(ls -1 *{.a,$(get_libname)} | grep debug) ; do - dosym ../${f} /usr/$(get_libdir)/boost-${MAJOR_PV}-debug/${f/-${MAJOR_PV}-debug} - _add_line "/usr/$(get_libdir)/${f}" debug - done - _add_line "\"" debug - - _add_line "includes=\"/usr/include/boost-${MAJOR_PV}/boost\"" debug - _add_line "suffix=\"-debug\"" debug - fi - - _add_line "includes=\"/usr/include/boost-${MAJOR_PV}/boost\"" default - - if use tools; then - cd "${S}/dist/bin" - # Append version postfix to binaries for slotting - _add_line "bins=\"" - for b in * ; do - newbin "${b}" "${b}-${MAJOR_PV}" - _add_line "/usr/bin/${b}-${MAJOR_PV}" - done - _add_line "\"" - - cd "${S}/dist" - insinto /usr/share - doins -r share/boostbook - # Append version postfix for slotting - mv "${D}/usr/share/boostbook" "${D}/usr/share/boostbook-${MAJOR_PV}" - _add_line "dirs=\"/usr/share/boostbook-${MAJOR_PV}\"" - fi - - cd "${S}/status" - if [ -f regress.log ] ; then - docinto status - dohtml *.{html,gif} ../boost.png - dodoc regress.log - fi - - use python && python_need_rebuild - - # boost's build system truely sucks for not having a destdir. Because for - # this reason we are forced to build with a prefix that includes the - # DESTROOT, dynamic libraries on Darwin end messed up, referencing the - # DESTROOT instread of the actual EPREFIX. There is no way out of here - # but to do it the dirty way of manually setting the right install_names. - [[ -z ${ED+set} ]] && local ED=${D%/}${EPREFIX}/ - if [[ ${CHOST} == *-darwin* ]] ; then - einfo "Working around completely broken build-system(tm)" - for d in "${ED}"usr/lib/*.dylib ; do - if [[ -f ${d} ]] ; then - # fix the "soname" - ebegin " correcting install_name of ${d#${ED}}" - install_name_tool -id "/${d#${D}}" "${d}" - eend $? - # fix references to other libs - refs=$(otool -XL "${d}" | \ - sed -e '1d' -e 's/^\t//' | \ - grep "^libboost_" | \ - cut -f1 -d' ') - for r in ${refs} ; do - ebegin " correcting reference to ${r}" - install_name_tool -change \ - "${r}" \ - "${EPREFIX}/usr/lib/${r}" \ - "${d}" - eend $? - done - fi - done - fi -} - -src_test() { - export BOOST_ROOT=${S} - - cd "${S}/tools/regression/build" - einfo "Using the following command to build test helpers: " - einfo "${BJAM} -q -d+2 gentoorelease ${OPTIONS} process_jam_log compiler_status" - - ${BJAM} -q -d+2 \ - gentoorelease \ - ${OPTIONS} \ - process_jam_log compiler_status \ - || die "building regression test helpers failed" - - cd "${S}/status" - - # Some of the test-checks seem to rely on regexps - export LC_ALL="C" - - # The following is largely taken from tools/regression/run_tests.sh, - # but adapted to our needs. - - # Run the tests & write them into a file for postprocessing - einfo "Using the following command to test: " - einfo "${BJAM} ${OPTIONS} --dump-tests" - - ${BJAM} \ - ${OPTIONS} \ - --dump-tests 2>&1 | tee regress.log - - # Postprocessing - cat regress.log | "${S}/tools/regression/build/bin/gcc-$(gcc-version)/gentoorelease/process_jam_log" --v2 - if test $? != 0 ; then - die "Postprocessing the build log failed" - fi - - cat > "${S}/status/comment.html" <<- __EOF__ - <p>Tests are run on a <a href="http://www.gentoo.org">Gentoo</a> system.</p> -__EOF__ - - # Generate the build log html summary page - "${S}/tools/regression/build/bin/gcc-$(gcc-version)/gentoorelease/compiler_status" --v2 \ - --comment "${S}/status/comment.html" "${S}" \ - cs-$(uname).html cs-$(uname)-links.html - if test $? != 0 ; then - die "Generating the build log html summary page failed" - fi - - # And do some cosmetic fixes :) - sed -i -e 's|http://www.boost.org/boost.png|boost.png|' *.html -} - -pkg_postinst() { - use eselect && eselect boost update - if [ ! -h "${ROOT}/etc/eselect/boost/active" ] ; then - elog "No active boost version found. Calling eselect to select one..." - eselect boost update - fi -} diff --git a/dev-libs/boost/metadata.xml b/dev-libs/boost/metadata.xml index 6eba0e3fa214..13f888bdc969 100644 --- a/dev-libs/boost/metadata.xml +++ b/dev-libs/boost/metadata.xml @@ -18,7 +18,6 @@ Boost is a free peer-reviewed portable C++ source libraries. </longdescription> <use> - <flag name='pyste'>Add support for the pyste frontend</flag> <flag name='tools'>Build and install the boost tools (bcp, quickbook, inspect, wave)</flag> <flag name='eselect'>Run "eselect boost update" even if version is |