diff --git a/srcpkgs/afew/patches/python3.12.patch b/srcpkgs/afew/patches/python3.12.patch new file mode 100644 index 00000000000..ee873a3e4b2 --- /dev/null +++ b/srcpkgs/afew/patches/python3.12.patch @@ -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 diff --git a/srcpkgs/afew/template b/srcpkgs/afew/template index eb0faa6d498..c3bf26e3609 100644 --- a/srcpkgs/afew/template +++ b/srcpkgs/afew/template @@ -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() {