python-gobject: rebuild for Python 3.5
Switch to python3-* pkgs. Convert python3.4-* pkg into dummy pkg.
This commit is contained in:
parent
ca2ac62b5d
commit
0994d42931
2 changed files with 34 additions and 39 deletions
|
@ -1,12 +1,11 @@
|
||||||
# Template file for 'python-gobject'
|
# Template file for 'python-gobject'
|
||||||
pkgname=python-gobject
|
pkgname=python-gobject
|
||||||
version=3.18.2
|
version=3.18.2
|
||||||
revision=1
|
revision=2
|
||||||
wrksrc="pygobject-${version}"
|
wrksrc="pygobject-${version}"
|
||||||
hostmakedepends="pkg-config gobject-introspection"
|
hostmakedepends="pkg-config gobject-introspection"
|
||||||
makedepends="libglib-devel python-cairo-devel python3.4-cairo-devel"
|
makedepends="libglib-devel python-cairo-devel python3-cairo-devel"
|
||||||
depends="gir-freedesktop python-cairo>=1.10.0_2"
|
depends="gir-freedesktop python-cairo"
|
||||||
replaces="pygobject>=0"
|
|
||||||
pycompile_module="gi pygtkcompat"
|
pycompile_module="gi pygtkcompat"
|
||||||
short_desc="Python2 bindings for GObject"
|
short_desc="Python2 bindings for GObject"
|
||||||
homepage="https://live.gnome.org/PyGObject"
|
homepage="https://live.gnome.org/PyGObject"
|
||||||
|
@ -17,56 +16,51 @@ checksum=2a3cad1517916b74e131e6002c3824361aee0671ffb0d55ded119477fc1c2c5f
|
||||||
|
|
||||||
nocross="http://build.voidlinux.eu/builders/armv7l_builder/builds/8676/steps/shell_3/logs/stdio"
|
nocross="http://build.voidlinux.eu/builders/armv7l_builder/builds/8676/steps/shell_3/logs/stdio"
|
||||||
|
|
||||||
|
pre_configure() {
|
||||||
|
mkdir -p gi-${py2_ver}
|
||||||
|
mv * gi-${py2_ver} || true
|
||||||
|
cp -a gi-${py2_ver} gi-${py3_ver}
|
||||||
|
}
|
||||||
do_configure() {
|
do_configure() {
|
||||||
# python2
|
for pyver in $py2_ver $py3_ver; do
|
||||||
mkdir ${wrksrc}/build-python2
|
cd ${wrksrc}/gi-${pyver}
|
||||||
cd ${wrksrc}/build-python2
|
./configure ${configure_args} --with-python=/usr/bin/python${pyver}
|
||||||
../configure ${configure_args} --with-python=/usr/bin/python
|
done
|
||||||
|
|
||||||
# python3.4
|
|
||||||
mkdir ${wrksrc}/build-python3.4
|
|
||||||
cd ${wrksrc}/build-python3.4
|
|
||||||
../configure ${configure_args} --with-python=/usr/bin/python3.4
|
|
||||||
}
|
}
|
||||||
do_build() {
|
do_build() {
|
||||||
# python2
|
for pyver in $py2_ver $py3_ver; do
|
||||||
cd ${wrksrc}/build-python2
|
cd ${wrksrc}/gi-${pyver}
|
||||||
make ${makejobs}
|
|
||||||
|
|
||||||
# python3.4
|
|
||||||
cd ${wrksrc}/build-python3.4
|
|
||||||
make ${makejobs}
|
make ${makejobs}
|
||||||
|
done
|
||||||
}
|
}
|
||||||
do_install() {
|
do_install() {
|
||||||
# python2
|
for pyver in $py2_ver $py3_ver; do
|
||||||
cd ${wrksrc}/build-python2
|
cd ${wrksrc}/gi-${pyver}
|
||||||
make DESTDIR=${DESTDIR} install
|
|
||||||
|
|
||||||
# python3.4
|
|
||||||
cd ${wrksrc}/build-python3.4
|
|
||||||
make DESTDIR=${DESTDIR} install
|
make DESTDIR=${DESTDIR} install
|
||||||
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
python3.4-gobject_package() {
|
python3-gobject_package() {
|
||||||
depends="gir-freedesktop python3.4-cairo>=1.10.0_2"
|
replaces="python3.4-gobject>=0"
|
||||||
replaces="py3gobject>=0"
|
pycompile_module="gi pygtkcompat"
|
||||||
short_desc="Python3.4 bindings for GObject"
|
depends="gir-freedesktop python3-cairo"
|
||||||
|
short_desc="${short_desc/Python2/Python3}"
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
vmkdir usr/lib
|
vmove ${py3_sitelib}
|
||||||
mv ${DESTDIR}/usr/lib/python3.4 ${PKGDESTDIR}/usr/lib
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
python-gobject-devel_package() {
|
python-gobject-devel_package() {
|
||||||
depends="libgirepository-devel
|
depends="libgirepository-devel python-cairo-devel python3-cairo-devel
|
||||||
python-cairo-devel>=1.10.0_2
|
|
||||||
python3.4-cairo-devel>=1.10.0_2
|
|
||||||
python-gobject>=${version}_${revision}
|
python-gobject>=${version}_${revision}
|
||||||
python3.4-gobject>=${version}_${revision}"
|
python3-gobject>=${version}_${revision}"
|
||||||
replaces="pygobject-devel>=0"
|
|
||||||
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
|
||||||
rm -rf ${DESTDIR}/python3.4
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
python3.4-gobject_package() {
|
||||||
|
build_style=meta
|
||||||
|
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
|
||||||
|
depends="python3-gobject>=${version}_${revision}"
|
||||||
|
}
|
||||||
|
|
1
srcpkgs/python3-gobject
Symbolic link
1
srcpkgs/python3-gobject
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
python-gobject
|
Loading…
Reference in a new issue