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