2009-11-30 13:34:58 +00:00
|
|
|
# Template file for 'dbus-python'
|
|
|
|
pkgname=dbus-python
|
2013-09-27 01:29:58 +00:00
|
|
|
version=1.2.0
|
2011-11-12 08:45:15 +00:00
|
|
|
revision=1
|
2013-09-27 01:29:58 +00:00
|
|
|
hostmakedepends="pkg-config"
|
|
|
|
makedepends="glib-devel dbus-glib-devel python-devel python3-devel>=3.3.2_2"
|
2009-11-30 13:34:58 +00:00
|
|
|
short_desc="D-Bus Python bindings"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2011-10-25 13:59:23 +00:00
|
|
|
license="GPL-2, LGPL-2.1"
|
2012-06-11 21:05:40 +00:00
|
|
|
homepage="http://www.freedesktop.org/wiki/Software/DBusBindings"
|
|
|
|
distfiles="http://dbus.freedesktop.org/releases/$pkgname/$pkgname-$version.tar.gz"
|
2013-09-27 01:29:58 +00:00
|
|
|
checksum=e12c6c8b2bf3a9302f75166952cbe41d6b38c3441bbc6767dbd498942316c6df
|
|
|
|
|
|
|
|
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
|
2009-11-30 13:34:58 +00:00
|
|
|
|
2011-10-25 13:59:23 +00:00
|
|
|
rm -rf ${DESTDIR}/usr/share/doc
|
|
|
|
}
|
2013-04-12 07:46:44 +00:00
|
|
|
|
2013-09-27 01:29:58 +00:00
|
|
|
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
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-04-12 07:46:44 +00:00
|
|
|
dbus-python_package() {
|
|
|
|
pycompile_module="dbus"
|
|
|
|
depends="python"
|
|
|
|
pkg_install() {
|
2013-09-27 01:29:58 +00:00
|
|
|
rm -rf ${DESTDIR}/python3
|
|
|
|
vmove all
|
2013-04-12 07:46:44 +00:00
|
|
|
}
|
|
|
|
}
|