python-dbus: fix arm python2.7 bindings
This commit is contained in:
parent
70d91717ef
commit
4b91e95a6c
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'python-dbus'
|
# Template file for 'python-dbus'
|
||||||
pkgname=python-dbus
|
pkgname=python-dbus
|
||||||
version=1.2.0
|
version=1.2.0
|
||||||
revision=6
|
revision=7
|
||||||
lib32disabled=yes
|
lib32disabled=yes
|
||||||
wrksrc="dbus-python-${version}"
|
wrksrc="dbus-python-${version}"
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
|
@ -24,41 +24,45 @@ _do_pre_configure() {
|
||||||
pysufx="m"
|
pysufx="m"
|
||||||
fi
|
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
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pre_configure() {
|
||||||
|
mkdir -p python2
|
||||||
|
mv * python2 || true
|
||||||
|
cp -a python2 python3.4
|
||||||
|
}
|
||||||
|
|
||||||
do_configure() {
|
do_configure() {
|
||||||
# python2
|
# python2
|
||||||
mkdir ${wrksrc}/build-python2
|
cd ${wrksrc}/python2
|
||||||
cd ${wrksrc}/build-python2
|
|
||||||
_do_pre_configure
|
_do_pre_configure
|
||||||
env PYTHON=python ../configure ${configure_args}
|
env PYTHON=python ./configure ${configure_args}
|
||||||
|
|
||||||
# python3.4
|
# python3.4
|
||||||
mkdir ${wrksrc}/build-python3.4
|
cd ${wrksrc}/python3.4
|
||||||
cd ${wrksrc}/build-python3.4
|
|
||||||
_do_pre_configure 3.4
|
_do_pre_configure 3.4
|
||||||
env PYTHON=python3.4 ../configure ${configure_args}
|
env PYTHON=python3.4 ./configure ${configure_args}
|
||||||
}
|
}
|
||||||
|
|
||||||
do_build() {
|
do_build() {
|
||||||
# python2
|
# python2
|
||||||
cd ${wrksrc}/build-python2
|
cd ${wrksrc}/python2
|
||||||
make ${makejobs}
|
make ${makejobs}
|
||||||
|
|
||||||
# python3.4
|
# python3.4
|
||||||
cd ${wrksrc}/build-python3.4
|
cd ${wrksrc}/python3.4
|
||||||
make ${makejobs}
|
make ${makejobs}
|
||||||
}
|
}
|
||||||
|
|
||||||
do_install() {
|
do_install() {
|
||||||
# python2
|
# python2
|
||||||
cd ${wrksrc}/build-python2
|
cd ${wrksrc}/python2
|
||||||
make DESTDIR=${DESTDIR} install
|
make DESTDIR=${DESTDIR} install
|
||||||
|
|
||||||
# python3.4
|
# python3.4
|
||||||
cd ${wrksrc}/build-python3.4
|
cd ${wrksrc}/python3.4
|
||||||
make DESTDIR=${DESTDIR} install
|
make DESTDIR=${DESTDIR} install
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue