aboutsummaryrefslogtreecommitdiffstats
path: root/main/py-gtk
diff options
context:
space:
mode:
authorLeonardo Arena <rnalrd@alpinelinux.org>2017-04-24 10:10:10 +0000
committerLeonardo Arena <rnalrd@alpinelinux.org>2017-04-24 10:10:10 +0000
commit919633caaab6a74ac282600f565835b512f4f72f (patch)
treef6d8a1b9efa3448211dd84e06f04c6afd2b76540 /main/py-gtk
parent1caa397e4cf84a8a5e7ff91755c6ba692e368e1a (diff)
downloadaports-919633caaab6a74ac282600f565835b512f4f72f.tar.bz2
aports-919633caaab6a74ac282600f565835b512f4f72f.tar.xz
main/py-gtk: fix mdepends, modernize APKBUILD, add check()
Diffstat (limited to 'main/py-gtk')
-rw-r--r--main/py-gtk/APKBUILD25
1 files changed, 14 insertions, 11 deletions
diff --git a/main/py-gtk/APKBUILD b/main/py-gtk/APKBUILD
index c8fdf0130d..62966057ff 100644
--- a/main/py-gtk/APKBUILD
+++ b/main/py-gtk/APKBUILD
@@ -1,31 +1,29 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=py-gtk
pkgver=2.24.0
-pkgrel=13
+pkgrel=14
pkgdesc="Python bindings for the GTK widget set"
url="http://www.pygtk.org/"
arch="all"
license="LGPL"
depends_dev="py-gobject-dev py-gtk"
depends="py2-cairo py-gobject"
-makedepends="$depends_dev libglade-dev py-cairo-dev python2-dev libffi-dev
+makedepends="$depends_dev libglade-dev py2-cairo-dev python2-dev libffi-dev
autoconf automake libtool"
source="http://ftp.gnome.org/pub/gnome/sources/pygtk/${pkgver%.*}/pygtk-$pkgver.tar.bz2
pygtk-2.14.1-libdir-pc.patch
automake.patch
"
+#Gdk-CRITICAL **: IA__gdk_screen_get_root_window: assertion 'GDK_IS_SCREEN (screen)' failed
+options="!check"
subpackages="$pkgname-dev $pkgname-doc $pkgname-demo"
+builddir="$srcdir"/pygtk-$pkgver
-_builddir="$srcdir"/pygtk-$pkgver
prepare() {
local i
- cd "$_builddir"
+ cd "$builddir"
update_config_sub || return 1
- for i in $source; do
- case $i in
- *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
- esac
- done
+ default_prepare
# disable pyc
echo '#!/bin/sh' > py-compile
libtoolize --force && aclocal -I m4 && autoconf \
@@ -33,7 +31,7 @@ prepare() {
}
build() {
- cd "$_builddir"
+ cd "$builddir"
CFLAGS="$CFLAGS -D_GNU_SOURCE" \
./configure \
--build=$CBUILD \
@@ -43,8 +41,13 @@ build() {
make || return 1
}
+check() {
+ cd "$builddir"
+ make check
+}
+
package() {
- cd "$_builddir"
+ cd "$builddir"
make DESTDIR="$pkgdir" install || return 1
install -m644 gtk/gtk-extrafuncs.defs \
"$pkgdir"/usr/share/pygtk/2.0/defs/ || return 1