From 038d3154a543100841bb02003793ea843e4c0b3d Mon Sep 17 00:00:00 2001 From: giresun28 Date: Fri, 28 Oct 2016 21:29:13 +0300 Subject: [PATCH] =?UTF-8?q?python-gobject2.d=C3=BCzenlendi?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pygobject-2.16.1-fixdetection.patch | 13 +++++++++++++ talimatname/genel/python-gobject2/talimat | 4 +++- 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 talimatname/genel/python-gobject2/pygobject-2.16.1-fixdetection.patch diff --git a/talimatname/genel/python-gobject2/pygobject-2.16.1-fixdetection.patch b/talimatname/genel/python-gobject2/pygobject-2.16.1-fixdetection.patch new file mode 100644 index 000000000..714144d62 --- /dev/null +++ b/talimatname/genel/python-gobject2/pygobject-2.16.1-fixdetection.patch @@ -0,0 +1,13 @@ +diff -p -up pygobject-2.16.1/pygtk.py.fixdetection pygobject-2.16.1/pygtk.py +--- pygobject-2.16.1/pygtk.py.fixdetection 2009-02-20 22:27:14.000000000 +0100 ++++ pygobject-2.16.1/pygtk.py 2009-02-23 09:44:55.000000000 +0100 +@@ -57,6 +57,9 @@ def _get_available_versions(): + # skip empty directories + if not os.listdir(pathname): + continue ++ # only accept directories containing gtk.py or gobject.so ++ if not glob.glob(os.path.join(pathname, "gtk.py")) and not glob.glob(os.path.join(pathname,"gobject.so")): ++ continue + + if not versions.has_key(filename[-3:]): + versions[filename[-3:]] = pathname diff --git a/talimatname/genel/python-gobject2/talimat b/talimatname/genel/python-gobject2/talimat index 9484d42a9..84530d4c7 100644 --- a/talimatname/genel/python-gobject2/talimat +++ b/talimatname/genel/python-gobject2/talimat @@ -8,11 +8,13 @@ version=2.28.6 release=1 source=( http://ftp.gnome.org/pub/gnome/sources/pygobject/${version%.*}/pygobject-$version.tar.xz - pygobject-2.28.6-fixes-1.patch) + pygobject-2.28.6-fixes-1.patch + pygobject-2.16.1-fixdetection.patch) build() { cd pygobject-$version patch -Np1 -i $SRC/pygobject-2.28.6-fixes-1.patch +patch -Np1 -i $SRC/pygobject-2.16.1-fixdetection.patch ./configure --prefix=/usr make make DESTDIR=$PKG install