aboutsummaryrefslogtreecommitdiffstats
path: root/main/py-gnome/APKBUILD
blob: df2cb5a6caf97de70b7eaa14f2d53cf039c6df5a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
# Contributor: 
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=py-gnome
_realname=gnome-python
pkgver=2.28.1
_basever=2.28
pkgrel=5
pkgdesc="Python interface to GNOME libraries"
url="http://pygtk.org"
arch="all"
license="LGPL"
depends="$pkgname-bonobo $pkgname-gconf $pkgname-libgnome $pkgname-gnomevfs"
depends_dev="gtk+2.0-dev libgnome-dev py-gobject-dev py-gtk-dev python2-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"
	update_config_sub || return 1
}

build() {
	cd "$_builddir"
	LIBS="$(pkg-config gobject-2.0 --libs)" \
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		|| return 1
        make || return 1
}

package() {
	cd "$_builddir"
        make DESTDIR="$pkgdir" install-pkgconfigDATA || return 1
}

bonobo() {
        pkgdesc="Python bindings for interfacing with Bonobo"
	depends="py-gtk $pkgname-gnomecanvas"
        cd "$_builddir"
        make -C bonobo DESTDIR="$subpkgdir" install || return 1
}

gconf() {
	pkgdesc="Python bindings for interfacing with GConf"
	depends="gconf py-gtk"
	cd "$_builddir"
	make -C gconf DESTDIR="$subpkgdir" install || return 1
}

# 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
#}

gnomevfs() {
	pkgdesc="Python bindings for interacting with gnome-vfs"
	depends="gnome-vfs"
	cd "$_builddir"
	make -C gnomevfs DESTDIR="$subpkgdir" install || return 1
}

libgnome() {
	pkgdesc="Python bindings for libgnome"
	depends="py-gtk $pkgname-bonobo $pkgname-gnomecanvas $pkgname-gnomevfs"
	cd "$_builddir"
	make -C gnome DESTDIR="$subpkgdir" install || return 1
}

md5sums="a17ad952813ed86f520de8e07194a2bf  gnome-python-2.28.1.tar.bz2"