void-packages/srcpkgs/pygobject/template

70 lines
1.6 KiB
Plaintext
Raw Normal View History

# Template file for 'pygobject'
pkgname=pygobject
2014-03-27 10:44:51 +01:00
version=3.12.0
2013-10-14 14:36:38 +02:00
revision=1
hostmakedepends="which pkg-config gobject-introspection>=1.38"
makedepends="py2cairo-devel>=1.10.0_2 pycairo-devel>=1.10.0_3 libglib-devel"
depends="py2cairo>=1.10.0_2"
pycompile_module="gi pygtkcompat"
short_desc="Python bindings for GObject"
2011-06-14 11:40:48 +02:00
homepage="http://www.pygtk.org/"
license="LGPL-2.1"
2013-09-26 21:05:12 +02:00
distfiles="${GNOME_SITE}/$pkgname/${version%.*}/$pkgname-$version.tar.xz"
maintainer="Juan RP <xtraeme@gmail.com>"
2014-03-27 10:44:51 +01:00
checksum=0d4485311fcfb073dc37432e36ad1d45bcf9f8796a1e8ff20a6494e0297dbd1a
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"
depends="pycairo>=1.10.0_2"
pkg_install() {
vmkdir usr/lib
mv ${DESTDIR}/python3/usr/lib/python* ${PKGDESTDIR}/usr/lib
}
}
pygobject-devel_package() {
depends="libgirepository-devel
py2cairo-devel>=1.10.0_2
pycairo-devel>=1.10.0_2
py3gobject>=${version}_${revision}
pygobject>=${version}_${revision}"
2013-05-13 20:22:02 +02:00
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
rm -rf ${DESTDIR}/python3
}
}