aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Xu (Hello71) <alex_y_xu@yahoo.ca>2021-11-24 11:35:19 -0500
committerLeo <thinkabit.ukim@gmail.com>2021-11-24 22:04:57 +0000
commit38c51882c93fb0a9515743d5218d0494ddd4d371 (patch)
tree0f4f13d1340a6ce55738365b133b0dd3bb87a35c
parent3066c16f71eced80429c93dcf207085e1a1432df (diff)
downloadaports-38c51882c93fb0a9515743d5218d0494ddd4d371.tar.gz
aports-38c51882c93fb0a9515743d5218d0494ddd4d371.tar.bz2
aports-38c51882c93fb0a9515743d5218d0494ddd4d371.tar.xz
main/newt: re-enable python (fixes #7907)
-rw-r--r--main/newt/APKBUILD15
1 files changed, 10 insertions, 5 deletions
diff --git a/main/newt/APKBUILD b/main/newt/APKBUILD
index 07e2f67e9e..45aa24f1ff 100644
--- a/main/newt/APKBUILD
+++ b/main/newt/APKBUILD
@@ -1,14 +1,14 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=newt
pkgver=0.52.21
-pkgrel=0
+pkgrel=1
pkgdesc="Redhat's Newt windowing toolkit development files"
options="!check" # No testsuite
url="https://pagure.io/newt/"
arch="all"
license="LGPL-2.0"
-makedepends="slang-dev popt-dev ncurses-dev"
-subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
+makedepends="slang-dev popt-dev python3-dev ncurses-dev"
+subpackages="$pkgname-dev $pkgname-doc $pkgname-lang py3-$pkgname:py3"
source="https://releases.pagure.org/newt/newt-$pkgver.tar.gz
fix-includes.patch
"
@@ -28,8 +28,7 @@ build() {
--host=$CHOST \
--prefix=/usr \
--without-tcl \
- --disable-nls \
- --without-python
+ --disable-nls
make RPM_OPT_FLAGS="$CFLAGS"
}
@@ -39,5 +38,11 @@ package() {
rm -f "$pkgdir"/usr/lib/*.a
}
+py3() {
+ pkgdesc="Python3 bindings for Newt windowing toolkit"
+ depends="$pkgname=$pkgver-r$pkgrel python3"
+ amove /usr/lib/python*
+}
+
sha512sums="d53d927996d17223e688bf54dccfabb2a3dc02bfe38ffc455964e86feaca3cd9f9ab5b19774433be430fa4d761cd9b6680b558f297acb86f80daeb6942f7d23c newt-0.52.21.tar.gz
ce53446eb587b79790f12f806f02999568cb49067520813ab146d1f16c71f009e86ab72d08666e483b550fdae3332b673935b8aa1a14b02f5273217fb5404611 fix-includes.patch"