Changeset - 881a7bdbaaab
[Not reviewed]
default
2 5 2
Nathan Brink (binki) - 15 years ago 2010-03-04 11:18:16
ohnobinki@ohnopublishing.net
dev-util/boost-build: Sync with portage for boost-build-1.42.0, fix syntax, remove old stuff.
9 files changed with 172 insertions and 187 deletions:
0 comments (0 inline, 0 general)
dev-util/boost-build/ChangeLog
Show inline comments
 
# ChangeLog for dev-util/boost-build
 
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
 
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
 
# $Header: /var/cvsroot/gentoo-x86/dev-util/boost-build/ChangeLog,v 1.45 2009/12/02 15:26:48 djc Exp $
 

	
 
  04 Mar 2010; Nathan Phillip Brink (ohnobinki)
 
  <ohnobinki@ohnopublishing.net> -boost-build-1.34.1.ebuild,
 
  -boost-build-1.35.0-r1.ebuild, boost-build-1.39.0.ebuild,
 
  boost-build-1.40.0.ebuild, boost-build-1.41.0.ebuild,
 
  +files/boost-1.42-fix-mpich2-detection.patch, +boost-build-1.42.0.ebuild:
 
  Sync up with portage. Remove pointless old ebuilds. Remove extraneous die
 
  after epatch invocations.
 

	
 
  06 Dec 2009; Nathan Phillip Brink (ohnobinki)
 
  <ohnobinki@ohnopublishing.net> boost-build-1.39.0.ebuild,
 
  boost-build-1.40.0.ebuild, boost-build-1.41.0.ebuild,
dev-util/boost-build/Manifest
Show inline comments
 
AUX 1.35.0-fix_broken_icu_build.patch 1752 RMD160 0e7ee05c17d76e29abff915e84181361e4095b89 SHA1 273de1fa957091bf3c0d041f54aec9797810f3cf SHA256 71d858236c47b835947d996d3caf0a1de96ace267140d52dd09594db3a96729d
 
AUX boost-1.41-fix-mpich2-detection.patch 1378 RMD160 fd81c6a03dd8bf2d6afdaf3fa4957ee0ff1f6e10 SHA1 bbe5ba6fb554ab89e5fa4649f8a44ad7cd1dfa80 SHA256 8e1adadb1345ff045930bbd1c6d9d6e4b06462de2939021bf9e3a3fe1c9d6100
 
AUX boost-1.42-fix-mpich2-detection.patch 1378 RMD160 fd81c6a03dd8bf2d6afdaf3fa4957ee0ff1f6e10 SHA1 bbe5ba6fb554ab89e5fa4649f8a44ad7cd1dfa80 SHA256 8e1adadb1345ff045930bbd1c6d9d6e4b06462de2939021bf9e3a3fe1c9d6100
 
AUX boost-build-flags-unescape.patch 1623 RMD160 e5c1f47feeaec54279ce2adc261a842aaf05d47f SHA1 fac327ee9a4d0ad39069be0f933d976704d67700 SHA256 712325f51559ace61f78f3094a6b105ca08edd62fd5ced3de59b34432a54beca
 
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_40_0.tar.bz2 32068759 RMD160 dabcc7442b73048095aa3037917ea0713782781f SHA1 9dbaa06ce1d99ce310011c2eaf816ecb003b3096 SHA256 36cf4a239b587067a4923fdf6e290525a14c3af29829524fa73f3dec6841530c
 
DIST boost_1_41_0.tar.bz2 33348161 RMD160 a604ef5a6f6f5bf50be59206c8534258ab431aea SHA1 31134e28866b90c39ca4a903c263e036bb25550c SHA256 1ef94e6749eaf13318284b4f629be063544c7015b45e38113b975ac1945cc726
 
