Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 6 Jul 2014 16:43:43 +0000 (UTC)
From:      Pawel Pekala <pawel@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r360939 - head/print/latexmk
Message-ID:  <201407061643.s66GhhQ4094042@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pawel
Date: Sun Jul  6 16:43:42 2014
New Revision: 360939
URL: http://svnweb.freebsd.org/changeset/ports/360939
QAT: https://qat.redports.org/buildarchive/r360939/

Log:
  Add staging support

Modified:
  head/print/latexmk/Makefile

Modified: head/print/latexmk/Makefile
==============================================================================
--- head/print/latexmk/Makefile	Sun Jul  6 16:42:45 2014	(r360938)
+++ head/print/latexmk/Makefile	Sun Jul  6 16:43:42 2014	(r360939)
@@ -11,8 +11,6 @@ COMMENT=	Tool to completely automate gen
 
 LICENSE=	GPLv2 # (or later)
 
-OPTIONS_DEFINE=	DOCS EXAMPLES
-
 NO_WRKSUBDIR=	yes
 NO_BUILD=	yes
 
@@ -20,28 +18,25 @@ USES=		perl5 zip
 USE_PERL5=	run
 USE_TEX=	latex
 
-MAN1=		latexmk.1
 PORTDOCS=	*
 PORTEXAMPLES=	*
-PLIST_FILES=	bin/latexmk
+PLIST_FILES=	bin/latexmk man/man1/latexmk.1.gz
 
-NO_STAGE=	yes
-.include <bsd.port.options.mk>
+OPTIONS_DEFINE=	DOCS EXAMPLES
 
 do-install:
-	(cd ${WRKSRC} && ${INSTALL_SCRIPT} latexmk.pl ${PREFIX}/bin/latexmk)
-	(cd ${WRKSRC} && ${INSTALL_MAN} latexmk.1 ${MANPREFIX}/man/man1)
-.if ${PORT_OPTIONS:MDOCS}
-	@${MKDIR} ${DOCSDIR}
+	(cd ${WRKSRC} && ${INSTALL_SCRIPT} latexmk.pl \
+		${STAGEDIR}${PREFIX}/bin/latexmk)
+	(cd ${WRKSRC} && ${INSTALL_MAN} latexmk.1 \
+		${STAGEDIR}${MANPREFIX}/man/man1)
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
 .for doc in CHANGES INSTALL README latexmk.pdf latexmk.ps latexmk.txt
-	(cd ${WRKSRC} && ${INSTALL_DATA} ${doc} ${DOCSDIR})
+	(cd ${WRKSRC} && ${INSTALL_DATA} ${doc} ${STAGEDIR}${DOCSDIR})
 .endfor
-.endif
-.if ${PORT_OPTIONS:MEXAMPLES}
-	@${MKDIR} ${EXAMPLESDIR}
-	@(cd ${WRKSRC} && ${COPYTREE_SHARE} example_rcfiles ${EXAMPLESDIR})
-	@(cd ${WRKSRC} && ${COPYTREE_BIN} extra-scripts ${EXAMPLESDIR})
-.endif
-	@${CAT} ${PKGMESSAGE}
+	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+	@(cd ${WRKSRC} && ${COPYTREE_SHARE} example_rcfiles \
+		${STAGEDIR}${EXAMPLESDIR})
+	@(cd ${WRKSRC} && ${COPYTREE_BIN} extra-scripts \
+		${STAGEDIR}${EXAMPLESDIR})
 
 .include <bsd.port.mk>



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