mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-07 07:33:48 +02:00
brltty: use python3 build_helper, clean up
This commit is contained in:
parent
74f4492e5f
commit
95fa41a7f3
1 changed files with 10 additions and 23 deletions
|
@ -1,8 +1,9 @@
|
||||||
# Template file for 'brltty'
|
# Template file for 'brltty'
|
||||||
pkgname=brltty
|
pkgname=brltty
|
||||||
version=6.4
|
version=6.4
|
||||||
revision=5
|
revision=6
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
|
build_helper=python3
|
||||||
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"
|
||||||
hostmakedepends="pkg-config python3-Cython"
|
hostmakedepends="pkg-config python3-Cython"
|
||||||
|
@ -10,8 +11,8 @@ makedepends="ncurses-devel alsa-lib-devel gpm-devel icu-devel python3-devel libb
|
||||||
short_desc="Braille display driver for Linux/Unix"
|
short_desc="Braille display driver for Linux/Unix"
|
||||||
maintainer="Orphaned <orphan@voidlinux.org>"
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
||||||
license="GPL-2.0-or-later, LGPL-2.1-or-later"
|
license="GPL-2.0-or-later, LGPL-2.1-or-later"
|
||||||
homepage="http://mielke.cc/brltty/"
|
homepage="https://brltty.app"
|
||||||
distfiles="http://mielke.cc/brltty/archive/brltty-${version}.tar.xz"
|
distfiles="https://brltty.app/archive/brltty-${version}.tar.xz"
|
||||||
checksum=bc7573b0d0ab865c36607945b64c209312405571788f3b409397726f6143eaa6
|
checksum=bc7573b0d0ab865c36607945b64c209312405571788f3b409397726f6143eaa6
|
||||||
python_version=3
|
python_version=3
|
||||||
|
|
||||||
|
@ -25,8 +26,8 @@ esac
|
||||||
|
|
||||||
pre_configure() {
|
pre_configure() {
|
||||||
case "$XBPS_TARGET_MACHINE" in
|
case "$XBPS_TARGET_MACHINE" in
|
||||||
*-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 -lpython${py3_ver}${py3_abiver}"
|
export PYTHON_LIBS="-L${XBPS_CROSS_BASE}/usr/lib -lpython${py3_ver}${py3_abiver}"
|
||||||
export PYTHON_CPPFLAGS="-I${XBPS_CROSS_BASE}/${py3_inc}"
|
export PYTHON_CPPFLAGS="-I${XBPS_CROSS_BASE}/${py3_inc}"
|
||||||
|
@ -34,31 +35,17 @@ pre_configure() {
|
||||||
|
|
||||||
post_configure() {
|
post_configure() {
|
||||||
case "$XBPS_TARGET_MACHINE" in
|
case "$XBPS_TARGET_MACHINE" in
|
||||||
arm*-musl) # Fix erroneously detected "#define HAVE_SYS_IO_H 1"
|
arm*-musl) # Fix erroneously detected "#define HAVE_SYS_IO_H 1"
|
||||||
sed -i config.h -e"s;#define HAVE_SYS_IO_H 1;#undef HAVE_SYS_IO_H;"
|
sed -i config.h -e"s;#define HAVE_SYS_IO_H 1;#undef HAVE_SYS_IO_H;" ;;
|
||||||
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 brltty
|
||||||
vsconf Documents/brltty.conf
|
vsconf Documents/brltty.conf
|
||||||
vdoc Documents/ChangeLog
|
vdoc Documents/ChangeLog
|
||||||
vcopy Documents/Manual-BRLTTY usr/share/doc/${pkgname}
|
vcopy Documents/Manual-BRLTTY usr/share/doc/brltty
|
||||||
}
|
}
|
||||||
|
|
||||||
brltty-devel_package() {
|
brltty-devel_package() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue