freebsd-ports/print/easylatex/Makefile
Nicola Vitale 5a5614ac38 - Fix MASTER_SITES
Reported by:	pointyhat (via email)
2010-09-25 21:09:59 +00:00

42 lines
1.1 KiB
Makefile

# New ports collection makefile for: easylatex
# Date created: 2006-02-15
# Whom: Nicola Vitale <nivit@email.it>
#
# $FreeBSD$
#
PORTNAME= easylatex
PORTVERSION= 0.080
PORTREVISION= 0
CATEGORIES= print textproc
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${DISTNAME}
DISTNAME= ${PORTNAME}-${PORTVERSION:C/0$//}
MAINTAINER= nivit@FreeBSD.org
COMMENT= Perl script which transforms "pseudo-LaTeX" into proper LaTeX
RUN_DEPENDS= ${SITE_PERL}/${SITE_ARCH}/Getopt/Declare.pm:${PORTSDIR}/devel/p5-Getopt-Declare
NO_BUILD= yes
USE_PERL5= 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
.include <bsd.port.mk>