sys-libs/talloc: Bump to version 2.3.1
authorLars Wendler <polynomial-c@gentoo.org>
Tue, 17 Dec 2019 13:07:36 +0000 (14:07 +0100)
committerLars Wendler <polynomial-c@gentoo.org>
Tue, 17 Dec 2019 13:49:58 +0000 (14:49 +0100)
Package-Manager: Portage-2.3.82, Repoman-2.3.20
Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
sys-libs/talloc/Manifest
sys-libs/talloc/talloc-2.3.1.ebuild [new file with mode: 0644]

index 73df2b9e2e12429408f2578be05f9986050b90ee..9906ffdb4b69246ce2a6cbdb8cdc8cf7b3992f42 100644 (file)
@@ -3,3 +3,4 @@ DIST talloc-2.1.16.tar.gz 634906 BLAKE2B 5f9f2e5ad53944d9a7b5bdb990aa6ab65a3f0d9
 DIST talloc-2.1.9.tar.gz 440335 BLAKE2B dde37d99b3cfb63209cdb832444f0416b7c05151cec537e220e13b1148d59b89fb712b4211e078b23f1c6608c8be6df6055d5f394b091ccdea3966c04cbb73be SHA512 a8f051bb15aba769ca286acad0946605d0053b0d149b4da2e6ecc333345f3e603d13a7f062452ae0f165615a4170ebdd7f41fc1b46c7a360000d5308bc304cbb
 DIST talloc-2.2.0.tar.gz 633467 BLAKE2B efdb53dbd4d43ce5d682faec01fb53d9c4b5dd7e97cf125e12661e7432bb968f577416cccbd8ee5003811bdd03dcc949b2e7a06312c497fb9eef54667209a653 SHA512 e762c6443ff2c0c35a9dbf7ac6e64a9182c04a218ad0f26fd67ac9620d9ae26d68b8dd2b21ff37e1df0e53748c84bece27890c5c4939eaeb61c502a698802388
 DIST talloc-2.3.0.tar.gz 642364 BLAKE2B 148ad3b478617c34c16c2ef454796a5dc918fc0a3e91bd965943ba66860b9b7df21fd2b69f5481f46a712a55a8f1a5e39db9f4ac779896d17d090290292b2ed6 SHA512 f0020d83520ea24711040c44600180fabae7b0e0668a961a66f5d4f77d89b09d799ddadf781ee2d044ad059b2d6a2e5232068fd77b300a8366592c0ce2289837
+DIST talloc-2.3.1.tar.gz 638878 BLAKE2B 3d014a47639434c65f5dda2c51da3c6c28d5d60dbc9afdaca27b8ec903cde3433a8fa4ca33305750ff60911f7e43171d0d932d98c2d30ea38494aa532d6d9626 SHA512 064fc39a9aaace6e0209f3251c8ff198d8a318b4cf4198006ff9892ca6e15e7d817b2fda43e0444fbbf04d2c3e70d06523dff5d57cbb796d27317ef4759e062e
diff --git a/sys-libs/talloc/talloc-2.3.1.ebuild b/sys-libs/talloc/talloc-2.3.1.ebuild
new file mode 100644 (file)
index 0000000..b1b22fe
--- /dev/null
@@ -0,0 +1,96 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python3_{5,6,7,8} )
+PYTHON_REQ_USE="threads(+)"
+
+inherit waf-utils python-single-r1 multilib multilib-minimal
+
+DESCRIPTION="Samba talloc library"
+HOMEPAGE="https://talloc.samba.org/"
+SRC_URI="https://www.samba.org/ftp/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-3 LGPL-3+ LGPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos ~sparc-solaris ~x64-solaris"
+IUSE="compat +python"
+
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+RDEPEND="!elibc_FreeBSD? (
+                       !elibc_SunOS? (
+                               !elibc_Darwin? (
+                                       dev-libs/libbsd[${MULTILIB_USEDEP}]
+                               )
+                       )
+               )
+       python? ( ${PYTHON_DEPS} )
+       !!<sys-libs/talloc-2.0.5"
+DEPEND="${RDEPEND}
+       sys-devel/gettext
+       dev-libs/libxslt
+       ${PYTHON_DEPS}"
+
+WAF_BINARY="${S}/buildtools/bin/waf"
+
+RESTRICT="test"
+
+MULTILIB_WRAPPED_HEADERS=(
+       # python goes only for native
+       /usr/include/pytalloc.h
+)
+
+pkg_setup() {
+       # try to turn off distcc and ccache for people that have a problem with it
+       export DISTCC_DISABLE=1
+       export CCACHE_DISABLE=1
+
+       python-single-r1_pkg_setup
+}
+
+src_prepare() {
+       default
+
+       # what would you expect of waf? i won't even waste time trying.
+       multilib_copy_sources
+}
+
+multilib_src_configure() {
+       local extra_opts=(
+               $(usex compat --enable-talloc-compat1 '')
+               $(multilib_native_usex python '' --disable-python)
+               $([[ ${CHOST} == *-solaris* ]] && echo '--disable-symbol-versions')
+       )
+       waf-utils_src_configure "${extra_opts[@]}"
+}
+
+multilib_src_compile() {
+       waf-utils_src_compile
+}
+
+multilib_src_install() {
+       waf-utils_src_install
+
+       # waf is stupid, and no, we can't fix the build-system, since it's provided
+       # as a brilliant binary blob thats decompressed on the fly
+       if [[ ${CHOST} == *-darwin* ]] ; then
+               install_name_tool \
+                       -id "${EPREFIX}"/usr/$(get_libdir)/libtalloc.2.dylib \
+                       "${ED}"/usr/$(get_libdir)/libtalloc.2.0.5.dylib || die
+               if use python ; then
+                       install_name_tool \
+                               -id "${EPREFIX}"/usr/$(get_libdir)/libpytalloc-util.2.dylib \
+                               "${ED}"/usr/$(get_libdir)/libpytalloc-util.2.0.5.dylib || die
+                       install_name_tool \
+                               -change "${S}/bin/default/libtalloc.dylib" \
+                                       "${EPREFIX}"/usr/$(get_libdir)/libtalloc.2.dylib \
+                               "${ED}"/usr/$(get_libdir)/libpytalloc-util.2.0.5.dylib || die
+                       install_name_tool \
+                               -change "${S}/bin/default/libtalloc.dylib" \
+                                       "${EPREFIX}"/usr/$(get_libdir)/libtalloc.2.dylib \
+                               "${D}"$(python_get_sitedir)/talloc.bundle || die
+               fi
+       fi
+}