39 lines
1.3 KiB
Bash
39 lines
1.3 KiB
Bash
# Template file for 'python-gobject2'
|
|
pkgname=python-gobject2
|
|
version=2.28.6
|
|
revision=14
|
|
wrksrc=pygobject-${version}
|
|
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"
|
|
pycompile_module="glib gobject gtk-2.0 pygtk.py"
|
|
short_desc="Python2 bindings for GObject (GLib 2.x)"
|
|
homepage="http://www.pygtk.org/"
|
|
license="LGPL-2.1"
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
|
distfiles="${GNOME_SITE}/pygobject/${version%.*}/pygobject-${version}.tar.xz"
|
|
checksum=fb8a1d4f665130a125011659bd347c7339c944232163dbb9a34fd0686577adb8
|
|
|
|
pre_configure() {
|
|
NOCONFIGURE=1 autoreconf -fi
|
|
if [ "$CROSS_BUILD" ]; then
|
|
# Fix path to the python-config wrapper.
|
|
sed -e "s,^PYTHON_CONFIG=.*,PYTHON_CONFIG=${XBPS_WRAPPERDIR}/python-config,g" -i 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
|
|
}
|
|
}
|