Gentoo Archives: gentoo-commits

From: Patrick McLean <chutzpah@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/boost-build/
Date: Tue, 31 Jul 2018 22:27:32
Message-Id: 1533075964.df61da25757debcf3343391b127ee365503eab69.chutzpah@gentoo
1 commit: df61da25757debcf3343391b127ee365503eab69
2 Author: Patrick McLean <chutzpah <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jul 31 22:26:04 2018 +0000
4 Commit: Patrick McLean <chutzpah <AT> gentoo <DOT> org>
5 CommitDate: Tue Jul 31 22:26:04 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=df61da25
7
8 dev-util/boost-build: Unkeyworded version bump to 1.67.0 (bug #653878)
9
10 Bug: https://bugs.gentoo.org/653878
11 Package-Manager: Portage-2.3.44, Repoman-2.3.10
12
13 dev-util/boost-build/Manifest | 1 +
14 dev-util/boost-build/boost-build-1.67.0.ebuild | 140 +++++++++++++++++++++++++
15 2 files changed, 141 insertions(+)
16
17 diff --git a/dev-util/boost-build/Manifest b/dev-util/boost-build/Manifest
18 index 634ff7f4e4b..60ff3ef1389 100644
19 --- a/dev-util/boost-build/Manifest
20 +++ b/dev-util/boost-build/Manifest
21 @@ -2,3 +2,4 @@ DIST boost_1_62_0.tar.bz2 84513338 BLAKE2B 00f2ddf93d254183709a5e607d5cec5d135bd
22 DIST boost_1_63_0.tar.bz2 81984414 BLAKE2B 227c4432bd3ca0eb390048ec85047958fcb6ae289996501812cd8b13bf74bbe9b677d0110948265cab59a60deb36c4fc08440af74ac5a5219ea4eaea4fa6918f SHA512 c915c5f5778dee49b8e9d0a40f37f90f56fb1fdb1d8ce92d97bf48bc7bc462212487badfe4bbe30b06196d1149cfb221da12ac54e97499b0d4cb6466813bb4ad
23 DIST boost_1_65_0.tar.bz2 82597718 BLAKE2B 0080956d6ad2f14130ce4a4734b1bd1ce83d3651b226653689e02770baa83cf11811ef4e44948ff68a168d9ce5cbfaea4f758970df2b4e9faa2d410181885f5b SHA512 7142650fb8d61e3ef16ba066fc918e087f19e9bc2ad1d6a11fb10bf0d6b1b5ad05ab032f076a5233a1624b3669e952b2cc38b7dc074bbf53018e2970ee90fcdd
24 DIST boost_1_66_0.tar.bz2 85995778 BLAKE2B 9ab1fe396b10ab85d7e4084ec7abb8d785ecd892c8f51aea5a401cb565b111c256533364fe028da74ed376534889f43c5ccbdcd703cd236526ae66a064220765 SHA512 0f34075d35391d66876e5189a01a11880a79428e1b267456348ee148dba9dc3abdc74d568f1853be631d20b584b1c804b42443c266f7622164acfc10be3dab8b
25 +DIST boost_1_67_0.tar.bz2 87336566 BLAKE2B 85ea00fc2197b1bbfc35d69427c87f23ea43d7592f1c9ce66e2afcde8476bdec86f6debdac815b23de59f4665a8e0c7f1519ab66a31d39df629723bc45710058 SHA512 82bf33d7d2c3db109c9d1f12d40bc2d364c8c95262386f906ccd1a71cd71433bcc01829e968b4a13a5003cf0b50cbdf0b435a1d76530cea7bb05725c327411e8
26
27 diff --git a/dev-util/boost-build/boost-build-1.67.0.ebuild b/dev-util/boost-build/boost-build-1.67.0.ebuild
28 new file mode 100644
29 index 00000000000..aa42085c97e
30 --- /dev/null
31 +++ b/dev-util/boost-build/boost-build-1.67.0.ebuild
32 @@ -0,0 +1,140 @@
33 +# Copyright 1999-2018 Gentoo Foundation
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=7
37 +
38 +RESTRICT="test"
39 +
40 +PYTHON_COMPAT=( python2_7 )
41 +inherit eutils flag-o-matic python-single-r1 toolchain-funcs
42 +
43 +MY_PV="$(ver_rs 1- _)"
44 +
45 +DESCRIPTION="A system for large project software construction, simple to use and powerful"
46 +HOMEPAGE="http://www.boost.org/doc/tools/build/index.html"
47 +SRC_URI="https://downloads.sourceforge.net/project/boost/boost/${PV}/boost_${MY_PV}.tar.bz2"
48 +
49 +LICENSE="Boost-1.0"
50 +SLOT="0"
51 +#KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
52 +IUSE="examples python test"
53 +
54 +RDEPEND="python? ( ${PYTHON_DEPS} )
55 + !<dev-libs/boost-1.35.0
56 + !<=dev-util/boost-build-1.35.0-r1"
57 +DEPEND="${RDEPEND}
58 + test? ( sys-apps/diffutils
59 + ${PYTHON_DEPS} )"
60 +
61 +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )
62 + test? ( ${PYTHON_REQUIRED_USE} )"
63 +
64 +S="${WORKDIR}/boost_${MY_PV}/tools/build/src"
65 +
66 +PATCHES=(
67 + "${FILESDIR}/${PN}-1.48.0-disable_python_rpath.patch"
68 + "${FILESDIR}/${PN}-1.50.0-respect-c_ld-flags.patch"
69 + "${FILESDIR}/${PN}-1.49.0-darwin-gentoo-toolchain.patch"
70 + "${FILESDIR}/${PN}-1.52.0-darwin-no-python-framework.patch"
71 + "${FILESDIR}/${PN}-1.54.0-support_dots_in_python-buildid.patch"
72 + "${FILESDIR}/${PN}-1.55.0-ppc-aix.patch"
73 + "${FILESDIR}/${PN}-1.66.0-add-none-feature-options.patch"
74 +)
75 +
76 +pkg_setup() {
77 + if use python || use test; then
78 + python-single-r1_pkg_setup
79 + fi
80 +}
81 +
82 +src_unpack() {
83 + tar xojf "${DISTDIR}/${A}" boost_${MY_PV}/tools/build || die "unpacking tar failed"
84 +}
85 +
86 +src_prepare() {
87 + default
88 +
89 + pushd ../ >/dev/null || die
90 + eapply "${FILESDIR}/${PN}-1.54.0-fix-test.patch"
91 + popd >/dev/null || die
92 +
93 + # Remove stripping option
94 + # Fix python components build on multilib systems, bug #496446
95 + cd "${S}/engine" || die
96 + sed -i \
97 + -e 's|-s\b||' \
98 + -e "/libpython/s/lib ]/$(get_libdir) ]/" \
99 + build.jam || die "sed failed"
100 +
101 + # Force regeneration
102 + rm jambase.c || die
103 +
104 + # This patch allows us to fully control optimization
105 + # and stripping flags when bjam is used as build-system
106 + # We simply extend the optimization and debug-symbols feature
107 + # with empty dummies called 'none'
108 + cd "${S}" || die
109 + sed -i \
110 + -e 's/\(off speed space\)/\1 none/' \
111 + -e 's/\(debug-symbols : on off\)/\1 none/' \
112 + tools/builtin.jam || die "sed failed"
113 +}
114 +
115 +src_configure() {
116 + if use python; then
117 + # replace versions by user-selected one (TODO: fix this when slot-op
118 + # deps are available to always match the best version available)
119 + sed -i \
120 + -e "s|27 26 25 24 23 22|${EPYTHON#python}|" \
121 + engine/build.jam || die "sed failed"
122 + fi
123 +}
124 +
125 +src_compile() {
126 + cd engine || die
127 +
128 + local toolset
129 +
130 + if [[ ${CHOST} == *-darwin* ]]; then
131 + toolset=darwin
132 + else
133 + # Using boost's generic toolset here, which respects CC and CFLAGS
134 + toolset=cc
135 + fi
136 +
137 + CC=$(tc-getCC) ./build.sh ${toolset} -d+2 $(use_with python python "${EROOT%/}"/usr) || die "building bjam failed"
138 +}
139 +
140 +src_install() {
141 + dobin engine/bin.*/{bjam,b2}
142 +
143 + insinto /usr/share/boost-build
144 + doins -r "${FILESDIR}/site-config.jam" \
145 + ../boost-build.jam bootstrap.jam build-system.jam ../example/user-config.jam *.py \
146 + build kernel options tools util
147 +
148 + if ! use python; then
149 + find "${ED%/}/usr/share/boost-build" -iname "*.py" -delete || die "removing experimental python files failed"
150 + fi
151 +
152 + dodoc ../notes/{changes,release_procedure,build_dir_option,relative_source_paths}.txt
153 +
154 + if use examples; then
155 + docinto examples
156 + dodoc -r ../example/.
157 + docompress -x /usr/share/doc/${PF}/examples
158 + fi
159 +}
160 +
161 +src_test() {
162 + cd ../test || die
163 +
164 + export TMP="${T}"
165 +
166 + DO_DIFF="${PREFIX}/usr/bin/diff" ${PYTHON} test_all.py
167 +
168 + if [[ -s test_results.txt ]]; then
169 + eerror "At least one test failed: $(<test_results.txt)"
170 + die "tests failed"
171 + fi
172 +}