geis: rebuild for Python 3.12

This commit is contained in:
Andrew J. Hesford 2023-09-23 21:04:00 -04:00
parent 2585630029
commit ef430578be

View file

@ -1,7 +1,7 @@
# Template file for 'geis'
pkgname=geis
version=2.2.17
revision=11
revision=12
build_style="gnu-configure"
configure_args="--disable-static"
hostmakedepends="pkg-config python3-devel"
@ -17,6 +17,16 @@ if [ -n "$CROSS_BUILD" ]; then
configure_args+=" --enable-integration-tests=no"
fi
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
}
geis-devel_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"