diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2013-06-06 08:17:05 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2013-06-06 08:17:05 +0000 |
commit | 2828af8c79d3252d3afb70175e00f0447b7c762d (patch) | |
tree | 05ae6e3d656a99dcb23a4ac0ead427fe9b0bcd5d /main/py-gnome/APKBUILD | |
parent | 04630d7b226f2d3e9a6e05cfb635ecc60caef18d (diff) | |
download | aports-2828af8c79d3252d3afb70175e00f0447b7c762d.tar.bz2 aports-2828af8c79d3252d3afb70175e00f0447b7c762d.tar.xz |
main/py-gnome: moved from testing
Diffstat (limited to 'main/py-gnome/APKBUILD')
-rw-r--r-- | main/py-gnome/APKBUILD | 86 |
1 files changed, 86 insertions, 0 deletions
diff --git a/main/py-gnome/APKBUILD b/main/py-gnome/APKBUILD new file mode 100644 index 0000000000..e34b55768c --- /dev/null +++ b/main/py-gnome/APKBUILD @@ -0,0 +1,86 @@ +# Contributor: +# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org> +pkgname=py-gnome +_realname=gnome-python +pkgver=2.28.1 +_basever=2.28 +pkgrel=4 +pkgdesc="Python interface to GNOME libraries" +url="http://pygtk.org" +arch="noarch" +license="LGPL" +depends="$pkgname-bonobo $pkgname-gconf $pkgname-libgnome $pkgname-gnomevfs" +depends_dev="gtk+-dev libgnome-dev py-gobject-dev py-gtk-dev python-dev" +makedepends="$depends_dev" +install="" +subpackages="$pkgname-dev $pkgname-bonobo $pkgname-gconf $pkgname-libgnome \ + $pkgname-gnomevfs" +source="http://ftp.gnome.org/pub/gnome/sources/$_realname/$_basever/$_realname-$pkgver.tar.bz2" + +_builddir="$srcdir"/$_realname-$pkgver + +prepare() { + cd "$_builddir" +} + +build() { + cd "$_builddir" + LIBS="$(pkg-config gobject-2.0 --libs)" \ + ./configure --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info + make || return 1 +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" install-pkgconfigDATA || return 1 + find "$pkgdir" -iname *.la -delete +} + +bonobo() { + pkgdesc="Python bindings for interfacing with Bonobo" + arch="noarch" + depends="py-gtk $pkgname-gnomecanvas" + cd "$_builddir" + make -C bonobo DESTDIR="$subpkgdir" install || return 1 + find "$subpkgdir" -iname *.la -delete +} + +gconf() { + pkgdesc="Python bindings for interfacing with GConf" + arch="all" + depends="gconf py-gtk" + cd "$_builddir" + make -C gconf DESTDIR="$subpkgdir" install || return 1 + find "$subpkgdir" -iname *.la -delete +} + +# Temporarily disabled as it does not build +#gnomecanvas() { +# pkgdesc="Python bindings for the GNOME Canvas" +# cd "$_builddir" +# make -C gnomecanvas DESTDIR=$subpkgdir install || return 1 +# find $pkgdir -iname *.la -delete +#} + +gnomevfs() { + pkgdesc="Python bindings for interacting with gnome-vfs" + arch="all" + depends="gnome-vfs" + cd "$_builddir" + make -C gnomevfs DESTDIR="$subpkgdir" install || return 1 + find "$subpkgdir" -iname *.la -delete +} + +libgnome() { + pkgdesc="Python bindings for libgnome" + arch="all" + depends="py-gtk $pkgname-bonobo $pkgname-gnomecanvas $pkgname-gnomevfs" + cd "$_builddir" + make -C gnome DESTDIR="$subpkgdir" install || return 1 + find "$subpkgdir" -iname *.la -delete +} + +md5sums="a17ad952813ed86f520de8e07194a2bf gnome-python-2.28.1.tar.bz2" |