blob: a5632e873f42cc944eb3ef107716ce5d29397a36 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
PORTNAME= asciidoc
PORTVERSION= 10.2.1
CATEGORIES= textproc
MASTER_SITES= PYPI
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Text document format for writing short documents and man pages
WWW= https://github.com/asciidoc-py/asciidoc-py
LICENSE= GPLv2+
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= docbook-xsl>=0:textproc/docbook-xsl \
${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR} \
xmllint:textproc/libxml2 \
xsltproc:textproc/libxslt
RUN_DEPENDS= docbook-xsl>=0:textproc/docbook-xsl \
xmllint:textproc/libxml2 \
xsltproc:textproc/libxslt
USES= python shebangfix
USE_PYTHON= autoplist noflavors pep517
NO_ARCH= yes
PLIST_FILES= share/man/man1/a2x.1.gz \
share/man/man1/asciidoc.1.gz
SHEBANG_FILES= asciidoc/resources/filters/*.py \
asciidoc/resources/filters/*/*.py
post-build:
@cd ${WRKSRC}/ && ${PYTHON_CMD} -m asciidoc.a2x -f manpage doc/a2x.1.txt
@cd ${WRKSRC}/ && ${PYTHON_CMD} -m asciidoc.a2x -f manpage doc/asciidoc.1.txt
post-install:
${INSTALL_MAN} ${WRKSRC}/doc/a2x.1 ${WRKSRC}/doc/asciidoc.1 ${STAGEDIR}${PREFIX}/share/man/man1/
.include <bsd.port.mk>
|