freebsd-ports/textproc/p5-Spreadsheet-WriteExcel-FromXML/Makefile
Mathieu Arnold 251af38bb1 Add the forgotten RUN_DEPENDS
Pointy Hat To: me
2004-05-26 13:44:26 +00:00

42 lines
1.3 KiB
Makefile

# New ports collection makefile for: Spreadsheet::WriteExcel::FromXML
# Date created: 7 May 2004
# Whom: Bill Swingle <unfurl@freebsd.org>
#
# $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 <bsd.port.pre.mk>
.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 <bsd.port.post.mk>