summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dev-libs/boost/ChangeLog5
-rw-r--r--dev-libs/boost/Manifest18
-rw-r--r--dev-libs/boost/boost-1.49.0-r2.ebuild449
3 files changed, 12 insertions, 460 deletions
diff --git a/dev-libs/boost/ChangeLog b/dev-libs/boost/ChangeLog
index eec2406f686d..12bb7348f7bc 100644
--- a/dev-libs/boost/ChangeLog
+++ b/dev-libs/boost/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for dev-libs/boost
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/boost/ChangeLog,v 1.314 2014/04/07 10:57:06 pinkbyte Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/boost/ChangeLog,v 1.315 2014/04/15 15:47:51 pinkbyte Exp $
+
+ 15 Apr 2014; Sergey Popov <pinkbyte@gentoo.org> -boost-1.49.0-r2.ebuild:
+ Drop old vulnerable version
07 Apr 2014; Sergey Popov <pinkbyte@gentoo.org> boost-1.53.0-r1.ebuild,
boost-1.54.0-r1.ebuild, boost-1.55.0-r1.ebuild:
diff --git a/dev-libs/boost/Manifest b/dev-libs/boost/Manifest
index 2d37a5f778c5..24e9c6396098 100644
--- a/dev-libs/boost/Manifest
+++ b/dev-libs/boost/Manifest
@@ -17,26 +17,24 @@ AUX boost-1.53.0-library_status.patch 1907 SHA256 21a3137fcac21f734c7160264523f8
AUX boost-1.55.0-context-x32.patch 1077 SHA256 1da4ff48b98416cac601c52594d4c4da3fb89d0a3e8908f119f05cc8ae76f9c7 SHA512 0e2e45abe5833396508666355e26bafe114fa4ada628b24d8d9953268edddcb2f8e3dcfe8bc7f27d6c1794418990dc9ef914c936dfa64ed6e5e647a40e3f8a73 WHIRLPOOL 0b7a3521a8ec513b833d0292fa3e3bcafc8232fa96d2e41afd25da8dc30bdb49ee4319c7c8555d95e7d3de55fc704d83e443ba49bf89d6961a3f5af73c024a71
AUX boost-1.55.0-tools-c98-compat.patch 680 SHA256 08192ebf36a3087d3bce31d7b78c29c6e38bca6e5164744878783f648024beec SHA512 fc132898d9ef1a9fab607f277003f86080306fd0f30f89ab0916eb4c3217b390f15cfa00d1e410e79080d469714866a417ba72a3c0727189e8425cd72a1d6a47 WHIRLPOOL 17eb9e80ae33ef9fa8e4c442c511e35d1f5c2ac5251462931e9fbbd53bb29ef5adf699680729af71ef4c12ec87c6d83c821a8e30a03f7f1abedc2207c3125c1c
AUX remove-toolset-1.48.0.patch 396 SHA256 59af4c05d71def0b14e22a7a5f756a054ca82e3f9686b7668335af7d9bed28fa SHA512 bbb01be2e4b4807eeb19faf13fc6c73e3cb8843953586312076a15c67ad5c5cac683fc3fb26f4e2902c60ab7930e83922f4d499756a85f78a20ac53399329f61 WHIRLPOOL 2490dac69a45b3f48e2513b4f21d75dc7cf5361411541dde96f027c66ca459df5390708902c86f11577d1129410f52d20de1ff275524fb51083a17eee6adc332
-DIST boost_1_49_0.tar.bz2 48499961 SHA256 dd748a7f5507a7e7af74f452e1c52a64e651ed1f7263fce438a06641d2180d3c SHA512 9f6198270659df112a57731afe31cbf1012d103ba36ed82f6c3f1bdc0185ddb89dcc42c5dfb9ee3f95973d52999aad6c7509dc61125420d45146e39ebf20219d WHIRLPOOL c049b4212307b0208d0b37ac870a7cfb8562d2b685ce505e1971af7bc68ae9746b06ea80ddc52599ed4cbd6dc3305b5f8051cd771387412aaa1d2f8e939a48ba
DIST boost_1_52_0.tar.bz2 54421709 SHA256 222b6afd7723f396f5682c20130314a10196d3999feab5ba920d2a6bf53bac92 SHA512 fc512d3bfa6a39a60fee548775c97239271cf757587b8df7ed739c800844a819a359dca172be0e69ad7752753753139bf11f0813d650066d58386662fe32842d WHIRLPOOL 73bbab4a1d2a652200f4b5e669440a2afcebcea96a1139ecc75213067ca32d5cadb0f060bb0ec2e29e9e31272fb7ec9d2cb960801032ee6c5dcb86564766411d
DIST boost_1_53_0.tar.bz2 55765258 SHA256 f88a041b01882b0c9c5c05b39603ec8383fb881f772f6f9e6e6fd0e0cddb9196 SHA512 8cd7806653cb6ea4a1c6862796ef698de5ae0bdbda96954fedbe090c59e3e6cb8f8d385df35183e9063ac4e2c2fccf10744516c47a994cde5f1d1cba1b07e522 WHIRLPOOL e8c5ed6b34dd5f68dc7e102a9e22b302616a65077d3f4af370ece6352b02a866e04294a4fc76bbd5555b6a4131f590e6455e6a74b5f12c4ffc2dd15af0bc8746
DIST boost_1_54_0.tar.bz2 57873778 SHA256 047e927de336af106a24bceba30069980c191529fd76b8dff8eb9a328b48ae1d SHA512 3467a2bb9b4797cadfc52150cb036939ef35263f421870897dbe9492d1504a714805668a193b0811fdaf39a3527ee693ff70da5b942d7ab11b307e2e693e1760 WHIRLPOOL dbe3cbecaccf86ca184cf73cff75c17d6307b680bab098e38a9efd24d17776481e597017fc9f8fc8f488495f315c6d2b14b9212c51cf98529c302482bf67e92a
DIST boost_1_55_0.tar.bz2 58146647 SHA256 fff00023dd79486d444c8e29922f4072e1d451fc5a4d2b6075852ead7f2b7b52 SHA512 dc606477f4c303e8f40de2586c16394b6d758e198b35bf3a7d3e576a2f49171aadc4f95e8d685fa731bc4e61e19869d5a24e1e816febfca9de078d66e096e041 WHIRLPOOL 6ae111d6a956651bd91914432b743faffeb466703191b05193db47f02fd3528a14ce200f26c1ab77bf2c68994eb5b135b0176f66a746964d334b4793ba113ad5
-EBUILD boost-1.49.0-r2.ebuild 14422 SHA256 ad45dd1d48921a19aad372846d95192d193360e3bb331d33fc27aaf0aaf04711 SHA512 4baf56fc384f06117904fdaba7d62993800f27389cf84871074866d755721a30d3ffc4aed75a3d016dda3695a6f96e7be16cdbc7fba4f0be098b8258b2f6b3df WHIRLPOOL 210cfa37728a85e418f0180268d195bbb67704b415f69adde39fa96d5087b03c8724f91d19ce2d91aa344abe292156bdbccd50ed05a58a030dbfb6b8f50ff4c7
EBUILD boost-1.52.0-r6.ebuild 9259 SHA256 0f6fd3656e7dd3cf27c61aca6044d53fb8242bdca43ffef93c20e75febf55adf SHA512 a10f8b850bf126c2a12120d70f5746250864fb2353448a1cafc262d04d5b6e67da0e7ec90d7f8f5f51c2ad641c09d6fe27ec8480eefd5430fcda01e3bc545dd9 WHIRLPOOL 9cf21db557c8ce92f17c8890754a0ed6ef7d6428e07387010d9f03375e302260d5fad477590a60cb2a11c21c65ada3e49a3a97ce62135b2588fbedbeaf2a83d3
EBUILD boost-1.53.0-r1.ebuild 9981 SHA256 e64c8bcc140240cefffcc3a3761833e80beab4ccabc79dbd0bcdf91b82a6365e SHA512 29424a067a9f4046fe48b6544a21ea9676832935dae44ace923af33fda8ac8413e67f5203dd04b68df1a72d3cc3f8241a165428eb498ba164a2f303bc0374348 WHIRLPOOL cf5c4901a820332f125ff8852463ce4eb027c42821389bdb2446c3d88d75ef4aedb06be97a86293b19fd7e1ee376856d3eded93ebecde557630f8382fb9f6764
EBUILD boost-1.54.0-r1.ebuild 10001 SHA256 b946f29a2ee99033e2090fede275a6cdc818a5b8b87e001ad0cec683ae35a5e7 SHA512 45ede4f8d8eb7de242b0dc94de7f4aa3d57a315972aca44ae37d4109cb9ac03a85378cad35ca5d22f97ca9e5ffc097fff1094654d47f954ca70fbfe325a09b46 WHIRLPOOL d97bf9e69c0d1cc56b0ed68ca34add478ce2ad8dba9f2ad9596c6b7b08d2375c04c7fa4797d363ccf7df292e76d7fb7f5be0a0e5b74ef26df82d6de0b5b16e47
EBUILD boost-1.55.0-r1.ebuild 9857 SHA256 12d775af771653fe3ea3edb17e1b12f17faba606d304bb15b728a168750f6209 SHA512 f369c35bcf530e0343142ae38da1cafa0f7aebc68e3e27ae3c8c6192ccee383015fdf1fe9c81e3687df614e490dc22e114c601514a77187804e7d56dac217df9 WHIRLPOOL 87dfa3a51175a2fe91210c45b3875a4bb085661baff6ae5bac4becd76835942a9c6cd43502142b0e33647703c8595025781d6a70dbf5a5e8e24804790ce88c50
-MISC ChangeLog 53615 SHA256 62298a9de1c48ac4ae692e4452c710cd068fa587cf4c52db3569434bc4e74b35 SHA512 9175cf3bd91b66ae9fdb0081521c7fb75629b5f0e1ec8354ad04bcd2dc49f197a2eb56da63552d54e0072afe815363ba258a92e59366ba8a1180e246e0bf19b9 WHIRLPOOL e76706b6290cb3988ede5532a807b6c6f91693a5874cc9b46b0655ee5c3c605d6ec77f9e92c3e5cd00bd694b2ac334c2c66807f77531e1382adfd608a996088a
+MISC ChangeLog 53721 SHA256 d8f027e7f64d0b21bc4c02ab94dc2efa0db403350a51ee121dc3dcbd37c0ed0e SHA512 5d38e901f0ce3c679c813bf6568b069eca105b5501889ae85f89ca9aeec969e3c567ef2024414336ebd5ce1aefea1f4cd626b1427829a3e181089e73abfbbfea WHIRLPOOL 2e6f542e247066263c136b17b91b5cb1ac143435c2eb1f99be9d077fc04fee98b1e342809fd2e908f4423a6f48fbbffda6f4831abf717dcccbe244dabc1a2e12
MISC metadata.xml 1363 SHA256 81717d0ffd5ebadbe4b12d4a38b332f3128da205a46e3cfd201e91f6ad474d68 SHA512 162040a40e83cceacea3605d45bc846cbd721446949c66bd836ab54e113ada77f1f462c7e61d7e544bc073920475db6b81c104390d6c83aba7228d65ff270419 WHIRLPOOL be141d041846a3a79efb7579c3f842960afe27a6e29659bad88ae8e999aef30074d2ab23c9eb295152d88f75d80efc86fed1c08c11b4f3f0d5e866b6d3c4802c
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)
-iQEcBAEBCAAGBQJTQoRmAAoJECo/aRed9267Xk0H+wXWM4z3x579TS7VzNuHgc4C
-gV7Ht3gbB78hPU/oMTFrfymE4Gx0TexymhXJ/ktc3IG9pFtMZGekycnJvaJIIsGx
-dPXcPwNYaynm63kHaCZzBNExhN/2inF8zzpIj7kNaWJ5AP8EG98BEj/qPG26bs4r
-+ot1NqY6aMOjXLzBrYbW0koWWf1NUg1TMHItYouw6ZyCqEYU6c3O/WdZLELCFUkh
-YGn61GeH4qSxDcLHjubtxMtv2F/RnBPKSmPHq1yZIB1TBr4q2HymSEmNyDPP2sXl
-rt/tNGAsVvaXecSwgKiH+1wnmDFxsk37UF3Y6YrhN4aZK5aJaT7YTKv3PqpsHkU=
-=wtNO
+iQEcBAEBCAAGBQJTTVStAAoJECo/aRed9267CL8H/1POgZ+yYEjUTU708LtGMreN
+1CnujT11/jKXDfresi9npn7PHrLZYDXZ3qlJs5t8YYJYXU8zJ7K7Qraut8UWvq1h
+y4Pw3G0Vay51U+yldB5yTNKHJUhpIjFT2f/sTEer0xKpA/z/Ev9dTOzEUY85RpUf
+SKk456q71fakqAEtFMkim0uUHjAQI3zafTBxszWbwdt4LCK3tyxJ9BPzLyXvi39G
+4es49Y5qcQXbljLUoChjdI+G0cXoThs8YHfVoRk37j5YJ3i/4RS30ZDN1t34lHaz
+KQP+9V1gdTBM0eKojAUTBj9CHXHx+BKIgI3XzOtUkmHQnui61Y05RTl4BkE4NvM=
+=D+he
-----END PGP SIGNATURE-----
diff --git a/dev-libs/boost/boost-1.49.0-r2.ebuild b/dev-libs/boost/boost-1.49.0-r2.ebuild
deleted file mode 100644
index 676b4758251f..000000000000
--- a/dev-libs/boost/boost-1.49.0-r2.ebuild
+++ /dev/null
@@ -1,449 +0,0 @@
-# Copyright 1999-2013 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/boost/boost-1.49.0-r2.ebuild,v 1.7 2013/07/10 11:54:02 pinkbyte Exp $
-
-EAPI="4"
-PYTHON_DEPEND="python? *"
-SUPPORT_PYTHON_ABIS="1"
-RESTRICT_PYTHON_ABIS="*-jython *-pypy-*"
-
-inherit flag-o-matic multilib python toolchain-funcs versionator
-
-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=0
-MAJOR_V="$(get_version_component_range 1-2)"
-KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~x86-fbsd"
-IUSE="debug doc icu mpi python static-libs tools"
-
-RDEPEND="icu? ( >=dev-libs/icu-3.3 )
- mpi? ( || ( sys-cluster/openmpi[cxx] sys-cluster/mpich2[cxx,threads] ) )
- app-arch/bzip2
- sys-libs/zlib
- !app-admin/eselect-boost
- elibc_glibc? ( <sys-libs/glibc-2.16 )"
-DEPEND="${RDEPEND}
- =dev-util/boost-build-${MAJOR_V}*"
-
-S=${WORKDIR}/${MY_P}
-
-MAJOR_PV=$(replace_all_version_separators _ ${MAJOR_V})
-BJAM="b2-${MAJOR_PV}"
-
-create_user-config.jam() {
- local compiler compiler_version compiler_executable
-
- if [[ ${CHOST} == *-darwin* ]]; then
- compiler="darwin"
- compiler_version="$(gcc-fullversion)"
- compiler_executable="$(tc-getCXX)"
- else
- compiler="gcc"
- compiler_version="$(gcc-version)"
- compiler_executable="$(tc-getCXX)"
- fi
- local mpi_configuration python_configuration
-
- if use mpi; then
- mpi_configuration="using mpi ;"
- fi
-
- if use python; then
- python_configuration="using python : $(python_get_version) : /usr : $(python_get_includedir) : /usr/$(get_libdir) ;"
- fi
-
- # The debug-symbols=none and optimization=none are not official upstream flags but a Gentoo
- # specific patch to make sure that all our CFLAGS/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 information.
- cat > user-config.jam << __EOF__
-variant gentoorelease : release : <optimization>none <debug-symbols>none ;
-variant gentoodebug : debug : <optimization>none ;
-
-using ${compiler} : ${compiler_version} : ${compiler_executable} : <cflags>"${CFLAGS}" <cxxflags>"${CXXFLAGS}" <linkflags>"${LDFLAGS}" ;
-${mpi_configuration}
-${python_configuration}
-__EOF__
-}
-
-pkg_setup() {
- if use python; then
- python_pkg_setup
- fi
-}
-
-src_prepare() {
- epatch "${FILESDIR}/${PN}-1.48.0-mpi_python3.patch"
- epatch "${FILESDIR}/${PN}-1.48.0-respect_python-buildid.patch"
- epatch "${FILESDIR}/${PN}-1.48.0-support_dots_in_python-buildid.patch"
- epatch "${FILESDIR}/${PN}-1.48.0-no_strict_aliasing_python2.patch"
- epatch "${FILESDIR}/${PN}-1.48.0-disable_libboost_python3.patch"
- epatch "${FILESDIR}/${PN}-1.48.0-python_linking.patch"
- epatch "${FILESDIR}/${PN}-1.48.0-disable_icu_rpath.patch"
- epatch "${FILESDIR}/remove-toolset-1.48.0.patch"
-}
-
-src_configure() {
- OPTIONS=""
-
- if [[ ${CHOST} == *-darwin* ]]; then
- # 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
- fi
-
- # bug 298489
- if use ppc || use ppc64; then
- [[ $(gcc-version) > 4.3 ]] && append-flags -mno-altivec
- fi
-
- use icu && OPTIONS+=" -sICU_PATH=/usr"
- use icu || OPTIONS+=" --disable-icu boost.locale.icu=off"
- use mpi || OPTIONS+=" --without-mpi"
- use python || OPTIONS+=" --without-python"
-
- # https://svn.boost.org/trac/boost/attachment/ticket/2597/add-disable-long-double.patch
- if use sparc || { use mips && [[ ${ABI} = "o32" ]]; } || use hppa || use arm || use x86-fbsd || use sh; then
- OPTIONS+=" --disable-long-double"
- fi
-
- OPTIONS+=" pch=off --boost-build=/usr/share/boost-build-${MAJOR_PV} --prefix=\"${D}usr\" --layout=versioned"
-
- if use static-libs; then
- LINK_OPTS="link=shared,static"
- LIBRARY_TARGETS="*.a *$(get_libname)"
- else
- LINK_OPTS="link=shared"
- # There is no dynamically linked version of libboost_test_exec_monitor and libboost_exception.
- LIBRARY_TARGETS="libboost_test_exec_monitor*.a libboost_exception*.a *$(get_libname)"
- fi
-}
-
-src_compile() {
- local jobs
- 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}"
- PYTHON_DIRS=""
- MPI_PYTHON_MODULE=""
-
- building() {
- create_user-config.jam
-
- einfo "Using the following command to build:"
- einfo "${BJAM} ${NUMJOBS} -q -d+2 gentoorelease --user-config=user-config.jam ${OPTIONS} threading=single,multi ${LINK_OPTS} runtime-link=shared $(use python && echo --python-buildid=${PYTHON_ABI})"
-
- ${BJAM} ${NUMJOBS} -q -d+2 \
- gentoorelease \
- --user-config=user-config.jam \
- ${OPTIONS} \
- threading=single,multi ${LINK_OPTS} runtime-link=shared \
- $(use python && echo --python-buildid=${PYTHON_ABI}) \
- || die "Building of Boost libraries 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 --user-config=user-config.jam ${OPTIONS} threading=single,multi ${LINK_OPTS} runtime-link=shared --buildid=debug $(use python && echo --python-buildid=${PYTHON_ABI})"
-
- ${BJAM} ${NUMJOBS} -q -d+2 \
- gentoodebug \
- --user-config=user-config.jam \
- ${OPTIONS} \
- threading=single,multi ${LINK_OPTS} runtime-link=shared \
- --buildid=debug \
- $(use python && echo --python-buildid=${PYTHON_ABI}) \
- || die "Building of Boost debug libraries failed"
- fi
-
- if use python; then
- if [[ -z "${PYTHON_DIRS}" ]]; then
- PYTHON_DIRS="$(find bin.v2/libs -name python | sort)"
- else
- if [[ "${PYTHON_DIRS}" != "$(find bin.v2/libs -name python | sort)" ]]; then
- die "Inconsistent structure of build directories"
- fi
- fi
-
- local dir
- for dir in ${PYTHON_DIRS}; do
- mv ${dir} ${dir}-${PYTHON_ABI} || die "Renaming of '${dir}' to '${dir}-${PYTHON_ABI}' failed"
- done
-
- if use mpi; then
- if [[ -z "${MPI_PYTHON_MODULE}" ]]; then
- MPI_PYTHON_MODULE="$(find bin.v2/libs/mpi/build/*/gentoorelease -name mpi.so)"
- if [[ "$(echo "${MPI_PYTHON_MODULE}" | wc -l)" -ne 1 ]]; then
- die "Multiple mpi.so files found"
- fi
- else
- if [[ "${MPI_PYTHON_MODULE}" != "$(find bin.v2/libs/mpi/build/*/gentoorelease -name mpi.so)" ]]; then
- die "Inconsistent structure of build directories"
- fi
- fi
-
- mv stage/lib/mpi.so stage/lib/mpi.so-${PYTHON_ABI} || die "Renaming of 'stage/lib/mpi.so' to 'stage/lib/mpi.so-${PYTHON_ABI}' failed"
- fi
- fi
- }
- if use python; then
- python_execute_function building
- else
- building
- fi
-
- if use tools; then
- pushd tools > /dev/null || die
- einfo "Using the following command to build the tools:"
- einfo "${BJAM} ${NUMJOBS} -q -d+2 gentoorelease --user-config=../user-config.jam ${OPTIONS}"
-
- ${BJAM} ${NUMJOBS} -q -d+2\
- gentoorelease \
- --user-config=../user-config.jam \
- ${OPTIONS} \
- || die "Building of Boost tools failed"
- popd > /dev/null || die
- fi
-}
-
-src_install () {
- installation() {
- create_user-config.jam
-
- if use python; then
- local dir
- for dir in ${PYTHON_DIRS}; do
- cp -pr ${dir}-${PYTHON_ABI} ${dir} || die "Copying of '${dir}-${PYTHON_ABI}' to '${dir}' failed"
- done
-
- if use mpi; then
- cp -p stage/lib/mpi.so-${PYTHON_ABI} "${MPI_PYTHON_MODULE}" || die "Copying of 'stage/lib/mpi.so-${PYTHON_ABI}' to '${MPI_PYTHON_MODULE}' failed"
- cp -p stage/lib/mpi.so-${PYTHON_ABI} stage/lib/mpi.so || die "Copying of 'stage/lib/mpi.so-${PYTHON_ABI}' to 'stage/lib/mpi.so' failed"
- fi
- fi
-
- einfo "Using the following command to install:"
- einfo "${BJAM} -q -d+2 gentoorelease --user-config=user-config.jam ${OPTIONS} threading=single,multi ${LINK_OPTS} runtime-link=shared --includedir=\"${D}usr/include\" --libdir=\"${D}usr/$(get_libdir)\" $(use python && echo --python-buildid=${PYTHON_ABI}) install"
-
- ${BJAM} -q -d+2 \
- gentoorelease \
- --user-config=user-config.jam \
- ${OPTIONS} \
- threading=single,multi ${LINK_OPTS} runtime-link=shared \
- --includedir="${D}usr/include" \
- --libdir="${D}usr/$(get_libdir)" \
- $(use python && echo --python-buildid=${PYTHON_ABI}) \
- install || die "Installation of Boost libraries failed"
-
- if use debug; then
- einfo "Using the following command to install:"
- einfo "${BJAM} -q -d+2 gentoodebug --user-config=user-config.jam ${OPTIONS} threading=single,multi ${LINK_OPTS} runtime-link=shared --includedir=\"${D}usr/include\" --libdir=\"${D}usr/$(get_libdir)\" --buildid=debug $(use python && echo --python-buildid=${PYTHON_ABI})"
-
- ${BJAM} -q -d+2 \
- gentoodebug \
- --user-config=user-config.jam \
- ${OPTIONS} \
- threading=single,multi ${LINK_OPTS} runtime-link=shared \
- --includedir="${D}usr/include" \
- --libdir="${D}usr/$(get_libdir)" \
- --buildid=debug \
- $(use python && echo --python-buildid=${PYTHON_ABI}) \
- install || die "Installation of Boost debug libraries failed"
- fi
-
- if use python; then
- rm -r ${PYTHON_DIRS} || die
-
- # Move mpi.so Python module to Python site-packages directory and make sure it is slotted.
- if use mpi; then
- mkdir -p "${D}$(python_get_sitedir)/boost_${MAJOR_PV}" || die
- mv "${D}usr/$(get_libdir)/mpi.so" "${D}$(python_get_sitedir)/boost_${MAJOR_PV}" || die
- cat << EOF > "${D}$(python_get_sitedir)/boost_${MAJOR_PV}/__init__.py" || die
-import sys
-if sys.platform.startswith('linux'):
- import DLFCN
- flags = sys.getdlopenflags()
- sys.setdlopenflags(DLFCN.RTLD_NOW | DLFCN.RTLD_GLOBAL)
- from . import mpi
- sys.setdlopenflags(flags)
- del DLFCN, flags
-else:
- from . import mpi
-del sys
-EOF
- fi
- fi
- }
- if use python; then
- python_execute_function installation
- else
- installation
- fi
-
- use python || rm -rf "${D}usr/include/boost-${MAJOR_PV}/boost"/python* || die
-
- 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
- dohtml \
- -A pdf,txt \
- -r tools
- insinto /usr/share/doc/${PF}/html
- doins -r libs
- doins -r more
-
- # 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
-
- dosym boost-${MAJOR_PV}/boost /usr/include/boost
-
- pushd "${D}usr/$(get_libdir)" > /dev/null || die
-
- # The threading libs obviously always gets the "-mt" (multithreading) tag
- # some packages seem to have a problem with it. Creating symlinks...
-
- if use static-libs; then
- THREAD_LIBS="libboost_thread-mt-${MAJOR_PV}.a libboost_thread-mt-${MAJOR_PV}$(get_libname)"
- else
- THREAD_LIBS="libboost_thread-mt-${MAJOR_PV}$(get_libname)"
- fi
- local lib
- for lib in ${THREAD_LIBS}; do
- dosym ${lib} "/usr/$(get_libdir)/${lib/-mt/}"
- done
-
- # The same goes for the mpi libs
- if use mpi; then
- if use static-libs; then
- MPI_LIBS="libboost_mpi-mt-${MAJOR_PV}.a libboost_mpi-mt-${MAJOR_PV}$(get_libname)"
- else
- MPI_LIBS="libboost_mpi-mt-${MAJOR_PV}$(get_libname)"
- fi
- local lib
- for lib in ${MPI_LIBS}; do
- dosym ${lib} "/usr/$(get_libdir)/${lib/-mt/}"
- done
- fi
-
- if use debug; then
- if use static-libs; then
- THREAD_DEBUG_LIBS="libboost_thread-mt-${MAJOR_PV}-debug$(get_libname) libboost_thread-mt-${MAJOR_PV}-debug.a"
- else
- THREAD_DEBUG_LIBS="libboost_thread-mt-${MAJOR_PV}-debug$(get_libname)"
- fi
-
- local lib
- for lib in ${THREAD_DEBUG_LIBS}; do
- dosym ${lib} "/usr/$(get_libdir)/${lib/-mt/}"
- done
-
- if use mpi; then
- if use static-libs; then
- MPI_DEBUG_LIBS="libboost_mpi-mt-${MAJOR_PV}-debug.a libboost_mpi-mt-${MAJOR_PV}-debug$(get_libname)"
- else
- MPI_DEBUG_LIBS="libboost_mpi-mt-${MAJOR_PV}-debug$(get_libname)"
- fi
-
- local lib
- for lib in ${MPI_DEBUG_LIBS}; do
- dosym ${lib} "/usr/$(get_libdir)/${lib/-mt/}"
- done
- fi
- fi
-
- local f
- for f in $(ls -1 ${LIBRARY_TARGETS} | grep -v debug); do
- dosym ${f} /usr/$(get_libdir)/${f/-${MAJOR_PV}}
- done
-
- if use debug; then
- dodir /usr/$(get_libdir)/boost-debug
- local f
- for f in $(ls -1 ${LIBRARY_TARGETS} | grep debug); do
- dosym ../${f} /usr/$(get_libdir)/boost-debug/${f/-${MAJOR_PV}-debug}
- done
- fi
-
- popd > /dev/null || die
-
- if use tools; then
- pushd dist/bin > /dev/null || die
- # Append version postfix to binaries for slotting
- local b
- for b in *; do
- newbin "${b}" "${b}-${MAJOR_PV}"
- done
- popd > /dev/null || die
-
- pushd dist > /dev/null || die
- insinto /usr/share
- doins -r share/boostbook
- # Append version postfix for slotting
- mv "${D}usr/share/boostbook" "${D}usr/share/boostbook-${MAJOR_PV}" || die
- popd > /dev/null || die
- fi
-
- pushd status > /dev/null || die
- if [[ -f regress.log ]]; then
- docinto status
- dohtml *.html ../boost.png
- dodoc regress.log
- fi
- popd > /dev/null || die
-
- # 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.
- if [[ ${CHOST} == *-darwin* ]]; then
- einfo "Working around completely broken build-system(tm)"
- local d
- 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' ')
- local r
- 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
-}
-
-# the tests will never fail because these are not intended as sanity
-# tests at all. They are more a way for upstream to check their own code
-# on new compilers. Since they would either be completely unreliable
-# (failing for no good reason) or completely useless (never failing)
-# there is no point in having them in the ebuild to begin with.
-src_test() { :; }