aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2019-04-28 15:27:27 -0300
committerNatanael Copa <ncopa@alpinelinux.org>2019-04-30 10:01:51 +0000
commit1ac950895eea6374228d5107c0175f3d6292f2d7 (patch)
treec4a652d29626afa6fa950bf4ee27abe602627a56
parenta0795d84d38cd958cfc05a8d41d30975a5778a02 (diff)
downloadaports-1ac950895eea6374228d5107c0175f3d6292f2d7.tar.bz2
aports-1ac950895eea6374228d5107c0175f3d6292f2d7.tar.xz
main/py-gnome: modernize
- Drop all subpackages except dev and gconf - Fix license - Use modern style
-rw-r--r--main/py-gnome/APKBUILD71
1 files changed, 25 insertions, 46 deletions
diff --git a/main/py-gnome/APKBUILD b/main/py-gnome/APKBUILD
index 6583255c5b..f6c9f0d516 100644
--- a/main/py-gnome/APKBUILD
+++ b/main/py-gnome/APKBUILD
@@ -1,31 +1,30 @@
-# Contributor:
+# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=py-gnome
_realname=gnome-python
pkgver=2.28.1
_basever=2.28
-pkgrel=5
+pkgrel=6
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"
+license="LGPL-2.0-or-later"
+depends="$pkgname-gconf"
+depends_dev="gtk+2.0-dev py-gobject-dev py-gtk-dev python2-dev gconf-dev"
makedepends="$depends_dev"
-install=""
-subpackages="$pkgname-dev $pkgname-bonobo::noarch $pkgname-gconf $pkgname-libgnome \
- $pkgname-gnomevfs"
+subpackages="$pkgname-dev $pkgname-gconf"
source="https://download.gnome.org/sources/$_realname/$_basever/$_realname-$pkgver.tar.bz2"
+replaces="$pkgname-bonobo $pkgname-libgnome $pkgname-gnomevfs"
-_builddir="$srcdir"/$_realname-$pkgver
+builddir="$srcdir"/$_realname-$pkgver
prepare() {
- cd "$_builddir"
- update_config_sub || return 1
+ cd "$builddir"
+ update_config_sub
}
build() {
- cd "$_builddir"
+ cd "$builddir"
LIBS="$(pkg-config gobject-2.0 --libs)" \
./configure \
--build=$CBUILD \
@@ -34,48 +33,28 @@ build() {
--sysconfdir=/etc \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
- || return 1
- make || return 1
+ --disable-gnome \
+ --disable-gnomeui \
+ --disable-gnomecanvas \
+ --disable-gnomevfs \
+ --disable-gnomevfsbonobo \
+ --disable-pyvfsmodule \
+ --disable-bonobo_activation \
+ --disable-bonobo \
+ --disable-bonoboui
+ make
}
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
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install-pkgconfigDATA
}
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
+ cd "$builddir"
+ make -C gconf DESTDIR="$subpkgdir" install
}
sha512sums="632d91d416f8209c2bc8d576d1229069e00f2cfeedb3441a5f151e12973ed740c0bb26d18d5c16cfeeb64ca35933537997277450001cffd96d8d5077027d45f2 gnome-python-2.28.1.tar.bz2"