pygobject: added python3 bindings (py3gobject).
This commit is contained in:
parent
a66db21edf
commit
d3e5be76fd
|
@ -350,8 +350,8 @@ libnssdbm3.so nss-3.12.4_1
|
||||||
libnssckbi.so nss-3.12.4_1
|
libnssckbi.so nss-3.12.4_1
|
||||||
libnss3.so nss-3.12.4_1
|
libnss3.so nss-3.12.4_1
|
||||||
libcurl.so.4 libcurl-7.19_1
|
libcurl.so.4 libcurl-7.19_1
|
||||||
libpyglib-gi-2.0-python.so.0 pygobject-2.27.0_1
|
libpyglib-gi-2.0-python.so.0 pygobject-3.10.0_2
|
||||||
libpyglib-2.0-python.so.0 pygobject2-2.28.6_1
|
libpyglib-gi-2.0-python3.so.0 py3gobject-3.10.0_2
|
||||||
libdaemon.so.0 libdaemon-0.14_1
|
libdaemon.so.0 libdaemon-0.14_1
|
||||||
libavahi-common.so.3 avahi-libs-0.6.25_1
|
libavahi-common.so.3 avahi-libs-0.6.25_1
|
||||||
libavahi-core.so.7 avahi-libs-0.6.25_1
|
libavahi-core.so.7 avahi-libs-0.6.25_1
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
pygobject
|
|
@ -1,10 +1,9 @@
|
||||||
# Template file for 'pygobject'
|
# Template file for 'pygobject'
|
||||||
pkgname=pygobject
|
pkgname=pygobject
|
||||||
version=3.10.0
|
version=3.10.0
|
||||||
revision=1
|
revision=2
|
||||||
build_style=gnu-configure
|
hostmakedepends="which pkg-config gobject-introspection>=1.38"
|
||||||
hostmakedepends="pkg-config gobject-introspection>=1.38"
|
makedepends="py2cairo-devel>=1.10.0_2 pycairo-devel>=1.10.0_3 libglib-devel"
|
||||||
makedepends="pycairo-devel libglib-devel python-devel"
|
|
||||||
short_desc="Python bindings for GObject"
|
short_desc="Python bindings for GObject"
|
||||||
homepage="http://www.pygtk.org/"
|
homepage="http://www.pygtk.org/"
|
||||||
license="LGPL-2.1"
|
license="LGPL-2.1"
|
||||||
|
@ -12,21 +11,65 @@ distfiles="${GNOME_SITE}/$pkgname/${version%.*}/$pkgname-$version.tar.xz"
|
||||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||||
checksum=8aaa1f83fdb2e30bae77405a63a8be600b311a04a4cdc952b2ab62ee81aad077
|
checksum=8aaa1f83fdb2e30bae77405a63a8be600b311a04a4cdc952b2ab62ee81aad077
|
||||||
|
|
||||||
|
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"
|
||||||
|
pkg_install() {
|
||||||
|
vmkdir usr/lib
|
||||||
|
mv ${DESTDIR}/python3/usr/lib/*.so* ${PKGDESTDIR}/usr/lib
|
||||||
|
mv ${DESTDIR}/python3/usr/lib/python* ${PKGDESTDIR}/usr/lib
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
pygobject-devel_package() {
|
pygobject-devel_package() {
|
||||||
depends="libffi-devel libglib-devel libgirepository-devel
|
depends="libgirepository-devel
|
||||||
pycairo-devel ${sourcepkg}-${version}_${revision}"
|
py2cairo-devel>=1.10.0_2
|
||||||
|
pycairo-devel>=1.10.0_2
|
||||||
|
py3gobject>=${version}_${revision}
|
||||||
|
pygobject>=${version}_${revision}"
|
||||||
short_desc+=" - development files"
|
short_desc+=" - development files"
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
vmove usr/include
|
vmove usr/include
|
||||||
vmove usr/lib/pkgconfig
|
vmove usr/lib/pkgconfig
|
||||||
vmove "usr/lib/*.so"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pygobject_package() {
|
pygobject_package() {
|
||||||
pycompile_module="gi pygtkcompat"
|
pycompile_module="gi pygtkcompat"
|
||||||
depends="python pycairo"
|
depends="py2cairo>=1.10.0_2"
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
|
rm -rf ${DESTDIR}/python3
|
||||||
vmove all
|
vmove all
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue