textproc/asciidoc: Build and install manpage

- Bump PORTREVISION for package change

PR:		267014
Reported by:	grahamperrin
This commit is contained in:
Po-Chuan Hsieh 2022-11-19 16:11:36 +08:00
parent 34b5d2c241
commit 639f229d59
No known key found for this signature in database
GPG Key ID: 9A4BD10F002DD04B
2 changed files with 20 additions and 2 deletions

View File

@ -1,7 +1,12 @@
PORTNAME= asciidoc
PORTVERSION= 10.2.0
PORTREVISION= 1
CATEGORIES= textproc
MASTER_SITES= CHEESESHOP
MASTER_SITES= CHEESESHOP \
https://github.com/asciidoc-py/asciidoc-py/raw/${PORTVERSION}/doc/:manpage
DISTFILES= asciidoc-${PORTVERSION}${EXTRACT_SUFX} \
a2x.1.txt:manpage
EXTRACT_ONLY= asciidoc-${PORTVERSION}${EXTRACT_SUFX}
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Text document format for writing short documents and man pages
@ -18,7 +23,18 @@ USE_PYTHON= autoplist distutils noflavors
NO_ARCH= yes
PLIST_FILES= share/man/man1/a2x.1.gz
SHEBANG_FILES= asciidoc/resources/filters/*.py \
asciidoc/resources/filters/*/*.py
post-patch:
@${CP} ${DISTDIR}/a2x.1.txt ${WRKSRC}/a2x.1.txt
post-build:
@cd ${WRKSRC} && ${PYTHON_CMD} -m asciidoc.a2x -f manpage a2x.1.txt
post-install:
${INSTALL_MAN} ${WRKSRC}/a2x.1 ${STAGEDIR}${PREFIX}/share/man/man1/
.include <bsd.port.mk>

View File

@ -1,3 +1,5 @@
TIMESTAMP = 1653925898
TIMESTAMP = 1665677644
SHA256 (asciidoc-10.2.0.tar.gz) = 91ff1dd4c85af7b235d03e0860f0c4e79dd1ff580fb610668a39b5c77b4ccace
SIZE (asciidoc-10.2.0.tar.gz) = 216824
SHA256 (a2x.1.txt) = 51b05d6be98531ec6c7ff0459dc82fdd103bc43ae682b954c98943ead4d03de7
SIZE (a2x.1.txt) = 13050