37 lines
1.2 KiB
Bash
37 lines
1.2 KiB
Bash
# Template file for 'python-gobject2'
|
|
pkgname=python-gobject2
|
|
version=2.28.7
|
|
revision=2
|
|
lib32disabled=yes
|
|
build_style=gnu-configure
|
|
configure_args="--disable-introspection PYTHON=/usr/bin/python2"
|
|
hostmakedepends="automake libtool pkg-config python-devel glib-devel"
|
|
makedepends="libffi-devel libglib-devel cairo-devel python-devel python-cairo-devel"
|
|
depends="cairo python python-cairo"
|
|
short_desc="Python2 bindings for GObject (GLib 2.x)"
|
|
homepage="http://www.pygtk.org/"
|
|
license="LGPL-2.1"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
distfiles="${GNOME_SITE}/pygobject/${version%.*}/pygobject-${version}.tar.xz"
|
|
checksum=bb9d25a3442ca7511385a7c01b057492095c263784ef31231ffe589d83a96a5a
|
|
python_version=2 #unverified
|
|
|
|
pre_configure() {
|
|
NOCONFIGURE=1 autoreconf -fi
|
|
if [ "$CROSS_BUILD" ]; then
|
|
sed -i "s,\(PYTHON_INCLUDES\)=.*,\1=-I${XBPS_CROSS_BASE}/usr/include/python2.7,g" configure
|
|
fi
|
|
}
|
|
|
|
python-gobject2-devel_package() {
|
|
lib32disabled=yes
|
|
depends="libffi-devel libglib-devel python-cairo-devel ${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pycompile_module="usr/share/pygobject/2.0/codegen"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
vmove usr/share
|
|
}
|
|
}
|