[arch-commits] Commit in pygobject/repos (4 files)
Felix Yan
fyan at nymeria.archlinux.org
Mon Mar 17 15:42:03 UTC 2014
Date: Monday, March 17, 2014 @ 16:42:03
Author: fyan
Revision: 208076
archrelease: copy trunk to staging-i686, staging-x86_64
Added:
pygobject/repos/staging-i686/
pygobject/repos/staging-i686/PKGBUILD
(from rev 208075, pygobject/trunk/PKGBUILD)
pygobject/repos/staging-x86_64/
pygobject/repos/staging-x86_64/PKGBUILD
(from rev 208075, pygobject/trunk/PKGBUILD)
-------------------------+
staging-i686/PKGBUILD | 60 ++++++++++++++++++++++++++++++++++++++++++++++
staging-x86_64/PKGBUILD | 60 ++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 120 insertions(+)
Copied: pygobject/repos/staging-i686/PKGBUILD (from rev 208075, pygobject/trunk/PKGBUILD)
===================================================================
--- staging-i686/PKGBUILD (rev 0)
+++ staging-i686/PKGBUILD 2014-03-17 15:42:03 UTC (rev 208076)
@@ -0,0 +1,60 @@
+# $Id$
+# Maintainer: Ionut Biru <ibiru at archlinux.org>
+
+pkgbase=pygobject
+pkgname=(python-gobject python2-gobject pygobject-devel)
+pkgver=3.10.2
+pkgrel=2
+arch=(i686 x86_64)
+url="https://live.gnome.org/PyGObject"
+license=(LGPL)
+makedepends=(python python2 python-cairo python2-cairo gobject-introspection gnome-common)
+source=(http://ftp.gnome.org/pub/gnome/sources/$pkgbase/${pkgver:0:4}/$pkgbase-$pkgver.tar.xz
+ "python3.4-gi-types.patch::https://git.gnome.org/browse/pygobject/patch/?id=2ff095ea0b0c05fbf6cc332eeadf26cfeb9e69f7")
+sha256sums=('75608f2c4052f0277508fc79debef026d9e84cb9261de2b922387c093d32c326'
+ '5a25f46e5d90f1c21430017e5a932cd066c4c847005eace63f98b062d731ec4d')
+
+prepare() {
+ mkdir build-py2 build-py3 devel
+ cd ${pkgbase}-${pkgver}
+ sed -i '/Werror=format/d' configure # gcc 4.8
+
+ # Fix installation on Python 3.4, reference: https://git.gnome.org/browse/pygobject/commit/?id=2ff095ea0b0c05fbf6cc332eeadf26cfeb9e69f7
+ patch -p1 -i "$srcdir/python3.4-gi-types.patch"
+}
+
+build() {
+ cd build-py2
+ ../${pkgbase}-${pkgver}/autogen.sh --prefix=/usr --with-python=/usr/bin/python2
+ make
+
+ cd ../build-py3
+ ../${pkgbase}-${pkgver}/configure --prefix=/usr
+ make
+}
+
+package_python-gobject() {
+ pkgdesc="Python 3 bindings for GObject"
+ depends=('gobject-introspection' 'python-cairo' "pygobject-devel=$pkgver")
+
+ cd build-py3
+ make DESTDIR="$pkgdir" install
+ rm -r "$pkgdir"/usr/{include,lib/pkgconfig}
+}
+
+package_python2-gobject() {
+ pkgdesc="Python 2 bindings for GObject"
+ depends=('gobject-introspection' 'python2-cairo' "pygobject-devel=$pkgver")
+
+ cd build-py2
+ make DESTDIR="$pkgdir" install
+ mv "$pkgdir"/usr/{include,lib/pkgconfig} "$srcdir/devel"
+}
+
+package_pygobject-devel() {
+ pkgdesc="Development files for the pygobject bindings"
+ cd "devel"
+ mkdir -p "$pkgdir"/usr/{include,lib}
+ mv include "$pkgdir/usr/"
+ mv pkgconfig "$pkgdir/usr/lib/"
+}
Copied: pygobject/repos/staging-x86_64/PKGBUILD (from rev 208075, pygobject/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD (rev 0)
+++ staging-x86_64/PKGBUILD 2014-03-17 15:42:03 UTC (rev 208076)
@@ -0,0 +1,60 @@
+# $Id$
+# Maintainer: Ionut Biru <ibiru at archlinux.org>
+
+pkgbase=pygobject
+pkgname=(python-gobject python2-gobject pygobject-devel)
+pkgver=3.10.2
+pkgrel=2
+arch=(i686 x86_64)
+url="https://live.gnome.org/PyGObject"
+license=(LGPL)
+makedepends=(python python2 python-cairo python2-cairo gobject-introspection gnome-common)
+source=(http://ftp.gnome.org/pub/gnome/sources/$pkgbase/${pkgver:0:4}/$pkgbase-$pkgver.tar.xz
+ "python3.4-gi-types.patch::https://git.gnome.org/browse/pygobject/patch/?id=2ff095ea0b0c05fbf6cc332eeadf26cfeb9e69f7")
+sha256sums=('75608f2c4052f0277508fc79debef026d9e84cb9261de2b922387c093d32c326'
+ '5a25f46e5d90f1c21430017e5a932cd066c4c847005eace63f98b062d731ec4d')
+
+prepare() {
+ mkdir build-py2 build-py3 devel
+ cd ${pkgbase}-${pkgver}
+ sed -i '/Werror=format/d' configure # gcc 4.8
+
+ # Fix installation on Python 3.4, reference: https://git.gnome.org/browse/pygobject/commit/?id=2ff095ea0b0c05fbf6cc332eeadf26cfeb9e69f7
+ patch -p1 -i "$srcdir/python3.4-gi-types.patch"
+}
+
+build() {
+ cd build-py2
+ ../${pkgbase}-${pkgver}/autogen.sh --prefix=/usr --with-python=/usr/bin/python2
+ make
+
+ cd ../build-py3
+ ../${pkgbase}-${pkgver}/configure --prefix=/usr
+ make
+}
+
+package_python-gobject() {
+ pkgdesc="Python 3 bindings for GObject"
+ depends=('gobject-introspection' 'python-cairo' "pygobject-devel=$pkgver")
+
+ cd build-py3
+ make DESTDIR="$pkgdir" install
+ rm -r "$pkgdir"/usr/{include,lib/pkgconfig}
+}
+
+package_python2-gobject() {
+ pkgdesc="Python 2 bindings for GObject"
+ depends=('gobject-introspection' 'python2-cairo' "pygobject-devel=$pkgver")
+
+ cd build-py2
+ make DESTDIR="$pkgdir" install
+ mv "$pkgdir"/usr/{include,lib/pkgconfig} "$srcdir/devel"
+}
+
+package_pygobject-devel() {
+ pkgdesc="Development files for the pygobject bindings"
+ cd "devel"
+ mkdir -p "$pkgdir"/usr/{include,lib}
+ mv include "$pkgdir/usr/"
+ mv pkgconfig "$pkgdir/usr/lib/"
+}
More information about the arch-commits
mailing list