2013-09-20 22:43:59 +00:00
|
|
|
# Created by: Nicola Vitale <nivit@email.it>
|
2006-07-06 18:02:28 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= easylatex
|
2010-09-23 21:38:28 +00:00
|
|
|
PORTVERSION= 0.080
|
2006-07-06 18:02:28 +00:00
|
|
|
CATEGORIES= print textproc
|
2010-09-25 21:09:59 +00:00
|
|
|
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${DISTNAME}
|
2010-09-23 21:38:28 +00:00
|
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION:C/0$//}
|
2006-07-06 18:02:28 +00:00
|
|
|
|
2006-12-10 01:21:51 +00:00
|
|
|
MAINTAINER= nivit@FreeBSD.org
|
2006-07-06 18:02:28 +00:00
|
|
|
COMMENT= Perl script which transforms "pseudo-LaTeX" into proper LaTeX
|
|
|
|
|
2016-04-01 14:16:16 +00:00
|
|
|
RUN_DEPENDS= p5-Getopt-Declare>=0:devel/p5-Getopt-Declare
|
2006-07-06 18:02:28 +00:00
|
|
|
|
|
|
|
NO_BUILD= yes
|
2014-02-28 12:25:44 +00:00
|
|
|
USES= perl5 shebangfix
|
|
|
|
|
|
|
|
SHEBANG_FILES= ${PORTNAME}.pl
|
|
|
|
|
|
|
|
OPTIONS_DEFINE= DOCS EXAMPLES
|
2006-07-06 18:02:28 +00:00
|
|
|
|
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's,/usr/lib/easylatex,${DATADIR},' \
|
|
|
|
${WRKSRC}/${PORTNAME}.pl
|
|
|
|
|
|
|
|
do-install:
|
2014-02-28 12:25:44 +00:00
|
|
|
${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}
|
2006-07-06 18:02:28 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|