Date: Mon, 6 Jan 2014 15:11:48 +0000 (UTC) From: Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r338893 - head/textproc/asciidoc Message-ID: <201401061511.s06FBmvl003236@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: sunpoet Date: Mon Jan 6 15:11:48 2014 New Revision: 338893 URL: http://svnweb.freebsd.org/changeset/ports/338893 Log: - Install asciidocapi.py - Bump PORTREVISION for package change - While I'm here, fix shebang PR: ports/185107 Submitted by: Kevin Zheng <kevinz5000@gmail.com> Modified: head/textproc/asciidoc/Makefile Modified: head/textproc/asciidoc/Makefile ============================================================================== --- head/textproc/asciidoc/Makefile Mon Jan 6 15:11:43 2014 (r338892) +++ head/textproc/asciidoc/Makefile Mon Jan 6 15:11:48 2014 (r338893) @@ -3,7 +3,7 @@ PORTNAME= asciidoc PORTVERSION= 8.6.9 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= textproc MASTER_SITES= SF @@ -17,7 +17,7 @@ RUN_DEPENDS= python2:${PORTSDIR}/lang/py GNU_CONFIGURE= yes USE_PYTHON= -2.7 -USES= gmake +USES= gmake shebangfix CONF_FILES= asciidoc.conf docbook45.conf filters/code/code-filter.conf \ filters/graphviz/graphviz-filter.conf \ @@ -30,14 +30,25 @@ CONF_FILES= asciidoc.conf docbook45.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 \ + filters/latex/latex2png.py \ + filters/graphviz/graphviz2png.py \ + filters/music/music2png.py \ + filters/code/code-filter.py +python_OLD_CMD= ${SETENV} python +python_CMD= ${PYTHON_CMD} + post-patch: @${REINPLACE_CMD} -e '/^INSTALL_PROG/ s|INSTALL_PROGRAM|INSTALL_SCRIPT|; s|\.conf|&.sample|' ${WRKSRC}/Makefile.in - @${REINPLACE_CMD} -e '1 s|${SETENV} python|&2|' ${WRKSRC}/a2x.py ${WRKSRC}/asciidoc.py .for conf_file in ${CONF_FILES} @cd ${WRKSRC}/ && ${MV} ${conf_file} ${conf_file}.sample .endfor post-install: + ${MKDIR} ${STAGEDIR}${PYTHON_SITELIBDIR}/ + ${INSTALL_DATA} ${WRKSRC}/asciidocapi.py ${STAGEDIR}${PYTHON_SITELIBDIR}/ .for conf_file in ${CONF_FILES} @if [ ! -f ${ETCDIR}/${conf_file} ]; then \ ${CP} -p ${STAGEDIR}${ETCDIR}/${conf_file}.sample ${STAGEDIR}${ETCDIR}/${conf_file}; \
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201401061511.s06FBmvl003236>