Simplify conf file handling
This commit is contained in:
parent
d543a92698
commit
3bb1787261
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=439872
@ -16,22 +16,11 @@ LICENSE_FILE_GPLv2= ${WRKSRC}/COPYING
|
||||
|
||||
RUN_DEPENDS= docbook-xsl>=0:textproc/docbook-xsl
|
||||
|
||||
NO_ARCH= yes
|
||||
GNU_CONFIGURE= yes
|
||||
NO_ARCH= yes
|
||||
USE_GNOME= libxml2:run libxslt:run
|
||||
USES= gmake gnome python:2 shebangfix
|
||||
|
||||
CONF_FILES= asciidoc.conf docbook45.conf filters/code/code-filter.conf \
|
||||
filters/graphviz/graphviz-filter.conf \
|
||||
filters/latex/latex-filter.conf \
|
||||
filters/music/music-filter.conf \
|
||||
filters/source/source-highlight-filter.conf help.conf \
|
||||
html4.conf html5.conf lang-cs.conf lang-de.conf lang-el.conf \
|
||||
lang-en.conf lang-es.conf lang-fr.conf lang-hu.conf \
|
||||
lang-it.conf lang-nl.conf lang-pt-BR.conf lang-ro.conf \
|
||||
lang-ru.conf lang-uk.conf latex.conf slidy.conf text.conf \
|
||||
xhtml11.conf xhtml11-quirks.conf
|
||||
|
||||
SHEBANG_FILES= a2x.py \
|
||||
asciidoc.py \
|
||||
asciidocapi.py \
|
||||
@ -42,9 +31,7 @@ SHEBANG_FILES= a2x.py \
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e '/^INSTALL_PROG/ s|INSTALL_PROGRAM|INSTALL_SCRIPT|; s|\.conf|&.sample|' ${WRKSRC}/Makefile.in
|
||||
.for conf_file in ${CONF_FILES}
|
||||
@cd ${WRKSRC}/ && ${MV} ${conf_file} ${conf_file}.sample
|
||||
.endfor
|
||||
@${FIND} ${WRKSRC} -name '*.conf' | ${XARGS} -I % ${MV} % %.sample
|
||||
|
||||
post-install:
|
||||
${MKDIR} ${STAGEDIR}${PYTHON_SITELIBDIR}/
|
||||
|
Loading…
Reference in New Issue
Block a user