diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2018-03-17 16:57:27 +0100 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2018-03-17 17:00:42 +0100 |
commit | afd45b54b5a9557e8ecca1695e6a4bbf77a610a3 (patch) | |
tree | 7d1e83c514da6167a2c922e424f04a2ac098254d /main/tevent | |
parent | f17583e33bc817c6f799432285c6ea9ebac49524 (diff) | |
download | aports-afd45b54b5a9557e8ecca1695e6a4bbf77a610a3.tar.bz2 aports-afd45b54b5a9557e8ecca1695e6a4bbf77a610a3.tar.xz |
main/tevent: build also for Python 3, add subpackage py3-
Diffstat (limited to 'main/tevent')
-rw-r--r-- | main/tevent/APKBUILD | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/main/tevent/APKBUILD b/main/tevent/APKBUILD index ffe5ad745b..3629db2da3 100644 --- a/main/tevent/APKBUILD +++ b/main/tevent/APKBUILD @@ -6,11 +6,10 @@ pkgdesc="The tevent library" url="http://tevent.samba.org/" arch="all" license="LGPL-3.0-or-later" -makedepends="libtirpc-dev python2-dev talloc-dev" +makedepends="libtirpc-dev python2-dev python3-dev talloc-dev" replaces="samba" -subpackages="$pkgname-dev py2-$pkgname:_py2" +subpackages="$pkgname-dev py2-$pkgname:_py2 py3-$pkgname:_py3" source="http://samba.org/ftp/tevent/tevent-$pkgver.tar.gz" - builddir="$srcdir/$pkgname-$pkgver" build() { @@ -25,7 +24,8 @@ build() { --localstatedir=/var \ --disable-rpath \ --bundled-libraries=NONE \ - --without-gettext + --without-gettext \ + --extra-python=/usr/bin/python3 make } @@ -48,4 +48,11 @@ _py2() { mv "$pkgdir"/usr/lib/python2* "$subpkgdir"/usr/lib/ } +_py3() { + pkgdesc="Python 3 binding for the tevent library" + + mkdir -p "$subpkgdir"/usr/lib + mv "$pkgdir"/usr/lib/python3* "$subpkgdir"/usr/lib/ +} + sha512sums="bca9db9bcf142ba68b207180d19414dddb89a069a4f040383069c8af0df5bb184ca219293c4a1e7b0bc241b9a1ea3d414f8284278ad3a5f0383b9e432450167b tevent-0.9.36.tar.gz" |