# New ports collection makefile for: devel/p5-IO-Capture # Date created: 18 March 2005 # Whom: Lars Thegler # # $FreeBSD$ # PORTNAME= IO-Capture PORTVERSION= 0.05 CATEGORIES= devel perl5 MASTER_SITES= ${MASTER_SITE_PERL_CPAN} MASTER_SITE_SUBDIR= IO PKGNAMEPREFIX= p5- MAINTAINER= lth@FreeBSD.org COMMENT= Abstract Base Class to build modules to capture output PERL_CONFIGURE= yes MAN3= IO::Capture.3 \ IO::Capture::Overview.3 \ IO::Capture::Stderr.3 \ IO::Capture::Stdout.3 \ IO::Capture::Tie_STDx.3 .include .if ${PERL_LEVEL} < 500600 post-patch: @${PERL} -pi -e '$$_ = "" if m/5.006|use warnings;/' \ ${WRKSRC}/Makefile.PL \ ${WRKSRC}/lib/IO/Capture/Stderr.pm @${PERL} -pi -e '$$_ = "return 1;" if m/lt v5/;' \ ${WRKSRC}/lib/IO/Capture/Stderr.pm .endif .include