aboutsummaryrefslogtreecommitdiff
path: root/net/p5-Net-Google-SafeBrowsing2
diff options
context:
space:
mode:
authorSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2017-06-29 19:13:58 +0000
committerSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2017-06-29 19:13:58 +0000
commit3bf79c474567fc62101213ecc2589f191f5c776e (patch)
tree7a08a39a06402efef85cd8d1f67a3aba8e35f646 /net/p5-Net-Google-SafeBrowsing2
parente7dcb85d5f315bde90c94009f968ddbda975ad80 (diff)
Remove Perl core modules
- While I'm here: - Convert to options dependency helper - Add NO_ARCH - Bump PORTREVISION for dependency change With hat: perl
Notes
Notes: svn path=/head/; revision=444675
Diffstat (limited to 'net/p5-Net-Google-SafeBrowsing2')
-rw-r--r--net/p5-Net-Google-SafeBrowsing2/Makefile27
1 files changed, 8 insertions, 19 deletions
diff --git a/net/p5-Net-Google-SafeBrowsing2/Makefile b/net/p5-Net-Google-SafeBrowsing2/Makefile
index fde870ae397c..5396a1c285ec 100644
--- a/net/p5-Net-Google-SafeBrowsing2/Makefile
+++ b/net/p5-Net-Google-SafeBrowsing2/Makefile
@@ -3,7 +3,7 @@
PORTNAME= Net-Google-SafeBrowsing2
PORTVERSION= 1.09
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= net perl5
MASTER_SITES= CPAN
PKGNAMEPREFIX= p5-
@@ -13,10 +13,8 @@ COMMENT= Perl extension for the Google Safe Browsing v2 API
BUILD_DEPENDS= p5-libwww>=5:www/p5-libwww \
p5-URI>=1:net/p5-URI \
- p5-Digest-SHA>=5:security/p5-Digest-SHA \
p5-Net-IPAddress>=1:net-mgmt/p5-Net-IPAddress \
p5-Text-Trim>=1:textproc/p5-Text-Trim \
- p5-MIME-Base64>=3:converters/p5-MIME-Base64 \
p5-MIME-Base64-URLSafe>=0.01:converters/p5-MIME-Base64-URLSafe \
p5-Digest-HMAC>=1:security/p5-Digest-HMAC \
p5-String-HexConvert>=0.01:textproc/p5-String-HexConvert \
@@ -32,24 +30,15 @@ Postgres_DESC= uses Postgres as the storage backend
OPTIONS_DEFAULT=SQLite
+NO_ARCH= yes
USES= perl5
USE_PERL5= configure
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MSQLite}
-BUILD_DEPENDS+= p5-DBD-SQLite>=1:databases/p5-DBD-SQLite
-RUN_DEPENDS+= p5-DBD-SQLite>=1:databases/p5-DBD-SQLite
-.endif
-
-.if ${PORT_OPTIONS:MMySQL}
-BUILD_DEPENDS+= p5-DBD-mysql>=4:databases/p5-DBD-mysql
-RUN_DEPENDS+= p5-DBD-mysql>=4:databases/p5-DBD-mysql
-.endif
-
-.if ${PORT_OPTIONS:MPostgres}
-BUILD_DEPENDS+= p5-DBD-Pg>=2:databases/p5-DBD-Pg
-RUN_DEPENDS+= p5-DBD-Pg>=2:databases/p5-DBD-Pg
-.endif
+MySQL_BUILD_DEPENDS= p5-DBD-mysql>=4:databases/p5-DBD-mysql
+MySQL_RUN_DEPENDS= p5-DBD-mysql>=4:databases/p5-DBD-mysql
+Postgres_BUILD_DEPENDS= p5-DBD-Pg>=2:databases/p5-DBD-Pg
+Postgres_RUN_DEPENDS= p5-DBD-Pg>=2:databases/p5-DBD-Pg
+SQLite_BUILD_DEPENDS= p5-DBD-SQLite>=1:databases/p5-DBD-SQLite
+SQLite_RUN_DEPENDS= p5-DBD-SQLite>=1:databases/p5-DBD-SQLite
.include <bsd.port.mk>