Gentoo Archives: gentoo-commits

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