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