# New ports collection makefile for: Spreadsheet::WriteExcel::FromXML # Date created: 7 May 2004 # Whom: Bill Swingle # # $FreeBSD$ # PORTNAME= Spreadsheet-WriteExcel-FromXML PORTVERSION= 1.02 CATEGORIES= textproc perl5 MASTER_SITES= ${MASTER_SITE_PERL_CPAN} MASTER_SITE_SUBDIR= Spreadsheet PKGNAMEPREFIX= p5- MAINTAINER= unfurl@FreeBSD.org COMMENT= Create an Excel Spreadsheet from XML BUILD_DEPENDS= ${SITE_PERL}/OLE/Storage_Lite.pm:${PORTSDIR}/devel/p5-OLE-Storage_Lite \ ${SITE_PERL}/${PERL_ARCH}/XML/Parser.pm:${PORTSDIR}/textproc/p5-XML-Parser \ ${SITE_PERL}/Spreadsheet/WriteExcel.pm:${PORTSDIR}/textproc/p5-Spreadsheet-WriteExcel RUN_DEPENDS= ${BUILD_DEPENDS} PERL_CONFIGURE= yes MAN3= Spreadsheet::WriteExcel::FromXML::Workbook.3 \ Spreadsheet::WriteExcel::FromXML::Worksheet.3 \ Spreadsheet::WriteExcel::FromXML.3 .include .if ${PERL_LEVEL} < 500600 post-patch: @${PERL} -pi -e 's/^our (\S+)/use vars qw{$$1};$$1/;' \ -e 's/\$$fh/FH/g;' -e 's/(open FH, [^,]+),/$$1 ./g;' \ -e '$$_ = "" if /my FH/;' -e 's/\( FH \)/( \*FH )/;' \ ${WRKSRC}/lib/Spreadsheet/WriteExcel/FromXML.pm \ ${WRKSRC}/lib/Spreadsheet/WriteExcel/FromXML/Worksheet.pm \ ${WRKSRC}/lib/Spreadsheet/WriteExcel/FromXML/Workbook.pm .endif .include