aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-02-11 20:55:54 -0600
committerWilliam Pitcock <nenolod@dereferenced.org>2018-02-17 14:24:06 +0000
commited7790f7ead993771886c7b5ad95aeee0e2d04a6 (patch)
tree6dc55e8d6aa10bf7a2b8c205b44295b13e0394d7
parent5cb4e2a06c027d4dd0f421cf21e6cfc9ed25243c (diff)
downloadaports-ed7790f7ead993771886c7b5ad95aeee0e2d04a6.tar.bz2
aports-ed7790f7ead993771886c7b5ad95aeee0e2d04a6.tar.xz
main/gobject-introspection: modernise, add check, py2->3, fix deps
-rw-r--r--main/gobject-introspection/APKBUILD48
1 files changed, 18 insertions, 30 deletions
diff --git a/main/gobject-introspection/APKBUILD b/main/gobject-introspection/APKBUILD
index 6371831fd2..f9fc86592a 100644
--- a/main/gobject-introspection/APKBUILD
+++ b/main/gobject-introspection/APKBUILD
@@ -1,56 +1,44 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=gobject-introspection
pkgver=1.54.1
-pkgrel=0
+pkgrel=1
pkgdesc="Introspection system for GObject-based libraries"
url="http://live.gnome.org/GObjectIntrospection"
arch="all"
-license="LGPL GPL"
-depends_dev="python2 glib-dev libffi-dev cairo-dev libtool"
-makedepends="$depends_dev flex bison python2-dev"
+license="LGPL-2.0+, GPL-2.0+, MIT"
depends=
+depends_dev="python3 cairo-dev libtool"
+makedepends="$depends_dev glib-dev libffi-dev flex bison python3-dev"
+subpackages="$pkgname-dev $pkgname-doc"
replaces="libgirepository"
source="http://download.gnome.org/sources/$pkgname/${pkgver%.*}/$pkgname-$pkgver.tar.xz
"
-# since this is a dev package by definition we dont bother separate -dev
-subpackages="$pkgname-doc $pkgname-dev"
-
-_builddir="$srcdir"/$pkgname-$pkgver
-prepare() {
- cd "$_builddir"
- for i in $source; do
- case $i in
- *.patch)
- msg "Applying $i"
- patch -p1 -i "$srcdir"/$i || return 1
- ;;
- esac
- done
-}
-
build() {
- cd "$_builddir"
+ cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
- --disable-static \
- || return 1
- make V=1 || return 1
+ --disable-static
+ make V=1
+}
+
+check() {
+ cd "$builddir"
+ make check
}
package() {
- cd "$_builddir"
- make DESTDIR="$pkgdir" install || return 1
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
}
dev() {
mkdir -p "$subpkgdir"/usr/lib
- mv "$pkgdir"/usr/share "$subpkgdir"/usr/ || return 1
- mv "$pkgdir"/usr/lib/gobject-introspection "$subpkgdir"/usr/lib/ \
- || return 1
- mv "$pkgdir"/usr/bin "$subpkgdir"/usr/ || return 1
+ mv "$pkgdir"/usr/share "$subpkgdir"/usr/
+ mv "$pkgdir"/usr/lib/gobject-introspection "$subpkgdir"/usr/lib/
+ mv "$pkgdir"/usr/bin "$subpkgdir"/usr/
default_dev
replaces="gobject-introspection"
}