python-dbus: split python3-dbus subpackage, update python3-dbus to 1.3.2.
This commit is contained in:
parent
4b592188bf
commit
15c05bf59e
@ -3,9 +3,10 @@ pkgname=python-dbus
|
||||
version=1.2.18
|
||||
revision=3
|
||||
build_style=gnu-configure
|
||||
hostmakedepends="pkg-config python python3"
|
||||
makedepends="libglib-devel python3-devel python-devel"
|
||||
hostmakedepends="pkg-config python"
|
||||
makedepends="libglib-devel python-devel"
|
||||
depends="python dbus"
|
||||
checkdepends="${depends} python-gobject"
|
||||
short_desc="D-Bus Python2 bindings"
|
||||
maintainer="Orphaned <orphan@voidlinux.org>"
|
||||
license="MIT"
|
||||
@ -14,77 +15,16 @@ distfiles="https://dbus.freedesktop.org/releases/dbus-python/dbus-python-${versi
|
||||
checksum=92bdd1e68b45596c833307a5ff4b217ee6929a1502f5341bae28fd120acf7260
|
||||
lib32disabled=yes
|
||||
|
||||
pre_configure() {
|
||||
mkdir -p dbus-${py2_ver}
|
||||
mv * dbus-${py2_ver} || true
|
||||
cp -a dbus-${py2_ver} dbus-${py3_ver}
|
||||
}
|
||||
|
||||
do_configure() {
|
||||
local py_abiver py_inc pyver
|
||||
for pyver in $py2_ver $py3_ver; do
|
||||
case "${pyver}" in
|
||||
"${py2_ver}")
|
||||
py_inc="$py2_inc"
|
||||
;;
|
||||
*)
|
||||
py_inc="$py3_inc"
|
||||
py_abiver="$py3_abiver"
|
||||
;;
|
||||
esac
|
||||
|
||||
export PYTHON_CPPFLAGS="-I${XBPS_CROSS_BASE}/${py_inc}"
|
||||
export PYTHON_EXTRA_LIBS="-L${XBPS_CROSS_BASE}/usr/lib -lpython${pyver}${py_abiver}"
|
||||
export PYTHON_VERSION="${pyver}"
|
||||
|
||||
( cd dbus-${pyver} && ./configure ${configure_args} )
|
||||
|
||||
done
|
||||
|
||||
unset PYTHON_CPPFLAGS PYTHON_EXTRA_LIBS PYTHON_VERSION
|
||||
}
|
||||
|
||||
do_build() {
|
||||
local pyver
|
||||
for pyver in $py2_ver $py3_ver; do
|
||||
( cd dbus-${pyver} && make ${makejobs} )
|
||||
done
|
||||
}
|
||||
|
||||
do_install() {
|
||||
local pyver pysite eggver
|
||||
for pyver in $py2_ver $py3_ver; do
|
||||
case "${pyver}" in
|
||||
"${py2_ver}") pysite="${py2_sitelib}" ;;
|
||||
*) pysite="${py3_sitelib}" ;;
|
||||
esac
|
||||
|
||||
eggver="dbus_python-${version}-py${pyver}"
|
||||
(
|
||||
cd dbus-${pyver}
|
||||
make DESTDIR=${DESTDIR} install
|
||||
vcopy dbus_python.egg-info "${pysite}/${eggver}.egg-info"
|
||||
)
|
||||
done
|
||||
|
||||
vlicense dbus-${py2_ver}/COPYING
|
||||
}
|
||||
|
||||
python3-dbus_package() {
|
||||
lib32disabled=yes
|
||||
depends="python3 dbus"
|
||||
short_desc="${short_desc/Python2/Python3}"
|
||||
pkg_install() {
|
||||
vmove usr/lib/python3*
|
||||
vlicense dbus-${py3_ver}/COPYING
|
||||
}
|
||||
}
|
||||
|
||||
python3-dbus-devel_package() {
|
||||
depends="python3-devel python3-dbus>=${version}_${revision}"
|
||||
short_desc="${short_desc/Python2/Python3} - development files"
|
||||
pkg_install() {
|
||||
vmove usr/include
|
||||
vmove usr/lib/pkgconfig
|
||||
}
|
||||
export PYTHON_CPPFLAGS="-I${XBPS_CROSS_BASE}/${py2_inc}"
|
||||
export PYTHON_EXTRA_LIBS="-L${XBPS_CROSS_BASE}/usr/lib -lpython${py2_ver}"
|
||||
export PYTHON_VERSION="${py2_ver}"
|
||||
|
||||
post_install() {
|
||||
vcopy dbus_python.egg-info "${py2_sitelib}/dbus_python-${version}-py${py2_ver}.egg-info"
|
||||
|
||||
vlicense COPYING
|
||||
|
||||
# Conflict with python3-dbus-devel.
|
||||
rm ${DESTDIR}/usr/include/dbus-1.0/dbus/dbus-python.h \
|
||||
${DESTDIR}/usr/lib/pkgconfig/dbus-python.pc
|
||||
}
|
||||
|
@ -1 +0,0 @@
|
||||
python-dbus
|
@ -1 +1 @@
|
||||
python-dbus
|
||||
python3-dbus
|
34
srcpkgs/python3-dbus/template
Normal file
34
srcpkgs/python3-dbus/template
Normal file
@ -0,0 +1,34 @@
|
||||
# Template file for 'python3-dbus'
|
||||
pkgname=python3-dbus
|
||||
version=1.3.2
|
||||
revision=1
|
||||
build_style=gnu-configure
|
||||
hostmakedepends="pkg-config python3"
|
||||
makedepends="libglib-devel python3-devel"
|
||||
depends="python3 dbus"
|
||||
checkdepends="${depends} python3-gobject"
|
||||
short_desc="D-Bus Python3 bindings"
|
||||
maintainer="Orphaned <orphan@voidlinux.org>"
|
||||
license="MIT"
|
||||
homepage="https://www.freedesktop.org/wiki/Software/DBusBindings"
|
||||
distfiles="https://dbus.freedesktop.org/releases/dbus-python/dbus-python-${version}.tar.gz"
|
||||
checksum=ad67819308618b5069537be237f8e68ca1c7fcc95ee4a121fe6845b1418248f8
|
||||
lib32disabled=yes
|
||||
|
||||
export PYTHON_CPPFLAGS="-I${XBPS_CROSS_BASE}/${py3_inc}"
|
||||
export PYTHON_EXTRA_LIBS="-L${XBPS_CROSS_BASE}/usr/lib -lpython${py3_ver}${py3_abiver}"
|
||||
|
||||
post_install() {
|
||||
vcopy dbus_python.egg-info "${py3_sitelib}/dbus_python-${version}-py${py3_ver}.egg-info"
|
||||
|
||||
vlicense COPYING
|
||||
}
|
||||
|
||||
python3-dbus-devel_package() {
|
||||
depends="python3-devel python3-dbus>=${version}_${revision}"
|
||||
short_desc+=" - development files"
|
||||
pkg_install() {
|
||||
vmove usr/include
|
||||
vmove usr/lib/pkgconfig
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user