2014-06-19 12:09:19 +02:00
|
|
|
# Template file for 'python-gobject2'
|
|
|
|
pkgname=python-gobject2
|
2011-09-29 17:17:40 +02:00
|
|
|
version=2.28.6
|
2014-06-19 12:09:19 +02:00
|
|
|
revision=11
|
|
|
|
wrksrc=pygobject-${version}
|
2014-04-02 10:54:31 +02:00
|
|
|
lib32disabled=yes
|
2011-10-24 14:14:47 +02:00
|
|
|
build_style=gnu-configure
|
2011-09-29 17:17:40 +02:00
|
|
|
configure_args="--disable-introspection"
|
2014-01-28 09:58:31 +01:00
|
|
|
hostmakedepends="automake libtool pkg-config python-devel which glib-devel"
|
2014-06-19 12:09:19 +02:00
|
|
|
makedepends="libffi-devel libglib-devel cairo-devel python-devel python-cairo-devel"
|
|
|
|
depends="cairo python python-cairo"
|
2014-01-01 16:10:11 +01:00
|
|
|
pycompile_module="glib gobject gtk-2.0 pygtk"
|
2014-06-19 12:09:19 +02:00
|
|
|
replaces="pygobject<3.0.0 pygobject2>=0"
|
|
|
|
short_desc="Python2 bindings for GObject (GLib 2.x)"
|
2011-09-29 17:17:40 +02:00
|
|
|
homepage="http://www.pygtk.org/"
|
|
|
|
license="LGPL-2.1"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2014-06-19 12:09:19 +02:00
|
|
|
distfiles="${GNOME_SITE}/pygobject/${version%.*}/pygobject-${version}.tar.xz"
|
2011-09-29 17:17:40 +02:00
|
|
|
checksum=fb8a1d4f665130a125011659bd347c7339c944232163dbb9a34fd0686577adb8
|
|
|
|
|
2014-01-28 09:58:31 +01:00
|
|
|
pre_configure() {
|
|
|
|
NOCONFIGURE=1 autoreconf -fi
|
|
|
|
if [ "$CROSS_BUILD" ]; then
|
2014-06-19 13:15:04 +02:00
|
|
|
# Fix path to the python-config wrapper.
|
|
|
|
sed -e "s,^PYTHON_CONFIG=.*,PYTHON_CONFIG=${wrksrc}/.xbps/bin/python-config,g" -i configure
|
2014-01-28 09:58:31 +01:00
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
2014-06-19 12:09:19 +02:00
|
|
|
python-gobject2-devel_package() {
|
2014-04-02 10:54:31 +02:00
|
|
|
lib32disabled=yes
|
2014-06-19 13:15:04 +02:00
|
|
|
depends="libffi-devel libglib-devel python-cairo-devel ${sourcepkg}>=${version}_${revision}"
|
2013-09-29 23:54:38 +02:00
|
|
|
short_desc+=" - development files"
|
2013-04-13 13:29:34 +02:00
|
|
|
pycompile_module="usr/share/pygobject/2.0/codegen"
|
2014-06-19 12:09:19 +02:00
|
|
|
replaces="pygobject-devel<3.0.0 pygobject2-devel>=0"
|
2013-04-13 13:29:34 +02:00
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
|
|
|
vmove usr/lib/pkgconfig
|
|
|
|
vmove usr/share
|
|
|
|
}
|
|
|
|
}
|