Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 23 Dec 2005 18:47:30 +0800 (CST)
From:      Yen-Ming Lee <leeym@FreeBSD.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        gkovesdan@t-hosting.hu
Subject:   ports/90847: [PATCH] security/p5-Digest-DMAC: unbreak on old perl
Message-ID:  <20051223104730.68CFFB29C91@utopia.leeym.com>
Resent-Message-ID: <200512231050.jBNAo5E2059472@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         90847
>Category:       ports
>Synopsis:       [PATCH] security/p5-Digest-DMAC: unbreak on old perl
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Dec 23 10:50:05 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Yen-Ming Lee
>Release:        FreeBSD 6.0-STABLE i386
>Organization:
FreeBSD Taiwan
>Environment:
System: FreeBSD utopia.leeym.com 6.0-STABLE FreeBSD 6.0-STABLE #0: Thu Nov 17 09:15:19 CST 2005
>Description:
- unbreak this port on old perl

Port maintainer (gkovesdan@t-hosting.hu) is cc'd.

Generated with FreeBSD Port Tools 0.63
>How-To-Repeat:
>Fix:

--- p5-Digest-DMAC-1.1.4.patch begins here ---
Index: Makefile
===================================================================
RCS file: /home/pcvs/ports/security/p5-Digest-DMAC/Makefile,v
retrieving revision 1.1
diff -u -u -r1.1 Makefile
--- Makefile	17 Dec 2005 15:22:03 -0000	1.1
+++ Makefile	23 Dec 2005 10:46:52 -0000
@@ -15,13 +15,19 @@
 
 BUILD_DEPENDS=	${SITE_PERL}/Crypt/CBC.pm:${PORTSDIR}/security/p5-Crypt-CBC \
 		${SITE_PERL}/${PERL_ARCH}/MIME/Base64.pm:${PORTSDIR}/converters/p5-MIME-Base64
+RUN_DEPENDS=	${BUILD_DEPENDS}
 
-PERL_CONFIGURE= yes
+PERL_CONFIGURE=	yes
 
 MAN3=	Digest::DMAC.3
 
 .include <bsd.port.pre.mk>
-.if ${PERL_LEVEL} <= 500503
-IGNORE=	requires Perl 5.6. Intall lang/perl5 or lang/perl5.8, and try again
+
+.if ${PERL_LEVEL} < 500600
+BUILD_DEPENDS+=	${SITE_PERL}/Test/More.pm:${PORTSDIR}/devel/p5-Test-Simple
+
+post-patch:
+	${PERL} -pi -e '$$_ = "" if m{warnings}' ${WRKSRC}/DMAC.pm ${WRKSRC}/t/*.t
 .endif
+
 .include <bsd.port.post.mk>
--- p5-Digest-DMAC-1.1.4.patch ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20051223104730.68CFFB29C91>