Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

asciidoc: Fix documentation install directory #17933

Merged
merged 1 commit into from
Mar 11, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
11 changes: 9 additions & 2 deletions textproc/asciidoc/Portfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 \
Expand Down Expand Up @@ -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 \
Expand Down