python-gobject: make it python2 only
This commit is contained in:
parent
64111e0e15
commit
06a881757e
2 changed files with 12 additions and 44 deletions
|
@ -3,9 +3,12 @@ pkgname=python-gobject
|
||||||
version=3.30.4
|
version=3.30.4
|
||||||
revision=2
|
revision=2
|
||||||
wrksrc="pygobject-${version}"
|
wrksrc="pygobject-${version}"
|
||||||
|
build_style=meson
|
||||||
|
build_helper="gir"
|
||||||
|
configure_args="-Dpython=python2.7"
|
||||||
pycompile_module="gi pygtkcompat"
|
pycompile_module="gi pygtkcompat"
|
||||||
hostmakedepends="gobject-introspection meson pkg-config"
|
hostmakedepends="pkg-config"
|
||||||
makedepends="libglib-devel python-cairo-devel python3-cairo-devel"
|
makedepends="libglib-devel python-cairo-devel python-devel"
|
||||||
depends="gir-freedesktop python-cairo"
|
depends="gir-freedesktop python-cairo"
|
||||||
short_desc="Python2 bindings for GObject"
|
short_desc="Python2 bindings for GObject"
|
||||||
maintainer="Enno Boland <gottox@voidlinux.org>"
|
maintainer="Enno Boland <gottox@voidlinux.org>"
|
||||||
|
@ -14,49 +17,15 @@ homepage="https://pygobject.readthedocs.io/"
|
||||||
distfiles="${GNOME_SITE}/pygobject/${version%.*}/pygobject-${version}.tar.xz"
|
distfiles="${GNOME_SITE}/pygobject/${version%.*}/pygobject-${version}.tar.xz"
|
||||||
checksum=2dc1a1a444b82955e65b81c2a2511ecf8032404beba4ef1d48144168f2f64c43
|
checksum=2dc1a1a444b82955e65b81c2a2511ecf8032404beba4ef1d48144168f2f64c43
|
||||||
|
|
||||||
# Also, we don't do any meson cross specific stuff here
|
case "$XBPS_TARGET_MACHINE" in
|
||||||
nocross="http://build.voidlinux.eu/builders/armv7l_builder/builds/8676/steps/shell_3/logs/stdio"
|
x86_64-musl) ;;
|
||||||
|
*-musl) broken="Error relocating /usr/aarch64-linux-musl/usr/lib/libz.so.1: unsupported relocation type 1026" ;;
|
||||||
pre_configure() {
|
esac
|
||||||
mkdir -p gi-${py2_ver}
|
|
||||||
mv * gi-${py2_ver} || true
|
|
||||||
cp -a gi-${py2_ver} gi-${py3_ver}
|
|
||||||
}
|
|
||||||
|
|
||||||
do_configure() {
|
|
||||||
for pyver in $py2_ver $py3_ver; do
|
|
||||||
cd ${wrksrc}/gi-${pyver}
|
|
||||||
meson --prefix=/usr --buildtype=plain -Dpython=python${pyver} . build
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
do_build() {
|
|
||||||
for pyver in $py2_ver $py3_ver; do
|
|
||||||
cd ${wrksrc}/gi-${pyver}
|
|
||||||
ninja -C build ${makejobs}
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
do_install() {
|
|
||||||
for pyver in $py2_ver $py3_ver; do
|
|
||||||
cd ${wrksrc}/gi-${pyver}
|
|
||||||
DESTDIR=${DESTDIR} ninja -C build install
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
python3-gobject_package() {
|
|
||||||
pycompile_module="gi pygtkcompat"
|
|
||||||
depends="gir-freedesktop python3-cairo"
|
|
||||||
short_desc="${short_desc/Python2/Python3}"
|
|
||||||
pkg_install() {
|
|
||||||
vmove ${py3_sitelib}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
python-gobject-devel_package() {
|
python-gobject-devel_package() {
|
||||||
depends="libgirepository-devel python-cairo-devel python3-cairo-devel
|
depends="libgirepository-devel python-cairo-devel
|
||||||
python-gobject>=${version}_${revision}
|
libglib-devel libffi-devel
|
||||||
python3-gobject>=${version}_${revision}"
|
python-gobject>=${version}_${revision}"
|
||||||
short_desc+=" - development files"
|
short_desc+=" - development files"
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
vmove usr/include
|
vmove usr/include
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
python-gobject
|
|
Loading…
Add table
Add a link
Reference in a new issue