blob: 80fb470bb6e7be2902038cc76b84c876eac9a6ed (
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
|
PORTNAME= asciidoc
PORTVERSION= 10.2.0
PORTREVISION= 1
CATEGORIES= textproc
MASTER_SITES= PYPI \
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
WWW= https://github.com/asciidoc-py/asciidoc-py
LICENSE= GPLv2+
BUILD_DEPENDS= ${RUN_DEPENDS}
RUN_DEPENDS= docbook-xsl>=0:textproc/docbook-xsl
USES= gnome python:3.5+ shebangfix
USE_GNOME= libxml2 libxslt
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>
|