Permalink
Browse files

dev-util/boost-build-1.46.0

  • Loading branch information...
1 parent 3739861 commit 0a5ba45f8d42d8a482d1019a5139125749754519 @wmark committed Feb 24, 2011
@@ -1,6 +1,9 @@
+AUX boost-build-1.42-env-whitespace.patch 683 RMD160 a96ff55a09a889c5fba0c898cc7d4c2a6d2ef1a5 SHA1 9fd231fc699813df1d3ba78ae95f5f322166ade7 SHA256 52714f45a54cad8c126d5fca8bd5eacc4d746b29df24aaa9d2c55e3694a6f4aa
DIST boost_1_40_0.tar.bz2 32068759 RMD160 dabcc7442b73048095aa3037917ea0713782781f SHA1 9dbaa06ce1d99ce310011c2eaf816ecb003b3096 SHA256 36cf4a239b587067a4923fdf6e290525a14c3af29829524fa73f3dec6841530c
DIST boost_1_43_0.tar.bz2 33892438 RMD160 950fe7c50ed8644ceffd8e494a8e0636037adacd SHA1 b8257b7da2a7222739314f8d1e07e217debe71d6 SHA256 344f100b1aa410e812cabf0e4130728a80be042bf346135516b9187853806120
DIST boost_1_44_0.tar.bz2 38806420 RMD160 1fe1bf83ce5699dc43cbfc3d5a6997722c34c938 SHA1 0dfeaad7a316ddfdcdb8a7e42443ef048ad18c01 SHA256 45c328029d97d1f1dc7ff8c9527cd0c5cc356636084a800bca2ee4bfab1978db
+DIST boost_1_46_0.tar.bz2 41939809 RMD160 42507cc8813b4cbfc9a87da0575985bfcf560d78 SHA1 1fbd865602b61a881c0e6093f58adf999e28ca4d SHA256 2f90f60792fdc25e674b8a857a0bcbb8d01199651719c90d5c4f8c61c08eba59
EBUILD boost-build-1.40.0.ebuild 2973 RMD160 8e15e2edb74dec07ca42f4711887b5ee25d63ede SHA1 ca806b1ee69c519f9bba5b1f970e1d257997f618 SHA256 b008f17ae157e1f7bc30c6dbe1018dbab0af78963d0d8b9ea07cd89199a140fd
EBUILD boost-build-1.43.0.ebuild 3151 RMD160 2e90ca8f25d1ec4edb084813bf1128c8fb3ac710 SHA1 7dfcb41be0a00a0d18ee2c2218fd3e3200863368 SHA256 02cdcd68b0bcc469c7d0b5285bb400142ab8718efe7816c13368dd7a66df4842
EBUILD boost-build-1.44.0.ebuild 3151 RMD160 2e90ca8f25d1ec4edb084813bf1128c8fb3ac710 SHA1 7dfcb41be0a00a0d18ee2c2218fd3e3200863368 SHA256 02cdcd68b0bcc469c7d0b5285bb400142ab8718efe7816c13368dd7a66df4842
+EBUILD boost-build-1.46.0.ebuild 3199 RMD160 f3a9cc0717c4011c77f1530ab1a2ad2c21fb9310 SHA1 e3a8115fe42abf1898055096e4afeae467fadf84 SHA256 a3eb4294fa6ae9e9ae4679542dfcc05a89475938dab788bab4a2c64466e87ecf
@@ -0,0 +1,111 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="2"
+
+inherit eutils flag-o-matic toolchain-funcs versionator
+
+MY_PV=$(replace_all_version_separators _)
+MAJOR_PV="$(replace_all_version_separators _ $(get_version_component_range 1-2))"
+
+DESCRIPTION="A system for large project software construction, which is simple to use and powerful."
+HOMEPAGE="http://www.boost.org/doc/tools/build/index.html"
+SRC_URI="mirror://sourceforge/boost/boost_${MY_PV}.tar.bz2"
+LICENSE="Boost-1.0"
+SLOT="$(get_version_component_range 1-2)"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
+IUSE="examples python"
+
+DEPEND="!<dev-libs/boost-1.34.0
+ !<=dev-util/boost-build-1.35.0-r1
+ python? ( dev-lang/python )"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/boost_${MY_PV}/tools/build/v2"
+
+src_unpack() {
+ tar xjpf "${DISTDIR}/${A}" boost_${MY_PV}/tools/build/v2 || die "unpacking tar failed"
+}
+
+src_prepare() {
+ # TODO:
+ # epatch "${FILESDIR}/boost-1.42-fix-mpich2-detection.patch"
+
+ cd "${S}/engine"
+ epatch "${FILESDIR}/${PN}-1.42-env-whitespace.patch" # 293652
+
+ # Remove stripping option
+ cd "${S}/engine/src"
+ sed -i -e 's|-s\b||' \
+ build.jam || die "sed failed"
+
+ # Force regeneration
+ rm jambase.c
+
+ # This patch allows us to fully control optimization
+ # and stripping flags when bjam is used as build-system
+ # We simply extend the optimization and debug-symbols feature
+ # with empty dummies called 'none'
+ cd "${S}"
+ sed -i \
+ -e 's/\(off speed space\)/\1 none/' \
+ -e 's/\(debug-symbols : on off\)/\1 none/' \
+ tools/builtin.jam || die "sed failed"
+}
+
+src_compile() {
+ cd engine/src
+ local toolset
+
+ if [[ ${CHOST} == *-darwin* ]] ; then
+ toolset=darwin
+ else
+ # Using boost's generic toolset here, which respects CC and CFLAGS
+ toolset=cc
+ fi
+
+ append-flags -fno-strict-aliasing
+
+ # For slotting
+ sed -i \
+ -e "s|/usr/share/boost-build|/usr/share/boost-build-${MAJOR_PV}|" \
+ Jambase || die "sed failed"
+
+ # The build.jam file for building bjam using a bootstrapped jam0 ignores
+ # the LDFLAGS env var (bug #209794). We have now two options:
+ # a) change the cc-target definition in build.jam to include separate compile
+ # and link targets to make it use the LDFLAGS var, or
+ # b) a simple dirty workaround by injecting the LDFLAGS in the LIBS env var
+ # (which should not be set by us).
+ if [[ -z "${LDFLAGS}" ]] ; then
+ CC=$(tc-getCC) ./build.sh ${toolset} $(use_with python) \
+ || die "building bjam failed"
+ else
+ LDFLAGS=$(echo ${LDFLAGS}) # 293652
+ LIBS=${LDFLAGS} CC=$(tc-getCC) ./build.sh ${toolset} \
+ $(use_with python) || die "building bjam failed"
+ fi
+}
+
+src_install() {
+ newbin engine/src/bin.*/bjam bjam-${MAJOR_PV}
+
+ cd "${S}"
+ insinto /usr/share/boost-build-${MAJOR_PV}
+ doins -r boost-build.jam bootstrap.jam build-system.jam site-config.jam user-config.jam \
+ build kernel options tools util || die
+
+ dodoc changes.txt hacking.txt release_procedure.txt \
+ notes/build_dir_option.txt notes/relative_source_paths.txt
+
+ if use examples ; then
+ insinto /usr/share/doc/${PF}
+ doins -r example
+ fi
+}
+
+src_test() {
+ cd engine/test
+ ./test.sh || die "tests failed"
+}
@@ -0,0 +1,25 @@
+diff --git a/tools/jam/src/build.jam b/tools/jam/src/build.jam
+index e30e854..7b397a3 100644
+--- a/tools/jam/src/build.jam
++++ b/tools/jam/src/build.jam
+@@ -2,6 +2,20 @@
+ #~ Distributed under the Boost Software License, Version 1.0.
+ #~ (See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt)
+
++# Clean env vars of any "extra" empty values.
++for local v in ARGV CC CFLAGS
++{
++ local values ;
++ for local x in $($(v))
++ {
++ if $(x) != ""
++ {
++ values += $(x) ;
++ }
++ }
++ $(v) = $(values) ;
++}
++
+ # Platform related specifics.
+ if $(NT) { rule .path { return "$(<:J=\\)" ; } ./ = "/" ; }
+ else if $(OS2) { rule .path { return "$(<:J=\\)" ; } ./ = "/" ; }

0 comments on commit 0a5ba45

Please sign in to comment.