svn commit: r346242 - head/print/tgif2tex
Emanuel Haupt
ehaupt at FreeBSD.org
Thu Feb 27 07:49:26 UTC 2014
Author: ehaupt
Date: Thu Feb 27 07:49:26 2014
New Revision: 346242
URL: http://svnweb.freebsd.org/changeset/ports/346242
QAT: https://qat.redports.org/buildarchive/r346242/
Log:
Support staging
Modified:
head/print/tgif2tex/Makefile
Modified: head/print/tgif2tex/Makefile
==============================================================================
--- head/print/tgif2tex/Makefile Thu Feb 27 07:45:19 2014 (r346241)
+++ head/print/tgif2tex/Makefile Thu Feb 27 07:49:26 2014 (r346242)
@@ -13,7 +13,7 @@ COMMENT= Converting texts in figure by t
LICENSE= GPLv2
PLIST_FILES= bin/tgif2tex
-PORTDOCS= how-to-use.dvi how-to-use.ps how-to-use.tex \
+PORTDOCS= how-to-use.dvi how-to-use.ps how-to-use.tex \
example.obj example.tex \
original.dps original.tps \
pythagoras.dps pythagoras.tps \
@@ -27,21 +27,17 @@ OPTIONS_DEFINE= DOCS
USES= perl5
USE_PERL5= run
+NO_BUILD= yes
-NO_STAGE= yes
-.include <bsd.port.options.mk>
-
-do-build:
+post-patch:
${REINPLACE_CMD} \
-e "s,%%LOCALBASE%%,${LOCALBASE}," \
-e "s,^#!/usr/bin/perl,#!${PERL}," \
${WRKSRC}/tgif2tex
do-install:
- ${INSTALL_SCRIPT} ${WRKSRC}/tgif2tex ${PREFIX}/bin/tgif2tex
-.if ${PORT_OPTIONS:MDOCS}
- ${MKDIR} ${DOCSDIR}
- cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
-.endif
+ ${INSTALL_SCRIPT} ${WRKSRC}/tgif2tex ${STAGEDIR}${PREFIX}/bin
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>
More information about the svn-ports-head
mailing list