svn commit: r359178 - head/graphics/npretty

Jason E. Hale jhale at FreeBSD.org
Wed Jun 25 02:52:07 UTC 2014


Author: jhale
Date: Wed Jun 25 02:52:06 2014
New Revision: 359178
URL: http://svnweb.freebsd.org/changeset/ports/359178
QAT: https://qat.redports.org/buildarchive/r359178/

Log:
  - Support staging
  - Fix shebangs
  - NOPORTDOCS -> DOCS option
  - Add LICENSE
  
  Approved by:	portmgr (blanket approval)

Modified:
  head/graphics/npretty/Makefile
  head/graphics/npretty/pkg-plist

Modified: head/graphics/npretty/Makefile
==============================================================================
--- head/graphics/npretty/Makefile	Wed Jun 25 02:21:37 2014	(r359177)
+++ head/graphics/npretty/Makefile	Wed Jun 25 02:52:06 2014	(r359178)
@@ -11,31 +11,31 @@ MASTER_SITES=	http://www.pulia.nu/code/p
 MAINTAINER=	peter at pean.org
 COMMENT=	Simple web-gallery generator written in perl
 
+LICENSE=	GPLv2
+
 RUN_DEPENDS=	p5-Image-ExifTool>=0:${PORTSDIR}/graphics/p5-Image-ExifTool \
-		convert:${PORTSDIR}/graphics/ImageMagick \
 		p5-forks>=0:${PORTSDIR}/devel/p5-forks
-
-LIB_DEPENDS+=	libMagickCore-6.Q*.so:${PORTSDIR}/graphics/ImageMagick
+LIB_DEPENDS=	libMagickCore-6.Q*.so:${PORTSDIR}/graphics/ImageMagick
 
 NO_BUILD=	yes
-USES=		perl5
+USES=		perl5 shebangfix
 USE_PERL5=	run
+SHEBANG_FILES=	npretty.pl
+
+OPTIONS_DEFINE=	DOCS
 
-NO_STAGE=	yes
 post-patch:
 	@ ${REINPLACE_CMD} -e "s|/etc/|${PREFIX}/etc/|" ${WRKSRC}/npretty.pl
 
 do-install:
-	${INSTALL_SCRIPT} ${WRKSRC}/npretty.pl ${PREFIX}/bin
-	${MKDIR} ${PREFIX}/etc/npretty
-	${INSTALL_DATA} ${WRKSRC}/novideo.gif ${PREFIX}/etc/npretty
-	${INSTALL_DATA} ${WRKSRC}/npretty_template.tpl ${PREFIX}/etc/npretty
-	${INSTALL_DATA} ${WRKSRC}/npretty.conf ${PREFIX}/etc/npretty
-.if !defined(NOPORTDOCS)
-	${MKDIR} ${DOCSDIR}
-.for f in BUGS COPYING README
-	${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
+	${INSTALL_SCRIPT} ${WRKSRC}/npretty.pl ${STAGEDIR}${PREFIX}/bin
+	@${MKDIR} ${STAGEDIR}${PREFIX}/etc/npretty
+	${INSTALL_DATA} ${WRKSRC}/novideo.gif ${STAGEDIR}${PREFIX}/etc/npretty
+	${INSTALL_DATA} ${WRKSRC}/npretty_template.tpl ${STAGEDIR}${PREFIX}/etc/npretty
+	${INSTALL_DATA} ${WRKSRC}/npretty.conf ${STAGEDIR}${PREFIX}/etc/npretty
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+.for f in BUGS README
+	${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}
 .endfor
-.endif
 
 .include <bsd.port.mk>

Modified: head/graphics/npretty/pkg-plist
==============================================================================
--- head/graphics/npretty/pkg-plist	Wed Jun 25 02:21:37 2014	(r359177)
+++ head/graphics/npretty/pkg-plist	Wed Jun 25 02:52:06 2014	(r359178)
@@ -3,7 +3,6 @@ etc/npretty/npretty.conf
 etc/npretty/novideo.gif
 etc/npretty/npretty_template.tpl
 %%PORTDOCS%%%%DOCSDIR%%/BUGS
-%%PORTDOCS%%%%DOCSDIR%%/COPYING
 %%PORTDOCS%%%%DOCSDIR%%/README
 @dirrm etc/npretty
 %%PORTDOCS%%@dirrm %%DOCSDIR%%


More information about the svn-ports-head mailing list