brltty: do not hardcode python3 version, cleanups
This commit is contained in:
parent
7c7a7cd2f9
commit
dcbcc53188
1 changed files with 5 additions and 6 deletions
|
@ -3,7 +3,7 @@ pkgname=brltty
|
|||
version=5.5
|
||||
revision=3
|
||||
build_style=gnu-configure
|
||||
hostmakedepends="pkg-config python3-Cython python3"
|
||||
hostmakedepends="pkg-config python3-Cython"
|
||||
makedepends="ncurses-devel alsa-lib-devel gpm-devel icu-devel python3-devel libbluetooth-devel"
|
||||
configure_args="--enable-gpm --with-screen-driver=lx,sc --with-tables-directory=/usr/share/brltty PYTHON=/usr/bin/python3"
|
||||
short_desc="Braille display driver for Linux/Unix"
|
||||
|
@ -25,8 +25,8 @@ pre_configure() {
|
|||
*-musl) # There is no ldconfig in musl libc
|
||||
sed -e "s;/sbin/ldconfig -n;echo;" -i configure
|
||||
esac
|
||||
export PYTHON_LIBS="-L${XBPS_CROSS_BASE}/usr/lib -lpython3.5m"
|
||||
export PYTHON_CPPFLAGS="-I${XBPS_CROSS_BASE}/usr/include/python3.5m"
|
||||
export PYTHON_LIBS="-L${XBPS_CROSS_BASE}/usr/lib -lpython${py3_ver}m"
|
||||
export PYTHON_CPPFLAGS="-I${XBPS_CROSS_BASE}/${py3_inc}"
|
||||
}
|
||||
post_configure() {
|
||||
case "$XBPS_TARGET_MACHINE" in
|
||||
|
@ -55,9 +55,8 @@ brltty-devel_package() {
|
|||
}
|
||||
|
||||
python3-brlapi_package() {
|
||||
short_desc+=" - Python 3 bindings"
|
||||
depends="${sourcepkg}-${version}_${revision} python3"
|
||||
short_desc+=" - Python3 bindings"
|
||||
pkg_install() {
|
||||
vmove usr/lib/python3.5/site-packages
|
||||
vmove ${py3_sitelib}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue