mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-12 01:53:50 +02:00
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
|
version=5.5
|
||||||
revision=3
|
revision=3
|
||||||
build_style=gnu-configure
|
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"
|
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"
|
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"
|
short_desc="Braille display driver for Linux/Unix"
|
||||||
|
@ -25,8 +25,8 @@ pre_configure() {
|
||||||
*-musl) # There is no ldconfig in musl libc
|
*-musl) # There is no ldconfig in musl libc
|
||||||
sed -e "s;/sbin/ldconfig -n;echo;" -i configure
|
sed -e "s;/sbin/ldconfig -n;echo;" -i configure
|
||||||
esac
|
esac
|
||||||
export PYTHON_LIBS="-L${XBPS_CROSS_BASE}/usr/lib -lpython3.5m"
|
export PYTHON_LIBS="-L${XBPS_CROSS_BASE}/usr/lib -lpython${py3_ver}m"
|
||||||
export PYTHON_CPPFLAGS="-I${XBPS_CROSS_BASE}/usr/include/python3.5m"
|
export PYTHON_CPPFLAGS="-I${XBPS_CROSS_BASE}/${py3_inc}"
|
||||||
}
|
}
|
||||||
post_configure() {
|
post_configure() {
|
||||||
case "$XBPS_TARGET_MACHINE" in
|
case "$XBPS_TARGET_MACHINE" in
|
||||||
|
@ -55,9 +55,8 @@ brltty-devel_package() {
|
||||||
}
|
}
|
||||||
|
|
||||||
python3-brlapi_package() {
|
python3-brlapi_package() {
|
||||||
short_desc+=" - Python 3 bindings"
|
short_desc+=" - Python3 bindings"
|
||||||
depends="${sourcepkg}-${version}_${revision} python3"
|
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
vmove usr/lib/python3.5/site-packages
|
vmove ${py3_sitelib}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue