diff options
author | Rasmus Thomsen <oss@cogitri.dev> | 2019-06-17 00:13:34 +0200 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2019-06-17 10:17:49 +0000 |
commit | a336370de87a91b55111bd37b74a8b4f51dcf30a (patch) | |
tree | a0262354de1c337016858f53a9aa22baf4166f68 | |
parent | f2ad329cc3291f5c66a6c324a27a44cfe0c42c5e (diff) | |
download | aports-a336370de87a91b55111bd37b74a8b4f51dcf30a.tar.bz2 aports-a336370de87a91b55111bd37b74a8b4f51dcf30a.tar.xz |
main/py-gobject3: upgrade to 3.32.1
* use meson
* fix license&url
* Adopt maintainership
-rw-r--r-- | main/py-gobject3/APKBUILD | 47 |
1 files changed, 24 insertions, 23 deletions
diff --git a/main/py-gobject3/APKBUILD b/main/py-gobject3/APKBUILD index 2ee2193dfc..befbf343a0 100644 --- a/main/py-gobject3/APKBUILD +++ b/main/py-gobject3/APKBUILD @@ -1,46 +1,47 @@ -# Maintainer: Natanael Copa <ncopa@alpinelinux.org> +# Contributor: Rasmus Thomsen <oss@cogitri.dev> +# Contributor: Natanael Copa <ncopa@alpinelinux.org> +# Maintainer: Rasmus Thomsen <oss@cogitri.dev> pkgname=py-gobject3 -pkgver=3.28.2 -pkgrel=1 +pkgver=3.32.1 +pkgrel=0 pkgdesc="Python bindings for the GObject library" -url="http://www.pygtk.org/" +url="https://www.pygtk.org/" arch="all" -license="GPL" +license="LGPL-2.1-or-later" makedepends="python2-dev python3-dev py-cairo-dev gobject-introspection-dev - libffi-dev glib-dev gnome-common autoconf automake libtool" + libffi-dev glib-dev meson" +checkdepends="py2-pytest py3-pytest gtk+3.0-dev xvfb-run" +options="!check" # xvfb-run is in community/ still subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3 $pkgname-dev" source="https://download.gnome.org/sources/pygobject/${pkgver%.*}/pygobject-$pkgver.tar.xz" builddir="$srcdir"/pygobject-$pkgver -prepare() { - default_prepare - autoreconf -vif - cp -r "$builddir" "$srcdir"/python2 - cp -r "$builddir" "$srcdir"/python3 -} - build() { _build python2 _build python3 } +check() { + xvfb-run ninja -C python2 test + xvfb-run ninja -C python3 test +} + package() { mkdir -p "$pkgdir" } _build() { local python="$1" - export PYTHON=$python - cd "$srcdir"/$python - ./configure \ - --build=$CBUILD \ - --host=$CHOST \ + meson \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --localstatedir=/var \ - --enable-compile-warnings=minimum - make + --buildtype=release \ + -Dpython=$python \ + . "$python" + + ninja -C "$python" } _py2() { @@ -57,10 +58,10 @@ _py() { local python="$1" pkgdesc="$pkgdesc (for $python)" install_if="$pkgname=$pkgver-r$pkgrel $python" - cd "$srcdir/$python" - make DESTDIR="$pkgdir" install + + DESTDIR="$pkgdir" ninja -C "$builddir"/$python install mkdir -p "$subpkgdir"/usr/lib mv "$pkgdir"/usr/lib/${python}.* "$subpkgdir"/usr/lib/ } -sha512sums="2ba858856ef7f0c2fcac84a0f0a71ec1212991d8c57613cd948b55d413e69bd0961358935f5fd8753b905753cf563037cb351c428f4afcbbaac8ee0cebf4970c pygobject-3.28.2.tar.xz" +sha512sums="5b325d0caf4f34f783fc2c664a795809f048eb1639d2f2e375fc147c852d6e29a8ab119438cac76786fb20220c72d5859cc06d6f70c29f976f6a5914e0169915 pygobject-3.32.1.tar.xz" |