evemu: rebuild for Python 3.12

This commit is contained in:
Andrew J. Hesford 2023-09-23 21:04:03 -04:00
parent 613d8c3836
commit 0bb5966706

View file

@ -1,7 +1,7 @@
# Template file for 'evemu'
pkgname=evemu
version=2.7.0
revision=3
revision=4
build_style=gnu-configure
hostmakedepends="pkg-config python3 asciidoc xmlto"
makedepends="libevdev-devel"
@ -12,6 +12,16 @@ homepage="https://freedesktop.org/wiki/Evemu/"
distfiles=${FREEDESKTOP_SITE}/evemu/evemu-$version.tar.xz
checksum=78c9400d55eeeb5ab75161360543f9376438c4da4934cb34cdda5b46021ae379
post_extract() {
# The py-compile helper uses the imp module, removed in Python 3.12;
# besides, we don't want the module pre-compiled anyway, so just drop it
: > config-aux/py-compile
cat > config-aux/py-compile <<-'EOF'
#!/bin/sh
: "$@"
EOF
}
post_install() {
sed -n '/Copyright/,/IN THE SOFTWARE/p' src/evemu.c >LICENSE
vlicense LICENSE