summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorleeym <leeym@FreeBSD.org>2004-08-10 16:24:46 +0000
committerleeym <leeym@FreeBSD.org>2004-08-10 16:24:46 +0000
commit72086a42f83bdddaecf66e868b177a086f38a046 (patch)
tree65020b863556e41ffaedb373645af41f425cee90
parenta05b4d6942b301142a38fc46ee44b208936a3b8e (diff)
downloadFreeBSD-ports-72086a42f83bdddaecf66e868b177a086f38a046.zip
FreeBSD-ports-72086a42f83bdddaecf66e868b177a086f38a046.tar.gz
- Time::HiRes is included in perl 5.8.5, depends on it only when perl < 5.8.5
- fix for POD when perl < 5.6.0 only - bump PORTREVISION PR: 70247 Submitted by: Rong-En Fan <rafan@infor.org>
-rw-r--r--databases/mytop/Makefile17
1 files changed, 13 insertions, 4 deletions
diff --git a/databases/mytop/Makefile b/databases/mytop/Makefile
index dcd6c1f..e0513e3 100644
--- a/databases/mytop/Makefile
+++ b/databases/mytop/Makefile
@@ -7,6 +7,7 @@
PORTNAME= mytop
PORTVERSION= 1.4
+PORTREVISION= 1
CATEGORIES= databases
MASTER_SITES= http://jeremy.zawodny.com/mysql/mytop/
@@ -15,15 +16,23 @@ COMMENT= A top clone for MySQL
RUN_DEPENDS= ${SITE_PERL}/${PERL_ARCH}/Term/ReadKey.pm:${PORTSDIR}/devel/p5-Term-ReadKey \
${SITE_PERL}/${PERL_ARCH}/DBD/mysql.pm:${PORTSDIR}/databases/p5-DBD-mysql \
- ${SITE_PERL}/Term/ANSIColor.pm:${PORTSDIR}/devel/p5-Term-ANSIColor \
- ${SITE_PERL}/${PERL_ARCH}/Time/HiRes.pm:${PORTSDIR}/devel/p5-Time-HiRes
+ ${SITE_PERL}/Term/ANSIColor.pm:${PORTSDIR}/devel/p5-Term-ANSIColor
PERL_CONFIGURE= yes
-USE_REINPLACE= yes
MAN1= mytop.1
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500805
+RUN_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/Time/HiRes.pm:${PORTSDIR}/devel/p5-Time-HiRes
+.endif
+
+.if ${PERL_LEVEL} < 500600
+USE_REINPLACE= yes
+
post-patch:
@${REINPLACE_CMD} -e 's, -P , B<-P> ,g' ${WRKSRC}/mytop
+.endif
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
OpenPOWER on IntegriCloud