python-dbus: fix arm python2.7 bindings

This commit is contained in:
Steve Prybylski 2015-10-05 14:32:18 -04:00
parent 70d91717ef
commit 4b91e95a6c
1 changed files with 16 additions and 12 deletions

View File

@ -1,7 +1,7 @@
# Template file for 'python-dbus'
pkgname=python-dbus
version=1.2.0
revision=6
revision=7
lib32disabled=yes
wrksrc="dbus-python-${version}"
build_style=gnu-configure
@ -24,41 +24,45 @@ _do_pre_configure() {
pysufx="m"
fi
sed -i "s,PYTHON_INCLUDES=.*,PYTHON_INCLUDES=-I${XBPS_CROSS_BASE}/usr/include/python${pyver}${pysufx},g" ../configure
sed -i "s,PYTHON_INCLUDES=.*,PYTHON_INCLUDES=-I${XBPS_CROSS_BASE}/usr/include/python${pyver}${pysufx},g" configure
fi
}
pre_configure() {
mkdir -p python2
mv * python2 || true
cp -a python2 python3.4
}
do_configure() {
# python2
mkdir ${wrksrc}/build-python2
cd ${wrksrc}/build-python2
cd ${wrksrc}/python2
_do_pre_configure
env PYTHON=python ../configure ${configure_args}
env PYTHON=python ./configure ${configure_args}
# python3.4
mkdir ${wrksrc}/build-python3.4
cd ${wrksrc}/build-python3.4
cd ${wrksrc}/python3.4
_do_pre_configure 3.4
env PYTHON=python3.4 ../configure ${configure_args}
env PYTHON=python3.4 ./configure ${configure_args}
}
do_build() {
# python2
cd ${wrksrc}/build-python2
cd ${wrksrc}/python2
make ${makejobs}
# python3.4
cd ${wrksrc}/build-python3.4
cd ${wrksrc}/python3.4
make ${makejobs}
}
do_install() {
# python2
cd ${wrksrc}/build-python2
cd ${wrksrc}/python2
make DESTDIR=${DESTDIR} install
# python3.4
cd ${wrksrc}/build-python3.4
cd ${wrksrc}/python3.4
make DESTDIR=${DESTDIR} install
}