2009-11-30 22:06:14 +01:00
|
|
|
# Template file for 'pygtk'
|
|
|
|
pkgname=pygtk
|
2011-10-02 12:33:23 +02:00
|
|
|
version=2.24.0
|
2014-04-02 10:53:17 +02:00
|
|
|
revision=11
|
|
|
|
lib32disabled=yes
|
2011-10-24 14:14:47 +02:00
|
|
|
build_style=gnu-configure
|
2013-03-29 10:38:40 +01:00
|
|
|
# XXX: missing python-numpy build dep
|
2014-01-28 10:07:30 +01:00
|
|
|
hostmakedepends="pkg-config pygobject2-devel>=2.28.6_6"
|
2014-02-01 17:59:18 +01:00
|
|
|
makedepends="python-devel gtk+-devel libxml2-devel libglade-devel pygobject2-devel>=2.28.6_6"
|
2014-01-01 16:10:11 +01:00
|
|
|
depends="python pygobject2 py2cairo"
|
|
|
|
pycompile_module="gtk-2.0/gtk"
|
2009-11-30 22:06:14 +01:00
|
|
|
short_desc="Python bindings for the GTK+ toolkit"
|
2013-03-29 13:28:30 +01:00
|
|
|
homepage="http://www.pygtk.org"
|
|
|
|
license="LGPL-2.1"
|
2009-11-30 22:06:14 +01:00
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2013-04-13 13:29:34 +02:00
|
|
|
distfiles="${GNOME_SITE}/$pkgname/2.24/$pkgname-$version.tar.bz2"
|
2011-10-02 12:33:23 +02:00
|
|
|
checksum=cd1c1ea265bd63ff669e92a2d3c2a88eb26bcd9e5363e0f82c896e649f206912
|
2009-11-30 22:06:14 +01:00
|
|
|
|
2014-01-28 10:07:30 +01:00
|
|
|
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}
|
|
|
|
export PATH=${wrksrc}:$PATH
|
|
|
|
fi
|
|
|
|
env PYTHON=python ./configure ${configure_args}
|
|
|
|
}
|
|
|
|
|
2013-03-29 10:38:40 +01:00
|
|
|
post_install() {
|
2011-07-05 12:55:25 +02:00
|
|
|
vinstall gtk/gtk-extrafuncs.defs 644 usr/share/pygtk/2.0/defs
|
2009-11-30 22:06:14 +01:00
|
|
|
}
|
2013-04-13 13:29:34 +02:00
|
|
|
|
|
|
|
pygtk-devel_package() {
|
2014-04-02 10:53:17 +02:00
|
|
|
lib32disabled=yes
|
2014-02-01 17:59:18 +01:00
|
|
|
depends="python-devel gtk+-devel pygobject2-devel py2cairo-devel libglade-devel pygtk>=${version}_${revision}"
|
2013-09-29 23:56:25 +02:00
|
|
|
short_desc+=" - development files"
|
2013-04-13 13:29:34 +02:00
|
|
|
pycompile_module="demos"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
|
|
|
vmove usr/share
|
|
|
|
vmove usr/bin
|
|
|
|
vmove usr/lib/pkgconfig
|
|
|
|
vmove usr/lib/pygtk
|
|
|
|
}
|
|
|
|
}
|