2009-11-30 21:05:43 +00:00
|
|
|
# Template file for 'pygobject'
|
|
|
|
pkgname=pygobject
|
2013-11-11 17:25:37 +00:00
|
|
|
version=3.10.2
|
2013-10-14 12:36:38 +00:00
|
|
|
revision=1
|
2013-09-27 01:14:43 +00:00
|
|
|
hostmakedepends="which pkg-config gobject-introspection>=1.38"
|
|
|
|
makedepends="py2cairo-devel>=1.10.0_2 pycairo-devel>=1.10.0_3 libglib-devel"
|
2009-11-30 21:05:43 +00:00
|
|
|
short_desc="Python bindings for GObject"
|
2011-06-14 09:40:48 +00:00
|
|
|
homepage="http://www.pygtk.org/"
|
|
|
|
license="LGPL-2.1"
|
2013-09-26 19:05:12 +00:00
|
|
|
distfiles="${GNOME_SITE}/$pkgname/${version%.*}/$pkgname-$version.tar.xz"
|
2009-11-30 21:05:43 +00:00
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2013-11-11 17:25:37 +00:00
|
|
|
checksum=75608f2c4052f0277508fc79debef026d9e84cb9261de2b922387c093d32c326
|
2013-04-13 11:29:34 +00:00
|
|
|
|
2013-09-27 01:14:43 +00:00
|
|
|
do_configure() {
|
|
|
|
# python2
|
|
|
|
mkdir ${wrksrc}/build-python2
|
|
|
|
cd ${wrksrc}/build-python2
|
|
|
|
../configure ${configure_args} --with-python=/usr/bin/python
|
|
|
|
|
|
|
|
# python3
|
|
|
|
mkdir ${wrksrc}/build-python3
|
|
|
|
cd ${wrksrc}/build-python3
|
|
|
|
../configure ${configure_args} --with-python=/usr/bin/python3
|
|
|
|
}
|
|
|
|
|
|
|
|
do_build() {
|
|
|
|
# python2
|
|
|
|
cd ${wrksrc}/build-python3
|
|
|
|
make ${makejobs}
|
|
|
|
|
|
|
|
# python3
|
|
|
|
cd ${wrksrc}/build-python3
|
|
|
|
make ${makejobs}
|
|
|
|
}
|
|
|
|
|
|
|
|
do_install() {
|
|
|
|
# python2
|
|
|
|
cd ${wrksrc}/build-python2
|
|
|
|
make DESTDIR=${DESTDIR} install
|
|
|
|
|
|
|
|
# python3
|
|
|
|
cd ${wrksrc}/build-python3
|
|
|
|
make DESTDIR=${DESTDIR}/python3 install
|
|
|
|
}
|
|
|
|
|
|
|
|
py3gobject_package() {
|
|
|
|
short_desc="Python3 bindings for GObject"
|
2013-10-14 10:41:50 +00:00
|
|
|
depends="pycairo>=1.10.0_2"
|
2013-09-27 01:14:43 +00:00
|
|
|
pkg_install() {
|
|
|
|
vmkdir usr/lib
|
|
|
|
mv ${DESTDIR}/python3/usr/lib/*.so* ${PKGDESTDIR}/usr/lib
|
|
|
|
mv ${DESTDIR}/python3/usr/lib/python* ${PKGDESTDIR}/usr/lib
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-04-13 11:29:34 +00:00
|
|
|
pygobject-devel_package() {
|
2013-09-27 01:14:43 +00:00
|
|
|
depends="libgirepository-devel
|
|
|
|
py2cairo-devel>=1.10.0_2
|
|
|
|
pycairo-devel>=1.10.0_2
|
|
|
|
py3gobject>=${version}_${revision}
|
|
|
|
pygobject>=${version}_${revision}"
|
2013-05-13 18:22:02 +00:00
|
|
|
short_desc+=" - development files"
|
2013-04-13 11:29:34 +00:00
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
|
|
|
vmove usr/lib/pkgconfig
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
pygobject_package() {
|
|
|
|
pycompile_module="gi pygtkcompat"
|
2013-09-27 01:14:43 +00:00
|
|
|
depends="py2cairo>=1.10.0_2"
|
2013-04-13 11:29:34 +00:00
|
|
|
pkg_install() {
|
2013-09-27 01:14:43 +00:00
|
|
|
rm -rf ${DESTDIR}/python3
|
2013-05-13 18:22:02 +00:00
|
|
|
vmove all
|
2013-04-13 11:29:34 +00:00
|
|
|
}
|
|
|
|
}
|