From 66250384aac316bb7c7e78e17a9f60ee4eef0d73 Mon Sep 17 00:00:00 2001 From: mm Date: Tue, 21 Sep 2010 16:08:11 +0000 Subject: Explicitly depend on p5-Digest-MD5 only if PERL_LEVEL < 500703 Explicitly depend on p5-Digest-SHA only if PERL_LEVEL < 501000 --- mail/p5-FuzzyOcr/Makefile | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'mail/p5-FuzzyOcr') diff --git a/mail/p5-FuzzyOcr/Makefile b/mail/p5-FuzzyOcr/Makefile index eb5b7ddb5e72..baec84b4d48a 100644 --- a/mail/p5-FuzzyOcr/Makefile +++ b/mail/p5-FuzzyOcr/Makefile @@ -7,7 +7,7 @@ PORTNAME= FuzzyOcr DISTVERSION= 2.3b -PORTREVISION= 6 +PORTREVISION= 7 PORTEPOCH= 1 CATEGORIES= mail perl5 MASTER_SITES= http://users.own-hero.net/~decoder/${PORTNAME:L}/ @@ -22,7 +22,6 @@ RUN_DEPENDS= giftopnm:${PORTSDIR}/graphics/netpbm \ gocr:${PORTSDIR}/graphics/gocr \ gif2ps:${PORTSDIR}/graphics/libungif \ spamassassin:${PORTSDIR}/mail/p5-Mail-SpamAssassin \ - ${SITE_PERL}/${PERL_ARCH}/Digest/MD5.pm:${PORTSDIR}/security/p5-Digest-MD5 \ ${SITE_PERL}/${PERL_ARCH}/String/Approx.pm:${PORTSDIR}/devel/p5-String-Approx CONFLICTS= p5-FuzzyOcr-devel-[0-9]* @@ -51,6 +50,12 @@ PLIST_FILES= ${SA_CONFIGDIR}/FuzzyOcr.pm \ %%EXAMPLESDIR%%/FuzzyOcr.cf %%EXAMPLESDIR%%/FuzzyOcr.words PLIST_DIRS= %%EXAMPLESDIR%% +.include + +.if ${PERL_LEVEL} < 500703 +RUN_DEPENDS+= p5-Digest-MD5>=2.16:${PORTSDIR}/security/p5-Digest-MD5 +.endif + post-patch: @${REINPLACE_CMD} -e 's,/usr/bin,${LOCALBASE}/bin,g' \ -e 's,/bin/grep,/usr/bin/grep,g' \ @@ -77,4 +82,4 @@ post-install: .endif @${CAT} ${PKGMESSAGE} -.include +.include -- cgit