afew: rebuild for Python 3.12

This commit is contained in:
Andrew J. Hesford 2023-09-23 21:04:14 -04:00
parent 5c0a8d59d0
commit 5621cc2e19
2 changed files with 14 additions and 2 deletions

View File

@ -0,0 +1,11 @@
--- ./afew/Settings.py.orig 2023-09-28 15:08:53.611940644 -0400
+++ ./afew/Settings.py 2023-09-28 15:09:06.740017084 -0400
@@ -18,7 +18,7 @@
# preserve the capitalization of the keys.
settings.optionxform = str
-settings.readfp(open(os.path.join(os.path.dirname(__file__), 'defaults', 'afew.config')))
+settings.read_file(open(os.path.join(os.path.dirname(__file__), 'defaults', 'afew.config')))
settings.read(os.path.join(user_config_dir, 'config'))
# All the values for keys listed here are interpreted as ;-delimited lists

View File

@ -1,7 +1,7 @@
# Template file for 'afew'
pkgname=afew
version=3.0.1
revision=5
revision=6
build_style=python3-module
hostmakedepends="python3-setuptools_scm python3-Sphinx pkg-config"
depends="notmuch-python3 python3-dkimpy python3-chardet notmuch"
@ -14,7 +14,8 @@ distfiles="${PYPI_SITE}/a/afew/afew-${version}.tar.gz"
checksum=ce857fe1a3bc0982c1dac81aef66cacc148e4f9db06da720f869392af1c2ee72
post_build() {
python3 setup.py build_sphinx -b man
mkdir -p build/sphinx/man
python3 -m sphinx -b man docs build/sphinx/man
}
post_install() {