dbus-python: update to 1.2.0; add python3 bindings.
This commit is contained in:
parent
d3e5be76fd
commit
abaf7213e7
3 changed files with 54 additions and 8 deletions
1
srcpkgs/dbus-python-devel
Symbolic link
1
srcpkgs/dbus-python-devel
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
dbus-python
|
|
@ -1,26 +1,70 @@
|
||||||
# Template file for 'dbus-python'
|
# Template file for 'dbus-python'
|
||||||
pkgname=dbus-python
|
pkgname=dbus-python
|
||||||
version=1.1.0
|
version=1.2.0
|
||||||
revision=1
|
revision=1
|
||||||
build_style=gnu-configure
|
hostmakedepends="pkg-config"
|
||||||
makedepends="pkg-config dbus-devel glib-devel dbus-glib-devel python-devel"
|
makedepends="glib-devel dbus-glib-devel python-devel python3-devel>=3.3.2_2"
|
||||||
short_desc="D-Bus Python bindings"
|
short_desc="D-Bus Python bindings"
|
||||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||||
license="GPL-2, LGPL-2.1"
|
license="GPL-2, LGPL-2.1"
|
||||||
homepage="http://www.freedesktop.org/wiki/Software/DBusBindings"
|
homepage="http://www.freedesktop.org/wiki/Software/DBusBindings"
|
||||||
distfiles="http://dbus.freedesktop.org/releases/$pkgname/$pkgname-$version.tar.gz"
|
distfiles="http://dbus.freedesktop.org/releases/$pkgname/$pkgname-$version.tar.gz"
|
||||||
checksum=2dc30b53cdb2e20f8d0265af3be878e9da68745cf9ccc72f75de869094c4fc60
|
checksum=e12c6c8b2bf3a9302f75166952cbe41d6b38c3441bbc6767dbd498942316c6df
|
||||||
long_desc="
|
|
||||||
This package provides Python bindings for D-BUS."
|
do_configure() {
|
||||||
|
mkdir build-python2 build-python3
|
||||||
|
|
||||||
|
cd $wrksrc/build-python2
|
||||||
|
PYTHON=python2 ../configure --prefix=/usr
|
||||||
|
|
||||||
|
cd $wrksrc/build-python3
|
||||||
|
PYTHON=python3 ../configure --prefix=/usr
|
||||||
|
}
|
||||||
|
|
||||||
|
do_build() {
|
||||||
|
cd $wrksrc/build-python2
|
||||||
|
make ${makejobs}
|
||||||
|
|
||||||
|
cd $wrksrc/build-python3
|
||||||
|
make ${makejobs}
|
||||||
|
}
|
||||||
|
|
||||||
|
do_install() {
|
||||||
|
cd $wrksrc/build-python2
|
||||||
|
make DESTDIR=${DESTDIR} install
|
||||||
|
|
||||||
|
cd $wrksrc/build-python3
|
||||||
|
make DESTDIR=${DESTDIR}/python3 install
|
||||||
|
|
||||||
post_install() {
|
|
||||||
rm -rf ${DESTDIR}/usr/share/doc
|
rm -rf ${DESTDIR}/usr/share/doc
|
||||||
}
|
}
|
||||||
|
|
||||||
|
dbus-python-devel_package() {
|
||||||
|
depends="python-devel
|
||||||
|
python3-devel>=3.3.2_2
|
||||||
|
dbus-python>=${version}
|
||||||
|
dbus-python3>=${version}"
|
||||||
|
short_desc+=" - development files"
|
||||||
|
pkg_install() {
|
||||||
|
vmove usr/include
|
||||||
|
vmove usr/lib/pkgconfig
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
dbus-python3_package() {
|
||||||
|
short_desc="D-Bus Python3 bindings"
|
||||||
|
depends="python3"
|
||||||
|
pkg_install() {
|
||||||
|
vmkdir usr/lib
|
||||||
|
mv ${DESTDIR}/python3/usr/lib/python3.3 ${PKGDESTDIR}/usr/lib
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
dbus-python_package() {
|
dbus-python_package() {
|
||||||
pycompile_module="dbus"
|
pycompile_module="dbus"
|
||||||
depends="python"
|
depends="python"
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
vmove usr
|
rm -rf ${DESTDIR}/python3
|
||||||
|
vmove all
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
1
srcpkgs/dbus-python3
Symbolic link
1
srcpkgs/dbus-python3
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
dbus-python
|
Loading…
Add table
Reference in a new issue