EBUILD boost-build-1.34.1.ebuild 2411 RMD160 7be71b552599041c34edf127d3f5dcb1b9095704 SHA1 bbc8007bcdd882b373ce72e8f4aa79c51c6d588d SHA256 5b80a98674bf5e7a192910b49e2c24429a56021b5b0e7d210ad936849724a491
 
EBUILD boost-build-1.35.0-r1.ebuild 2739 RMD160 94abd6846df6125a847a5e179be257df8f5a7828 SHA1 d58da24de89cd40f31ab7d7d6874e1e96a7bc221 SHA256 1b83e4c6744f3e9c2d1c90aa71b64c2c31a86f78e8b6bfdac6c1b7d34931e6ba
 
DIST boost_1_42_0.tar.bz2 33426755 RMD160 90cea6aaa35f22b97e6eb3f5879ca9fe21098349 SHA1 3ce3bb1a1bed504635287017f9e628597b409e7b SHA256 4b1eb95bd250ce15ac66435d6167f225b072b0d3a7eb72477a31847a9ca9e609
 
EBUILD boost-build-1.35.0-r2.ebuild 3098 RMD160 8631871399c9d458d0a8ec1022b5c527b88bfdd9 SHA1 e9cab38a2cb6fe488e8be8bca5cb4441bc5601e6 SHA256 f73affff86e7c8419d00c783865d3e142357fa0f746816de0ba1dec8bea2c3cd
 
EBUILD boost-build-1.36.0.ebuild 3074 RMD160 8d1842fef67b1d548e17c83f71b5e87dc816d203 SHA1 c0559c90f553041e8385918ae9e3bf882ddade6f SHA256 a5905e5e8b3bae14348d1dae2aff3ad9fe806c2803a4eb8767fbffa12ad4b8d9
 
EBUILD boost-build-1.37.0.ebuild 3074 RMD160 b820f5d6fb4900415d4b2b9a0d0210259ca4ce43 SHA1 549cc53a910e3a136f4b89cbe160ef2a22b5d12c SHA256 897dada82140ab90f2e070e47eda9218212a6a42bec647f6dd79804dfeeeb1af
 
EBUILD boost-build-1.39.0.ebuild 3172 RMD160 d807bacc9ad6364b6ae11b12b6a64dc435e98c39 SHA1 80b478e2767ad6b074fc3ea2ca8771dc1ead484f SHA256 b4c8f9ad079da23b5f51e24fc58c7347bbe15e3c53efe66006cb56e5b979ee45
 
EBUILD boost-build-1.40.0.ebuild 3172 RMD160 5ca38906f201d660e0d7a334ef7f7396d9b1c30a SHA1 9bbe04e0941b87d3e0a8ff3f03ae48f50fde00f6 SHA256 09e35bf207d7c71c72871470e66ed88d211cab24014c9134e33719714b8ea474
 
EBUILD boost-build-1.41.0.ebuild 3364 RMD160 761eeb62783e8c6a6d68ae9fed4b665a3f1e847b SHA1 92c403e53a841b649fb24ef0e9e9d7e481a4cb1d SHA256 52b62b4467b8a02600ebcdec48217f4d1bcfeabb7dbc16216e81bb213bebb0fd
 
MISC ChangeLog 6431 RMD160 567e85b648991059e58999f3aa74cfc02cd355f8 SHA1 49b9e582dd0b313a458163f540346e1767442aa5 SHA256 d31cb735c446342bd60245f97ed9637f0e9f3cf6e280de9f00aecf4c03120b33
 
EBUILD boost-build-1.39.0.ebuild 3165 RMD160 a9891415dce5943e73cefbd34e4d2b3e33f15ae3 SHA1 1a0694ecdafd71f303be899b00b6bb5b1007c349 SHA256 31ba3dc2056a3a444b2f9dc18621be3dc00bc4efc182a82b4d38800890415e1d
 
EBUILD boost-build-1.40.0.ebuild 3165 RMD160 527f39268f53cb6ba5510031ae0d721525063088 SHA1 7e367f19d289c10e7d54ba626ca47df9ca92a83c SHA256 1dcc7a9a6febd347e0ad39dd8615cb61abf6e28ae29bf71c2a4166a3b61cb4aa
 
