diff --git a/textproc/asciidoc/Portfile b/textproc/asciidoc/Portfile index a1c6165809e5..33ebdc7b18cb 100644 --- a/textproc/asciidoc/Portfile +++ b/textproc/asciidoc/Portfile @@ -6,7 +6,7 @@ PortGroup github 1.0 PortGroup python 1.0 github.setup asciidoc asciidoc-py3 10.2.0 -revision 1 +revision 2 checksums rmd160 e6369eddc6d72a4ea910f06f320881be105cd348 \ sha256 f830cb726d0b1448a451e916a7e60abfd27fce7f4dbce4c0c8f1ff856c1765ee \ size 1199960 @@ -34,6 +34,13 @@ homepage https://asciidoc-py.github.io/ # Need autoconf to generate and install docs; python 1.0 PG disables configure, we can just re-enable it use_autoreconf yes use_configure yes +# The default for docdir is ${datarootdir}/doc/${PACKAGE_TARNAME}, and while +# these have the values we expect them to have in the configure script, this +# variable is left unexpanded and ${PACKAGE_TARNAME} is not defined in the +# Makefile after Makefile generation, ends up empty, and the documentation is +# installed in ${datarootdir}/doc. This is clearly a bug, but I'm not sure +# whether it is in autoconf or asciidoc. +configure.args --docdir=${prefix}/share/doc/${name} python.versions 311 python.default_version \ @@ -62,7 +69,7 @@ post-build { } post-destroot { - system -W ${worksrcpath} "make docs DESTDIR='${destroot}${prefix}'" + system -W ${worksrcpath} "make docs DESTDIR='${destroot}'" xinstall -d -m 0755 ${destroot}${prefix}/share/man/man1 xinstall -m 0644 -W ${worksrcpath} \ doc/a2x.1 \