Gentoo Archives: gentoo-commits

From: Lars Wendler <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-libs/talloc/
Date: Fri, 29 Jul 2016 12:18:19
Message-Id: 1469794666.424228c59be974834cc3b93ab6a413aedc8ae8c4.polynomial-c@gentoo
1 commit: 424228c59be974834cc3b93ab6a413aedc8ae8c4
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jul 29 09:35:05 2016 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Fri Jul 29 12:17:46 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=424228c5
7
8 sys-libs/talloc: Bump to version 2.1.8
9
10 Package-Manager: portage-2.3.0
11 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
12
13 sys-libs/talloc/Manifest | 1 +
14 sys-libs/talloc/talloc-2.1.8.ebuild | 97 +++++++++++++++++++++++++++++++++++++
15 2 files changed, 98 insertions(+)
16
17 diff --git a/sys-libs/talloc/Manifest b/sys-libs/talloc/Manifest
18 index b876495..9387798 100644
19 --- a/sys-libs/talloc/Manifest
20 +++ b/sys-libs/talloc/Manifest
21 @@ -1,3 +1,4 @@
22 DIST talloc-2.1.5.tar.gz 436193 SHA256 3833e750cf0b8c3439186cba38800cba9e26adfbce10ee98ba709c24eb1cdddd SHA512 b938d67fcf4c6618f1149b4ec665957a604e3b07ee26e96ed36d94312db8f56b50498f69f9a07782f7f10a25047604e32b0d1786e1051d5f36b696c2755f8741 WHIRLPOOL 4cbdd527fb1adfe09052b93b38227f6e01f8aa86920aa093b7aa9a0ca63ad03f1ddcc148c996c487c55b1ba6e681b185d1df0311ed388ef9a8e6ab35c4b111ab
23 DIST talloc-2.1.6.tar.gz 436983 SHA256 3b8e1a50bacb359d99942e0dd9941cef779ae4b5eb20f138873bd8270cb1d47b SHA512 d872780d7ea13757ddb5640c0de5d5c013a9669d07820e9f95b32c460854a4d9327501816a210f33db434b69218a266a6532d5b89fcb6ca84ede90908e3f95c6 WHIRLPOOL 875424e1f84fe28d14b9272758f751ca4c75a38c4fab728f5f8beb1f35052c4f8abfa2a67856120136ea8f9b78d58339e9114f16998c710dfec919b43fe320aa
24 DIST talloc-2.1.7.tar.gz 437091 SHA256 19154e728e48d29c7398f470b0a59d093edc836156b41ffe20d247d6ec9fa006 SHA512 338353c11ba572edece25d34a00dad3507e8c92670ed2e015e1907662a24143926ccc4b20689f61b2c80bfc8580f6ea17f3eb923cc503ea93fdf034cca3a7d88 WHIRLPOOL 68a433ac908241f834f2c6ffc3828f693c8f252be2b3630bc9fe3b17945e60aa03515b7a2a6018bb286f14fec1894f9db62df2a31b7e37de8aa31afc9c726cfb
25 +DIST talloc-2.1.8.tar.gz 438490 SHA256 22d14911164d4de67ff76b5269fa5250d01f78c955bc77e28615350996877130 SHA512 8e905c369c74387de21e8d3126cda322a4df2bdb056d3a404de20587e009f63eb16ac673976b43dd399838609aabfea49c38f628adebed19ae7362ed4f0cd121 WHIRLPOOL 7b3b64ef93067d67ec0d4b110aa404c49017c78ac62b644580621f368ad82aed057039d62e03c5a9ae7776ac40d46e1d89f83dc7f7584d48f469a50ee79d98aa
26
27 diff --git a/sys-libs/talloc/talloc-2.1.8.ebuild b/sys-libs/talloc/talloc-2.1.8.ebuild
28 new file mode 100644
29 index 0000000..ed4832e
30 --- /dev/null
31 +++ b/sys-libs/talloc/talloc-2.1.8.ebuild
32 @@ -0,0 +1,97 @@
33 +# Copyright 1999-2016 Gentoo Foundation
34 +# Distributed under the terms of the GNU General Public License v2
35 +# $Id$
36 +
37 +EAPI=6
38 +
39 +PYTHON_COMPAT=( python2_7 )
40 +PYTHON_REQ_USE="threads"
41 +
42 +inherit waf-utils python-single-r1 multilib multilib-minimal
43 +
44 +DESCRIPTION="Samba talloc library"
45 +HOMEPAGE="http://talloc.samba.org/"
46 +SRC_URI="http://samba.org/ftp/${PN}/${P}.tar.gz"
47 +
48 +LICENSE="GPL-3 LGPL-3+ LGPL-2 BSD"
49 +SLOT="0"
50 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~x64-macos ~sparc-solaris"
51 +IUSE="compat +python"
52 +
53 +REQUIRED_USE="${PYTHON_REQUIRED_USE}"
54 +
55 +RDEPEND="python? ( ${PYTHON_DEPS} )
56 + !!<sys-libs/talloc-2.0.5
57 + abi_x86_32? (
58 + !<=app-emulation/emul-linux-x86-baselibs-20140508-r1
59 + !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
60 + )"
61 +DEPEND="${RDEPEND}
62 + sys-devel/gettext
63 + dev-libs/libxslt
64 + ${PYTHON_DEPS}"
65 +
66 +WAF_BINARY="${S}/buildtools/bin/waf"
67 +
68 +RESTRICT="test"
69 +
70 +MULTILIB_WRAPPED_HEADERS=(
71 + # python goes only for native
72 + /usr/include/pytalloc.h
73 +)
74 +
75 +pkg_setup() {
76 + # try to turn off distcc and ccache for people that have a problem with it
77 + export DISTCC_DISABLE=1
78 + export CCACHE_DISABLE=1
79 +
80 + python-single-r1_pkg_setup
81 +}
82 +
83 +src_prepare() {
84 + default
85 +
86 + # what would you expect of waf? i won't even waste time trying.
87 + multilib_copy_sources
88 +}
89 +
90 +multilib_src_configure() {
91 + local extra_opts=()
92 +
93 + use compat && extra_opts+=( --enable-talloc-compat1 )
94 + if ! multilib_is_native_abi || ! use python; then
95 + extra_opts+=( --disable-python )
96 + fi
97 +
98 + waf-utils_src_configure \
99 + "${extra_opts[@]}"
100 +}
101 +
102 +multilib_src_compile() {
103 + waf-utils_src_compile
104 +}
105 +
106 +multilib_src_install() {
107 + waf-utils_src_install
108 +
109 + # waf is stupid, and no, we can't fix the build-system, since it's provided
110 + # as a brilliant binary blob thats decompressed on the fly
111 + if [[ ${CHOST} == *-darwin* ]] ; then
112 + install_name_tool \
113 + -id "${EPREFIX}"/usr/$(get_libdir)/libtalloc.2.dylib \
114 + "${ED}"/usr/$(get_libdir)/libtalloc.2.0.5.dylib || die
115 + if use python ; then
116 + install_name_tool \
117 + -id "${EPREFIX}"/usr/$(get_libdir)/libpytalloc-util.2.dylib \
118 + "${ED}"/usr/$(get_libdir)/libpytalloc-util.2.0.5.dylib || die
119 + install_name_tool \
120 + -change "${S}/bin/default/libtalloc.dylib" \
121 + "${EPREFIX}"/usr/$(get_libdir)/libtalloc.2.dylib \
122 + "${ED}"/usr/$(get_libdir)/libpytalloc-util.2.0.5.dylib || die
123 + install_name_tool \
124 + -change "${S}/bin/default/libtalloc.dylib" \
125 + "${EPREFIX}"/usr/$(get_libdir)/libtalloc.2.dylib \
126 + "${D}"$(python_get_sitedir)/talloc.bundle || die
127 + fi
128 + fi
129 +}