aboutsummaryrefslogtreecommitdiffstats
path: root/main/py-gtk
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2012-04-26 09:18:35 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2012-04-26 09:18:35 +0000
commitabbc54b57d137e56bde8b434fa97caf5ed20db50 (patch)
treeeca0b39d06a692a79d62276a008931def66197ab /main/py-gtk
parent180700192ce9edd99c66a7c91adbe2593dedc864 (diff)
downloadaports-abbc54b57d137e56bde8b434fa97caf5ed20db50.tar.bz2
aports-abbc54b57d137e56bde8b434fa97caf5ed20db50.tar.xz
main/py-gtk: fix file location, remove pyc
Diffstat (limited to 'main/py-gtk')
-rw-r--r--main/py-gtk/APKBUILD28
-rw-r--r--main/py-gtk/pygtk-2.13.0-fix-codegen-location.patch11
-rw-r--r--main/py-gtk/pygtk-2.14.1-libdir-pc.patch12
3 files changed, 47 insertions, 4 deletions
diff --git a/main/py-gtk/APKBUILD b/main/py-gtk/APKBUILD
index 057921c71..cc01d3bc8 100644
--- a/main/py-gtk/APKBUILD
+++ b/main/py-gtk/APKBUILD
@@ -1,17 +1,35 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=py-gtk
pkgver=2.24.0
-pkgrel=4
+pkgrel=5
pkgdesc="Python bindings for the GTK widget set"
url="http://www.pygtk.org/"
arch="all"
license="LGPL"
depends="py-cairo py-gobject"
-makedepends="libglade-dev py-cairo-dev py-gobject-dev python-dev libffi-dev"
-source="http://ftp.gnome.org/pub/gnome/sources/pygtk/${pkgver%.*}/pygtk-$pkgver.tar.bz2"
+makedepends="libglade-dev py-cairo-dev py-gobject-dev python-dev libffi-dev
+ autoconf automake libtool"
+source="http://ftp.gnome.org/pub/gnome/sources/pygtk/${pkgver%.*}/pygtk-$pkgver.tar.bz2
+ pygtk-2.13.0-fix-codegen-location.patch
+ pygtk-2.14.1-libdir-pc.patch
+ "
subpackages="$pkgname-dev $pkgname-doc $pkgname-demo"
_builddir="$srcdir"/pygtk-$pkgver
+prepare() {
+ local i
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+ # disable pyc
+ echo '#!/bin/sh' > py-compile
+ libtoolize --force \
+ && aclocal -I m4 && autoconf && automake || return 1
+}
+
build() {
cd "$_builddir"
./configure --prefix=/usr || return 1
@@ -41,4 +59,6 @@ demo() {
mv "$pkgdir"/usr/lib/pygtk/2.0/*demo* \
"$subpkgdir"/usr/lib/pygtk/2.0/
}
-md5sums="a1051d5794fd7696d3c1af6422d17a49 pygtk-2.24.0.tar.bz2"
+md5sums="a1051d5794fd7696d3c1af6422d17a49 pygtk-2.24.0.tar.bz2
+5c78e882d06e4f97371debceca7bd4c4 pygtk-2.13.0-fix-codegen-location.patch
+7ea85705916198f7cad29073ecd03d10 pygtk-2.14.1-libdir-pc.patch"
diff --git a/main/py-gtk/pygtk-2.13.0-fix-codegen-location.patch b/main/py-gtk/pygtk-2.13.0-fix-codegen-location.patch
new file mode 100644
index 000000000..701d828f1
--- /dev/null
+++ b/main/py-gtk/pygtk-2.13.0-fix-codegen-location.patch
@@ -0,0 +1,11 @@
+--- a/pygtk-2.0.pc.in 2007-11-01 12:20:22.000000000 -0400
++++ b/pygtk-2.0.pc.in 2008-05-28 22:21:04.000000000 -0400
+@@ -12,7 +12,7 @@ pygtkincludedir=${includedir}/pygtk-2.0
+ # This is strictly speaking not necessarily so (we refer to another
+ # package), but we want to preserve compatibility with times codegen
+ # was in PyGTK, not PyGObject.
+-codegendir=${datadir}/pygobject/2.0/codegen
++codegendir=${pyexecdir}/gtk-2.0/codegen
+
+ Name: PyGTK
+ Description: Python bindings for GTK+ and related libraries
diff --git a/main/py-gtk/pygtk-2.14.1-libdir-pc.patch b/main/py-gtk/pygtk-2.14.1-libdir-pc.patch
new file mode 100644
index 000000000..d943e952a
--- /dev/null
+++ b/main/py-gtk/pygtk-2.14.1-libdir-pc.patch
@@ -0,0 +1,12 @@
+https://bugzilla.gnome.org/show_bug.cgi?id=663421
+
+--- a/pygtk-2.0.pc.in
++++ b/pygtk-2.0.pc.in
+@@ -12,6 +12,7 @@
+ includedir=@includedir@
+ datarootdir=@datarootdir@
+ datadir=@datadir@
++libdir=@libdir@
+ pyexecdir=@pyexecdir@
+
+ # you can use the --variable=pygtkincludedir argument to