Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 Feb 2014 07:49:26 +0000 (UTC)
From:      Emanuel Haupt <ehaupt@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r346242 - head/print/tgif2tex
Message-ID:  <201402270749.s1R7nQ1u097670@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201402270749.s1R7nQ1u097670>