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