aboutsummaryrefslogtreecommitdiff
path: root/news/nzbperl/Makefile
diff options
context:
space:
mode:
authorAaron Dalton <aaron@FreeBSD.org>2006-06-02 22:12:37 +0000
committerAaron Dalton <aaron@FreeBSD.org>2006-06-02 22:12:37 +0000
commitd3013df7544f1d27284071df823e39b9b5622dfe (patch)
tree056f005d8c0d853f65ce63fdac477c323a1b2e94 /news/nzbperl/Makefile
parentf86b0698a068ef0fa421be422bc1f8242d1c1c7e (diff)
downloadports-d3013df7544f1d27284071df823e39b9b5622dfe.tar.gz
ports-d3013df7544f1d27284071df823e39b9b5622dfe.zip
Add nzbperl 0.6.8, a perl script for downloading nzb files.
PR: ports/97643 Submitted by: Tim Welch <ports@thepentagon.org> Approved by: tobez (implicit)
Notes
Notes: svn path=/head/; revision=164243
Diffstat (limited to 'news/nzbperl/Makefile')
-rw-r--r--news/nzbperl/Makefile50
1 files changed, 50 insertions, 0 deletions
diff --git a/news/nzbperl/Makefile b/news/nzbperl/Makefile
new file mode 100644
index 000000000000..cca3be536cae
--- /dev/null
+++ b/news/nzbperl/Makefile
@@ -0,0 +1,50 @@
+# New ports collection makefile for: nzbperl
+# Date created: 20 May 2006
+# Whom: Tim Welch <ports@thepentagon.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= nzbperl
+PORTVERSION= 0.6.8
+CATEGORIES= news
+MASTER_SITES= http://noisybox.net/computers/nzbperl/
+DISTNAME= nzbperl.pl
+EXTRACT_SUFX=
+
+MAINTAINER= ports@thepentagon.org
+COMMENT= A perl script for downloading nzb files
+
+RUN_DEPENDS= ${SITE_PERL}/XML/DOM.pm:${PORTSDIR}/textproc/p5-XML-DOM \
+ ${SITE_PERL}/${PERL_ARCH}/Term/ReadKey.pm:${PORTSDIR}/devel/p5-Term-ReadKey \
+ ${SITE_PERL}/${PERL_ARCH}/Time/HiRes.pm:${PORTSDIR}/devel/p5-Time-HiRes \
+ ${LOCALBASE}/bin/uudeview:${PORTSDIR}/converters/uudeview
+
+PLIST_FILES= bin/nzbperl
+NO_BUILD= yes
+USE_PERL5_RUN= yes
+
+.if defined(WITH_SSL)
+RUN_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/Net/SSLeay.pm:${PORTSDIR}/security/p5-Net-SSLeay
+.endif
+
+do-extract:
+ @${MKDIR} ${WRKDIR}
+ @${CP} ${DISTDIR}/${DISTNAME} ${WRKDIR}
+ @${REINPLACE_CMD} -e \
+ "s,#!/usr/bin/perl -w,#!/usr/local/bin/perl -w," \
+ ${WRKDIR}/nzbperl.pl
+
+do-install:
+ ${INSTALL_SCRIPT} ${WRKDIR}/${DISTNAME} ${PREFIX}/bin/${PORTNAME}
+
+post-install:
+ @${CAT} ${PKGMESSAGE}
+
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500600 # inherited from www/p5-libwww
+IGNORE= requires at least Perl 5.6 due to dependencies. Please install lang/perl5.8 and try again
+.endif
+
+.include <bsd.port.post.mk>