- Support staging
- Use shebangfix - Define EXAMPLES option - Define DOCS option - Use WWW: with a single space
This commit is contained in:
parent
facdfd83a7
commit
c82cc2cf13
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=346494
@ -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 "pseudo-LaTeX" into proper LaTeX
|
||||
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>
|
||||
|
@ -2,4 +2,4 @@ EasyLatex is a preprocessor which takes an input file in "pseudo-latex",
|
||||
and transforms it into proper LaTeX syntax.
|
||||
|
||||
Author: Bayle Shanks <bshanks@ucsd.edu>
|
||||
WWW: http://easylatex.sourceforge.net/
|
||||
WWW: http://easylatex.sourceforge.net/
|
||||
|
Loading…
Reference in New Issue
Block a user