Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=gnometesting.git;a=commitdiff;h=956fb0d688360b2f001e77365477aab7312951a6

commit 956fb0d688360b2f001e77365477aab7312951a6
Author: bouleetbil <bouleet...@frogdev.info>
Date:   Thu Oct 6 21:25:14 2011 +0200

pygobject3-3.0.1-3-x86_64
*added python-3 support for devil505 :)

diff --git a/source/lib/pygobject3/FrugalBuild 
b/source/lib/pygobject3/FrugalBuild
index 5ed05cf..02e2899 100644
--- a/source/lib/pygobject3/FrugalBuild
+++ b/source/lib/pygobject3/FrugalBuild
@@ -4,9 +4,10 @@
pkgname=pygobject3
_F_gnome_name=pygobject
pkgver=3.0.1
-pkgrel=2
+pkgrel=3
pkgdesc="Python bindings for GObject"
depends=('python>=2.7' 'glib2>=2.29.18' 'libffi')
+rodepends=("$pkgname-devel")
groups=('lib')
archs=('i686' 'x86_64' 'ppc')
Finclude gnome python
@@ -21,14 +22,42 @@ subrodepends=("pygobject3=$pkgver")
subgroups=('xlib')
subarchs=('i686 x86_64 ppc')

+subpkgs=("${subpkgs[@]}" "python3-$pkgname")
+subdescs=("${subdescs[@]}" "pygobject python 3 support")
+subdepends=("${subdepends[@]}" "python-3.0 glib2 python3-pycairo 
gobject-introspection")
+subrodepends=("${subrodepends[@]}" "$pkgname-devel")
+subgroups=("${subgroups[@]}" 'xlib-extra')
+subarchs=("${subarchs[@]}" 'i686 x86_64 ppc')
+
+subpkgs=("${subpkgs[@]}" "$pkgname-devel")
+subdescs=("${subdescs[@]}" "pygobject devel")
+subdepends=("${subdepends[@]}" "")
+subrodepends=("${subrodepends[@]}" "")
+subgroups=("${subgroups[@]}" 'lib')
+subarchs=("${subarchs[@]}" 'i686 x86_64 ppc')
+
build() {
+       #python3
+       export PYTHON=python3
Fbuild
+       Frm usr/include/pygobject-3.0
+       Frm usr/lib/pkgconfig
+       Fsplit python3-$pkgname usr
+       make clean || Fdie
+       unset PYTHON
+
+       #python2
+       Fmake
+       Fmakeinstall
#pygobject 2 conflicts
Frm usr/share/pygobject/xsl
Frm $_F_python_libdir/gtk-2.0/dsextras*
Frm usr/share/gtk-doc/html/pygobject
-
Fsplit pygobject3-cairo $_F_python_libdir/gi
+
+       Fsplit $pkgname-devel usr/include/pygobject-3.0
+       Fsplit $pkgname-devel usr/lib/pkgconfig
+
}

# optimization OK
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to