1 |
# $MidnightBSD$ |
2 |
|
3 |
PORTNAME= asciidoc |
4 |
PORTVERSION= 8.6.9 |
5 |
PORTREVISION= 2 |
6 |
CATEGORIES= textproc |
7 |
MASTER_SITES= SF |
8 |
|
9 |
MAINTAINER= ports@MidnightBSD.org |
10 |
COMMENT= Text document format for writing short documents and man pages |
11 |
|
12 |
LICENSE= gpl2 mit |
13 |
LICENSE_COMB= multi |
14 |
|
15 |
GNU_CONFIGURE= yes |
16 |
USES= gmake python:2 shebangfix |
17 |
|
18 |
CONF_FILES= asciidoc.conf docbook45.conf filters/code/code-filter.conf \ |
19 |
filters/graphviz/graphviz-filter.conf \ |
20 |
filters/latex/latex-filter.conf \ |
21 |
filters/music/music-filter.conf \ |
22 |
filters/source/source-highlight-filter.conf help.conf \ |
23 |
html4.conf html5.conf lang-cs.conf lang-de.conf lang-el.conf \ |
24 |
lang-en.conf lang-es.conf lang-fr.conf lang-hu.conf \ |
25 |
lang-it.conf lang-nl.conf lang-pt-BR.conf lang-ro.conf \ |
26 |
lang-ru.conf lang-uk.conf latex.conf slidy.conf text.conf \ |
27 |
xhtml11.conf xhtml11-quirks.conf |
28 |
|
29 |
SHEBANG_FILES= a2x.py \ |
30 |
asciidoc.py \ |
31 |
asciidocapi.py \ |
32 |
filters/latex/latex2png.py \ |
33 |
filters/graphviz/graphviz2png.py \ |
34 |
filters/music/music2png.py \ |
35 |
filters/code/code-filter.py |
36 |
|
37 |
post-patch: |
38 |
@${REINPLACE_CMD} -e '/^INSTALL_PROG/ s|INSTALL_PROGRAM|INSTALL_SCRIPT|; s|\.conf|&.sample|' ${WRKSRC}/Makefile.in |
39 |
.for conf_file in ${CONF_FILES} |
40 |
@cd ${WRKSRC}/ && ${MV} ${conf_file} ${conf_file}.sample |
41 |
.endfor |
42 |
|
43 |
post-install: |
44 |
${MKDIR} ${FAKE_DESTDIR}${PYTHON_SITELIBDIR}/ |
45 |
${INSTALL_DATA} ${WRKSRC}/asciidocapi.py ${FAKE_DESTDIR}${PYTHON_SITELIBDIR}/ |
46 |
.for conf_file in ${CONF_FILES} |
47 |
@if [ ! -f ${ETCDIR}/${conf_file} ]; then \ |
48 |
${CP} -p ${STAGEDIR}${ETCDIR}/${conf_file}.sample ${ETCDIR}/${conf_file}; \ |
49 |
fi |
50 |
.endfor |
51 |
|
52 |
.include <bsd.port.mk> |