aboutsummaryrefslogtreecommitdiff
path: root/devel/p5-Class-Hook
diff options
context:
space:
mode:
authorYen-Ming Lee <leeym@FreeBSD.org>2008-02-28 19:32:42 +0000
committerYen-Ming Lee <leeym@FreeBSD.org>2008-02-28 19:32:42 +0000
commitdfe08e54ecb8f879bd21bcd5a52e7ac192aea70e (patch)
tree7bed95aaabf07faf3b22cb074d95621f431e71dd /devel/p5-Class-Hook
parent9b29a42a204229d74e83da81c617ffd01735b49e (diff)
downloadports-dfe08e54ecb8f879bd21bcd5a52e7ac192aea70e.tar.gz
ports-dfe08e54ecb8f879bd21bcd5a52e7ac192aea70e.zip
Notes
Diffstat (limited to 'devel/p5-Class-Hook')
-rw-r--r--devel/p5-Class-Hook/Makefile15
1 files changed, 9 insertions, 6 deletions
diff --git a/devel/p5-Class-Hook/Makefile b/devel/p5-Class-Hook/Makefile
index 0066ba5824d3..2e31b46d12af 100644
--- a/devel/p5-Class-Hook/Makefile
+++ b/devel/p5-Class-Hook/Makefile
@@ -7,21 +7,24 @@
PORTNAME= Class-Hook
PORTVERSION= 0.02
+PORTREVISION= 1
CATEGORIES= devel perl5
-MASTER_SITES= ${MASTER_SITE_PERL_CPAN} \
+MASTER_SITES= CPAN \
http://cottage.quynh-and-brian.org/freebsd/ports/distfiles/
-MASTER_SITE_SUBDIR= Class
PKGNAMEPREFIX= p5-
MAINTAINER= perl@FreeBSD.org
COMMENT= Add hooks on methods from other classes
-BUILD_DEPENDS= ${SITE_PERL}/${PERL_ARCH}/Time/HiRes.pm:${PORTSDIR}/devel/p5-Time-HiRes \
- ${SITE_PERL}/Test/Simple.pm:${PORTSDIR}/devel/p5-Test-Simple
-
PERL_CONFIGURE= yes
WRKSRC= ${WRKDIR}/Class-Hook
MAN3= Class::Hook.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500703
+RUN_DEPENDS+= p5-Time-HiRes>=0.01:${PORTSDIR}/devel/p5-Time-HiRes
+.endif
+
+.include <bsd.port.post.mk>