EBUILD boost-build-1.41.0.ebuild 3357 RMD160 5013196bac61ad47bcce79fa56b9c0f41a9c2eea SHA1 c7dd164b047ddf4cbc6492b28c66d7d89abd2fb5 SHA256 0be4aff2cb8497b65400730d9526cbdb84106b9b68976f72b9737c5e6d1177a2
 
EBUILD boost-build-1.42.0.ebuild 3357 RMD160 dee3c40c4235dede9ff945b8585231dab90a5edd SHA1 97e68f2842a5139fa7320904e4cef91b96b3d435 SHA256 d9bbe0e2e3914157a0b4e5012767ba2b1ade24945c16ac59f5f7d8e1191365c2
 
MISC ChangeLog 6837 RMD160 decb4987e6657356db2e31bf5f6ee34d01d33a7b SHA1 ddf4733fb26e8a8f902e215a650d2f87e3e82903 SHA256 4cfde03d89676212a54f40960a808f8addb8f0e931d7b801c4b393446da758da
 
MISC ChangeLog.orig 6791 RMD160 933ae24b1c2b68de4df8f5c55141016e93f02204 SHA1 625720839c9c33bae8f2b16cafac53d532a35e29 SHA256 8aa221646f14c017ed738b43771f5af6e82777218a93a27a2ddeb5b125a4c08f
 
MISC metadata.xml 463 RMD160 34d5c35b8b90d95c575275d7c70b9de878a0f041 SHA1 e0a4a54df29c5c50dc32f0c98388d7d24001b522 SHA256 8c386e08bcf70f91461693c7a38cb08fed8232dd0775886be0b801bf6bdb4191
dev-util/boost-build/boost-build-1.34.1.ebuild
Show inline comments
 
deleted file
dev-util/boost-build/boost-build-1.35.0-r1.ebuild
Show inline comments
 
deleted file
dev-util/boost-build/boost-build-1.39.0.ebuild
Show inline comments
 
# Copyright 1999-2009 Gentoo Foundation
 
# Copyright 1999-2010 Gentoo Foundation
 
# Distributed under the terms of the GNU General Public License v2
 
# $Header: /var/cvsroot/gentoo-x86/dev-util/boost-build/boost-build-1.39.0.ebuild,v 1.2 2009/10/24 09:20:57 vapier Exp $
 

	
 
