aboutsummaryrefslogtreecommitdiff
path: root/databases/mytop
diff options
context:
space:
mode:
authorYen-Ming Lee <leeym@FreeBSD.org>2004-08-10 16:24:46 +0000
committerYen-Ming Lee <leeym@FreeBSD.org>2004-08-10 16:24:46 +0000
commit165991c04c380da5092b3f60c7a6631e38b38d1a (patch)
treecfc5ac9fa1009f558dcdabf2dd4c3c05561804ea /databases/mytop
parentec83f9d2282f7ad01e80c898ab2fc9a11fa1ab3d (diff)
downloadports-165991c04c380da5092b3f60c7a6631e38b38d1a.tar.gz
ports-165991c04c380da5092b3f60c7a6631e38b38d1a.zip
Notes
Diffstat (limited to 'databases/mytop')
-rw-r--r--databases/mytop/Makefile17
1 files changed, 13 insertions, 4 deletions
diff --git a/databases/mytop/Makefile b/databases/mytop/Makefile
index dcd6c1f24e5b..e0513e31192f 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>