brltty: fix cross with Python 3.8.

This commit is contained in:
Leah Neukirchen 2019-12-24 01:23:49 +01:00
parent f986d5c108
commit 44e166c568

View file

@ -1,7 +1,7 @@
# Template file for 'brltty' # Template file for 'brltty'
pkgname=brltty pkgname=brltty
version=6.0 version=6.0
revision=3 revision=4
build_style=gnu-configure build_style=gnu-configure
configure_args="--enable-gpm --with-screen-driver=lx,sc configure_args="--enable-gpm --with-screen-driver=lx,sc
--with-tables-directory=/usr/share/brltty PYTHON=/usr/bin/python3" --with-tables-directory=/usr/share/brltty PYTHON=/usr/bin/python3"
@ -38,6 +38,20 @@ post_configure() {
esac esac
} }
pre_build() {
if [ "$CROSS_BUILD" ]; then
for f in ${XBPS_CROSS_BASE}/${py3_lib}/_sysconfigdata_*; do
f=${f##*/}
export _PYTHON_SYSCONFIGDATA_NAME=${f%.py}
done
export PYTHONPATH=${XBPS_CROSS_BASE}/${py3_lib}
fi
}
pre_install() {
pre_build
}
do_install() { do_install() {
make INSTALL_ROOT=${DESTDIR} install make INSTALL_ROOT=${DESTDIR} install
vsv $pkgname vsv $pkgname