@@ -30,7 +30,7 @@ src_unpack() {
 

	
 
src_prepare() {
 
	# bug 293652
 
	epatch "${FILESDIR}"/boost-build-flags-unescape.patch || die
 
	epatch "${FILESDIR}"/boost-build-flags-unescape.patch
 

	
 
	# Remove stripping option
 
	cd "${S}/jam/src"
dev-util/boost-build/boost-build-1.40.0.ebuild
Show inline comments
 
# Copyright 1999-2009 Gentoo Foundation
 
# Copyright 1999-2010 Gentoo Foundation
 
# Distributed under the terms of the GNU General Public License v2
 
# $Header: /var/cvsroot/gentoo-x86/dev-util/boost-build/boost-build-1.40.0.ebuild,v 1.2 2009/10/24 09:20:57 vapier Exp $
 

	
 
@@ -30,7 +30,7 @@ src_unpack() {
 

	
 
src_prepare() {
 
	# bug 293652
 
	epatch "${FILESDIR}"/boost-build-flags-unescape.patch || die
 
	epatch "${FILESDIR}"/boost-build-flags-unescape.patch
 

	
 
	# Remove stripping option
 
	cd "${S}/jam/src"
dev-util/boost-build/boost-build-1.41.0.ebuild
Show inline comments
 
# Copyright 1999-2009 Gentoo Foundation
 
# Copyright 1999-2010 Gentoo Foundation
 
# Distributed under the terms of the GNU General Public License v2
 
# $Header: /var/cvsroot/gentoo-x86/dev-util/boost-build/boost-build-1.41.0.ebuild,v 1.1 2009/12/02 15:25:01 djc Exp $
 

	
 
@@ -35,7 +35,7 @@ src_unpack() {
 

	
 
src_prepare() {
 
	# bug 293652
 
	epatch "${FILESDIR}"/boost-build-flags-unescape.patch || die
 
	epatch "${FILESDIR}"/boost-build-flags-unescape.patch
 

	
 
	epatch "${FILESDIR}/boost-1.41-fix-mpich2-detection.patch"
 

	
dev-util/boost-build/boost-build-1.42.0.ebuild
Show inline comments
 
new file 100644
 
# Copyright 1999-2010 Gentoo Foundation
 
# Distributed under the terms of the GNU General Public License v2
 
# $Header: /var/cvsroot/gentoo-x86/dev-util/boost-build/boost-build-1.42.0.ebuild,v 1.1 2010/03/03 12:32:08 djc Exp $
 

	
 
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"
 

	
 
pkg_setup() {
 
	ewarn "Compilation of boost-build is known to break if {C,LD}FLAGS contain"
 
	ewarn "extra white space (bug 293652)"
 
}
 

	
 
src_unpack() {
 
	tar xjpf "${DISTDIR}/${A}" boost_${MY_PV}/tools/{jam,build/v2} || die
 
}
 

	
 
src_prepare() {
 
	# bug 293652
 
	epatch "${FILESDIR}"/boost-build-flags-unescape.patch
 

	
 
	epatch "${FILESDIR}/boost-1.42-fix-mpich2-detection.patch"
 

	
 
	# Remove stripping option
 
	cd "${S}/jam/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}/build/v2"
 
	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 jam/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
 
		LIBS=${LDFLAGS} CC=$(tc-getCC) ./build.sh ${toolset} \
 
			$(use_with python) || die "building bjam failed"
 
	fi
 
}
 

	
 
src_install() {
 
	newbin jam/src/bin.*/bjam bjam-${MAJOR_PV}
 

	
 
	cd "${S}/build/v2"
 
	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 jam/test
 
	./test.sh || die "tests failed"
 
}
dev-util/boost-build/files/boost-1.42-fix-mpich2-detection.patch
Show inline comments
 
new file 100644
 
Index: tools/build/v2/tools/mpi.jam
 
===================================================================
 
--- tools/build/v2/tools/mpi.jam        (revision 57744)
 
+++ tools/build/v2/tools/mpi.jam        (working copy)
 
@@ -156,14 +156,27 @@
 
         # into a feature.
 
         local match = [ MATCH "^(-.)(.*)" : $(cmdline) ] ;
 
         local matched ;
 
-        if $(match) && $(match[2]) {
 
+        if $(match) && $(match[2]) {
 
            local prefix = $(match[1]) ;
 
            if $(feature_kinds$(prefix)) {
 
                local name = $(feature_kinds$(prefix)) ;
 
                local add = [ add_feature $(prefix) $(name) $(cmdline) ] ;
 

	
 
                if $(add) {
 
-                  result += $(add[1]) ;
 
+
 
+                  if $(add[1]) = <find-shared-library>pthread
 
+                  {
 
+                      # Uhm. It's not really nice that this MPI implementation
 
+                      # uses -lpthread as opposed to -pthread. We do want to
 
+                      # set <threading>multi, instead of -lpthread.
 
+                      result += "<threading>multi" ;
 
+                      MPI_EXTRA_REQUIREMENTS += "<threading>multi" ;
 
+                  }
 
+                  else
 
+                  {
 
+                      result += $(add[1]) ;
 
+                  }
 
+
 
                   cmdline = $(add[2]) ;
 
                   matched = yes ;
 
                }
 

	
0 comments (0 inline, 0 general)