aboutsummaryrefslogtreecommitdiff
path: root/databases/p5-DBD-Pg
diff options
context:
space:
mode:
authorSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2011-06-29 05:05:03 +0000
committerSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2011-06-29 05:05:03 +0000
commit2563d662a076e9d8f91aeee47fd6acb621b84169 (patch)
treee7a6f057a256e4259ec19d0ec4ac46909aa55b5b /databases/p5-DBD-Pg
parent35950c3328d5da4644cee4f7671075c228c2857f (diff)
downloadports-2563d662a076e9d8f91aeee47fd6acb621b84169.tar.gz
ports-2563d662a076e9d8f91aeee47fd6acb621b84169.zip
Notes
Diffstat (limited to 'databases/p5-DBD-Pg')
-rw-r--r--databases/p5-DBD-Pg/Makefile17
1 files changed, 12 insertions, 5 deletions
diff --git a/databases/p5-DBD-Pg/Makefile b/databases/p5-DBD-Pg/Makefile
index f23669bd6e65..48ff7058983c 100644
--- a/databases/p5-DBD-Pg/Makefile
+++ b/databases/p5-DBD-Pg/Makefile
@@ -7,6 +7,7 @@
PORTNAME= DBD-Pg
PORTVERSION= 2.18.1
+PORTREVISION= 1
CATEGORIES= databases perl5
MASTER_SITES= CPAN
PKGNAMEPREFIX= p5-
@@ -14,12 +15,11 @@ PKGNAMEPREFIX= p5-
MAINTAINER= perl@FreeBSD.org
COMMENT= Provides access to PostgreSQL databases through the DBI
-LICENSE_COMB= dual
LICENSE= ART20 GPLv1
+LICENSE_COMB= dual
-BUILD_DEPENDS= p5-DBI>=1.52:${PORTSDIR}/databases/p5-DBI \
- p5-version>=0:${PORTSDIR}/devel/p5-version
-RUN_DEPENDS= ${BUILD_DEPENDS}
+BUILD_DEPENDS= p5-DBI>=1.52:${PORTSDIR}/databases/p5-DBI
+RUN_DEPENDS= p5-DBI>=1.52:${PORTSDIR}/databases/p5-DBI
USE_PGSQL= yes
@@ -36,4 +36,11 @@ post-install:
@${ECHO_MSG} "===> Documentation installed in ${DOCSDIR}."
.endif
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501000
+BUILD_DEPENDS+= p5-version>=0:${PORTSDIR}/devel/p5-version
+RUN_DEPENDS+= p5-version>=0:${PORTSDIR}/devel/p5-version
+.endif
+
+.include <bsd.port.post.mk>