From b20f102b2ce317b62c361dc26e7e80cd796f4806 Mon Sep 17 00:00:00 2001 From: Nicola Vitale Date: Fri, 30 Aug 2013 14:00:24 +0000 Subject: - Trim Makefile header [1] - Fix MASTER_SITES [1] - Convert to new options framework [1] - Use the new Uses/(perl5|shebang).mk facilities - Fix WWW entry in pkg-descr [1] PR: ports/177286 [1] Submitted by: nemysis --- graphics/l2p/Makefile | 32 ++++++++++++++++---------------- graphics/l2p/pkg-descr | 3 +-- 2 files changed, 17 insertions(+), 18 deletions(-) (limited to 'graphics/l2p') diff --git a/graphics/l2p/Makefile b/graphics/l2p/Makefile index b46d029fa730..fedc2b07f6d0 100644 --- a/graphics/l2p/Makefile +++ b/graphics/l2p/Makefile @@ -1,40 +1,40 @@ -# New ports collection makefile for: l2p -# Date created: 2006-03-22 -# Whom: Nicola Vitale -# # $FreeBSD$ -# PORTNAME= l2p PORTVERSION= 1.1.1 PORTREVISION= 3 CATEGORIES= graphics print perl5 -MASTER_SITES= http://www.redsymbol.net/software/l2p/dist/ \ - http://nivi.interfree.it/distfiles/${PORTNAME}/ +MASTER_SITES= http://static.redsymbol.net/software/l2p/dist/ \ + http://nivit.altervista.org/FreeBSD/ports/distfiles/ MAINTAINER= nivit@FreeBSD.org COMMENT= Create PNG images from LaTeX math expressions RUN_DEPENDS= convert:${PORTSDIR}/graphics/ImageMagick -USE_PERL5_RUN= yes -USE_ZIP= yes -USE_TEX= latex dvipsk NO_BUILD= yes -WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} +OPTIONS_DEFINE= DOCS PLIST_FILES= bin/l2p PORTDOCS= l2p.txt l2p.html -post-patch: - @${REINPLACE_CMD} -e '1s|.*|#!${PERL} -w|' ${WRKSRC}/${PORTNAME} +SHEBANG_FILES= ${WRKSRC}/${PORTNAME} + +USE_PERL5= run +USE_TEX= latex dvipsk +USE_ZIP= yes +USES= perl5 shebangfix + +WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} + +.include do-install: - @${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin -.if !defined(NOPORTDOCS) + ${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin +.if ${PORT_OPTIONS:MDOCS} @${MKDIR} ${DOCSDIR} - @cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR} + ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR} .endif .include diff --git a/graphics/l2p/pkg-descr b/graphics/l2p/pkg-descr index c27d395b72e6..fc5cc8e0ebe7 100644 --- a/graphics/l2p/pkg-descr +++ b/graphics/l2p/pkg-descr @@ -1,4 +1,3 @@ A command-line program to create PNG images from LaTeX math expressions. -Author: Aaron Maxwell -WWW: http://www.redsymbol.net/software/l2p/ +WWW: http://www.redsymbol.net/software/l2p/ -- cgit v1.2.3