# Template file for 'pygobject2'
pkgname=pygobject2
version=2.28.6
revision=5
wrksrc=${pkgname%2}-${version}
build_style=gnu-configure
configure_args="--disable-introspection"
hostmakedepends="pkg-config"
makedepends="libffi-devel libglib-devel cairo-devel python-devel pycairo-devel"
short_desc="Python bindings for GObject (GLib 2.x)"
homepage="http://www.pygtk.org/"
license="LGPL-2.1"
maintainer="Juan RP <xtraeme@gmail.com>"
distfiles="${GNOME_SITE}/${pkgname%2}/2.28/${pkgname%2}-$version.tar.xz"
checksum=fb8a1d4f665130a125011659bd347c7339c944232163dbb9a34fd0686577adb8
long_desc="
 Pygobject is a set of Python bindings for the GLib's GObject library,
 version 2."

pygobject2-devel_package() {
	depends="libffi-devel libglib-devel libgirepository-devel pycairo-devel pygobject2>=${version}"
	short_desc+=" -- development files"
	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
	}
}

pygobject2_package() {
	depends="cairo libgirepository python pycairo"
	pycompile_module="glib gobject gtk-2.0 pygtk"
	replaces="pygobject<3.0.0"
	pkg_install() {
		vmove usr
	}
}
