2004-05-26 13:23:52 +00:00
|
|
|
# New ports collection makefile for: Spreadsheet::WriteExcel::FromXML
|
|
|
|
# Date created: 7 May 2004
|
|
|
|
# Whom: Bill Swingle <unfurl@freebsd.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= Spreadsheet-WriteExcel-FromXML
|
2006-07-03 16:19:13 +00:00
|
|
|
PORTVERSION= 1.1
|
2004-05-26 13:23:52 +00:00
|
|
|
CATEGORIES= textproc perl5
|
|
|
|
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
|
|
|
|
MASTER_SITE_SUBDIR= Spreadsheet
|
|
|
|
PKGNAMEPREFIX= p5-
|
|
|
|
|
2006-04-05 04:25:26 +00:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2004-05-26 13:23:52 +00:00
|
|
|
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
|
2004-05-26 13:44:26 +00:00
|
|
|
RUN_DEPENDS= ${BUILD_DEPENDS}
|
2004-05-26 13:23:52 +00:00
|
|
|
|
|
|
|
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>
|