Gentoo Archives: gentoo-commits

From: "Markos Chandras (hwoarang)" <hwoarang@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-util/boost-build: boost-build-1.47.0.ebuild ChangeLog
Date: Mon, 26 Sep 2011 11:02:01
Message-Id: 20110926110151.E318520036@flycatcher.gentoo.org
1 hwoarang 11/09/26 11:01:51
2
3 Modified: ChangeLog
4 Added: boost-build-1.47.0.ebuild
5 Log:
6 Version bump. Bug #376937
7
8 (Portage version: 2.2.0_alpha55/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.77 dev-util/boost-build/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/boost-build/ChangeLog?rev=1.77&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/boost-build/ChangeLog?rev=1.77&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/boost-build/ChangeLog?r1=1.76&r2=1.77
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-util/boost-build/ChangeLog,v
20 retrieving revision 1.76
21 retrieving revision 1.77
22 diff -u -r1.76 -r1.77
23 --- ChangeLog 16 Sep 2011 16:53:31 -0000 1.76
24 +++ ChangeLog 26 Sep 2011 11:01:51 -0000 1.77
25 @@ -1,6 +1,12 @@
26 # ChangeLog for dev-util/boost-build
27 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-util/boost-build/ChangeLog,v 1.76 2011/09/16 16:53:31 jer Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-util/boost-build/ChangeLog,v 1.77 2011/09/26 11:01:51 hwoarang Exp $
30 +
31 +*boost-build-1.47.0 (26 Sep 2011)
32 +
33 + 26 Sep 2011; Markos Chandras <hwoarang@g.o>
34 + +boost-build-1.47.0.ebuild:
35 + Version bump. Bug #376937
36
37 16 Sep 2011; Jeroen Roovers <jer@g.o> boost-build-1.46.1.ebuild:
38 Stable for HPPA (bug #377805).
39
40
41
42 1.1 dev-util/boost-build/boost-build-1.47.0.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/boost-build/boost-build-1.47.0.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/boost-build/boost-build-1.47.0.ebuild?rev=1.1&content-type=text/plain
46
47 Index: boost-build-1.47.0.ebuild
48 ===================================================================
49 # Copyright 1999-2011 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/dev-util/boost-build/boost-build-1.47.0.ebuild,v 1.1 2011/09/26 11:01:51 hwoarang Exp $
52
53 EAPI="2"
54
55 inherit eutils flag-o-matic toolchain-funcs versionator
56
57 MY_PV=$(replace_all_version_separators _)
58 MAJOR_PV="$(replace_all_version_separators _ $(get_version_component_range 1-2))"
59
60 DESCRIPTION="A system for large project software construction, which is simple to use and powerful."
61 HOMEPAGE="http://www.boost.org/doc/tools/build/index.html"
62 SRC_URI="mirror://sourceforge/boost/boost_${MY_PV}.tar.bz2"
63 LICENSE="Boost-1.0"
64 SLOT="$(get_version_component_range 1-2)"
65 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
66 IUSE="examples python"
67
68 DEPEND="!<dev-libs/boost-1.34.0
69 !<=dev-util/boost-build-1.35.0-r1
70 python? ( dev-lang/python )"
71 RDEPEND="${DEPEND}"
72
73 S="${WORKDIR}/boost_${MY_PV}/tools/build/v2"
74
75 src_unpack() {
76 tar xjpf "${DISTDIR}/${A}" boost_${MY_PV}/tools/build/v2 || die "unpacking tar failed"
77 }
78
79 src_prepare() {
80 # TODO:
81 # epatch "${FILESDIR}/boost-1.42-fix-mpich2-detection.patch"
82
83 cd "${S}/engine"
84 epatch "${FILESDIR}/${PN}-1.42-env-whitespace.patch" # 293652
85
86 # Remove stripping option
87 cd "${S}/engine"
88 sed -i -e 's|-s\b||' \
89 build.jam || die "sed failed"
90
91 # Force regeneration
92 rm jambase.c || die
93
94 # This patch allows us to fully control optimization
95 # and stripping flags when bjam is used as build-system
96 # We simply extend the optimization and debug-symbols feature
97 # with empty dummies called 'none'
98 cd "${S}"
99 sed -i \
100 -e 's/\(off speed space\)/\1 none/' \
101 -e 's/\(debug-symbols : on off\)/\1 none/' \
102 tools/builtin.jam || die "sed failed"
103 }
104
105 src_compile() {
106 cd engine
107 local toolset
108
109 if [[ ${CHOST} == *-darwin* ]] ; then
110 toolset=darwin
111 else
112 # Using boost's generic toolset here, which respects CC and CFLAGS
113 toolset=cc
114 fi
115
116 # For slotting
117 sed -i \
118 -e "s|/usr/share/boost-build|/usr/share/boost-build-${MAJOR_PV}|" \
119 Jambase || die "sed failed"
120
121 # The build.jam file for building bjam using a bootstrapped jam0 ignores
122 # the LDFLAGS env var (bug #209794). We have now two options:
123 # a) change the cc-target definition in build.jam to include separate compile
124 # and link targets to make it use the LDFLAGS var, or
125 # b) a simple dirty workaround by injecting the LDFLAGS in the LIBS env var
126 # (which should not be set by us).
127 if [[ -z "${LDFLAGS}" ]] ; then
128 CC=$(tc-getCC) ./build.sh ${toolset} $(use_with python) \
129 || die "building bjam failed"
130 else
131 LDFLAGS=$(echo ${LDFLAGS}) # 293652
132 LIBS=${LDFLAGS} CC=$(tc-getCC) ./build.sh ${toolset} \
133 $(use_with python) || die "building bjam failed"
134 fi
135 }
136
137 src_install() {
138 newbin engine/bin.*/bjam bjam-${MAJOR_PV}
139 newbin engine/bin.*/b2 b2-${MAJOR_PV}
140
141 cd "${S}"
142 insinto /usr/share/boost-build-${MAJOR_PV}
143 doins -r boost-build.jam bootstrap.jam build-system.jam site-config.jam user-config.jam \
144 build kernel options tools util || die
145
146 dodoc changes.txt hacking.txt release_procedure.txt \
147 notes/build_dir_option.txt notes/relative_source_paths.txt
148
149 if use examples ; then
150 insinto /usr/share/doc/${PF}
151 doins -r example
152 fi
153 }
154
155 src_test() {
156 cd test/engine
157
158 FIXME: Replace the ls call with the proper way of doing this.
159
160 BJAM_BIN=$(ls ../../engine/bin.*/b2)
161 ${BJAM_BIN} -f test.jam "-sBJAM=${BJAM_BIN}" || die "tests failed"
162 }