svn commit: r346494 - head/print/easylatex

Emanuel Haupt ehaupt at FreeBSD.org
Fri Feb 28 12:25:45 UTC 2014


Author: ehaupt
Date: Fri Feb 28 12:25:44 2014
New Revision: 346494
URL: http://svnweb.freebsd.org/changeset/ports/346494
QAT: https://qat.redports.org/buildarchive/r346494/

Log:
  - Support staging
  - Use shebangfix
  - Define EXAMPLES option
  - Define DOCS option
  - Use WWW: with a single space

Modified:
  head/print/easylatex/Makefile
  head/print/easylatex/pkg-descr

Modified: head/print/easylatex/Makefile
==============================================================================
--- head/print/easylatex/Makefile	Fri Feb 28 12:21:56 2014	(r346493)
+++ head/print/easylatex/Makefile	Fri Feb 28 12:25:44 2014	(r346494)
@@ -3,7 +3,6 @@
 
 PORTNAME=	easylatex
 PORTVERSION=	0.080
-PORTREVISION=	0
 CATEGORIES=	print textproc
 MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}/${DISTNAME}
 DISTNAME=	${PORTNAME}-${PORTVERSION:C/0$//}
@@ -14,26 +13,25 @@ COMMENT=	Perl script which transforms "p
 RUN_DEPENDS=	p5-Getopt-Declare>=0:${PORTSDIR}/devel/p5-Getopt-Declare
 
 NO_BUILD=	yes
-USES=		perl5
+USES=		perl5 shebangfix
+
+SHEBANG_FILES=	${PORTNAME}.pl
+
+OPTIONS_DEFINE=	DOCS EXAMPLES
 
-NO_STAGE=	yes
 post-patch:
 	@${REINPLACE_CMD} -e 's,/usr/lib/easylatex,${DATADIR},' \
 		${WRKSRC}/${PORTNAME}.pl
 
 do-install:
-# script/data
-	${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME}.pl ${PREFIX}/bin/${PORTNAME}
-	@${MKDIR} ${DATADIR}
-	cd ${WRKSRC}/${PORTNAME} && ${COPYTREE_SHARE} . ${DATADIR}
-# docs, examples
-.if !defined(NOPORTDOCS)
-	@${MKDIR} ${DOCSDIR}
-	${INSTALL_DATA} ${WRKSRC}/TUTORIAL ${DOCSDIR}
-.endif
-.if !defined(NOPORTEXAMPLES)
-	@${MKDIR} ${EXAMPLESDIR}
-	${INSTALL_DATA} ${WRKSRC}/demo.txt ${WRKSRC}/demo-no-graph.txt ${EXAMPLESDIR}
-.endif
+	${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME}.pl \
+		${STAGEDIR}${PREFIX}/bin/${PORTNAME}
+	@${MKDIR} ${STAGEDIR}${DATADIR}
+	cd ${WRKSRC}/${PORTNAME} && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${WRKSRC}/TUTORIAL ${STAGEDIR}${DOCSDIR}
+	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+	${INSTALL_DATA} ${WRKSRC}/demo.txt ${WRKSRC}/demo-no-graph.txt \
+		${STAGEDIR}${EXAMPLESDIR}
 
 .include <bsd.port.mk>

Modified: head/print/easylatex/pkg-descr
==============================================================================
--- head/print/easylatex/pkg-descr	Fri Feb 28 12:21:56 2014	(r346493)
+++ head/print/easylatex/pkg-descr	Fri Feb 28 12:25:44 2014	(r346494)
@@ -2,4 +2,4 @@ EasyLatex is a preprocessor which takes 
 and transforms it into proper LaTeX syntax. 
 
 Author:	Bayle Shanks <bshanks at ucsd.edu>
-WWW:	http://easylatex.sourceforge.net/
+WWW: http://easylatex.sourceforge.net/


More information about the svn-ports-all mailing list