aboutsummaryrefslogtreecommitdiffstats
path: root/ports-mgmt
diff options
context:
space:
mode:
authorsunpoet <sunpoet@FreeBSD.org>2017-07-01 06:14:34 +0800
committersunpoet <sunpoet@FreeBSD.org>2017-07-01 06:14:34 +0800
commitfe29713a238db82ea17edd1657fe60063b09f77e (patch)
treebd5087691d1d570068974160f2cefd8ca03e12f9 /ports-mgmt
parent7a893852acbdffb392d5b5deefc1cb9bec9ce659 (diff)
downloadfreebsd-ports-gnome-fe29713a238db82ea17edd1657fe60063b09f77e.tar.gz
freebsd-ports-gnome-fe29713a238db82ea17edd1657fe60063b09f77e.tar.zst
freebsd-ports-gnome-fe29713a238db82ea17edd1657fe60063b09f77e.zip
Remove Perl core modules
- While I'm here: - Add NO_ARCH - Convert to options target helper - Bump PORTREVISION for dependency change With hat: perl
Diffstat (limited to 'ports-mgmt')
-rw-r--r--ports-mgmt/portscout/Makefile15
1 files changed, 7 insertions, 8 deletions
diff --git a/ports-mgmt/portscout/Makefile b/ports-mgmt/portscout/Makefile
index 477f4346f907..85192d40ad68 100644
--- a/ports-mgmt/portscout/Makefile
+++ b/ports-mgmt/portscout/Makefile
@@ -3,7 +3,7 @@
PORTNAME= portscout
PORTVERSION= 0.8.1
-PORTREVISION= 7
+PORTREVISION= 8
CATEGORIES= ports-mgmt
MASTER_SITES= http://mirror.inerd.com/FreeBSD/distfiles/${PORTNAME}/ \
http://www.atarininja.org/~wxs/distfiles/ \
@@ -16,7 +16,6 @@ LICENSE= BSD2CLAUSE
RUN_DEPENDS= p5-DBI>=0:databases/p5-DBI \
p5-Proc-Queue>=0:devel/p5-Proc-Queue \
- p5-Net>=0:net/p5-Net \
p5-URI>=0:net/p5-URI \
p5-XML-XPath>=0:textproc/p5-XML-XPath \
p5-MIME-Lite>=0:mail/p5-MIME-Lite \
@@ -32,6 +31,7 @@ OPTIONS_MULTI_DATABASE= SQLITE PGSQL
DATABASE_DESC= Database Backends
USES= perl5 shebangfix
+NO_ARCH= yes
NO_BUILD= yes
SHEBANG_FILES= ${WRKSRC}/portscout.pl
@@ -61,10 +61,6 @@ post-extract:
@${CP} ${FILESDIR}/files-Portscout-SiteHandler-PyPI.pm ${WRKSRC}/Portscout/SiteHandler/PyPI.pm
pre-install:
-.if ${PORT_OPTIONS:MSQLITE}
- @${REINPLACE_CMD} 's/^\([^#]*DBI:Pg.*\)$$/#\1/g' ${WRKSRC}/portscout.conf
- @${REINPLACE_CMD} 's/^#\(.*DBI:SQLite.*\)$$/\1/g' ${WRKSRC}/portscout.conf
-.endif
@${REINPLACE_CMD} -e "s#^\(templates .*\)/etc#\1/share#" \
-e "s#^prefix\( *= *\).*#prefix\1${PREFIX}#" \
${WRKSRC}/portscout.conf
@@ -72,6 +68,10 @@ pre-install:
${WRKSRC}/Portscout/Const.pm
@${MV} ${WRKSRC}/docs/*.* ${WRKSRC}
+pre-install-SQLITE-on:
+ @${REINPLACE_CMD} 's/^\([^#]*DBI:Pg.*\)$$/#\1/g' ${WRKSRC}/portscout.conf
+ @${REINPLACE_CMD} 's/^#\(.*DBI:SQLite.*\)$$/\1/g' ${WRKSRC}/portscout.conf
+
do-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/${SITE_PERL_REL}/Portscout
@${MKDIR} ${STAGEDIR}${PREFIX}/${SITE_PERL_REL}/Portscout/DataSrc
@@ -98,12 +98,11 @@ do-install:
${INSTALL_DATA} ${WRKSRC}/portscout.conf ${STAGEDIR}${PREFIX}/etc/portscout.conf.sample
-.if ${PORT_OPTIONS:MDOCS}
+do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
. for f in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}
. endfor
-.endif
test:
${PERL} ${WRKSRC}/t/00-use.t