1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-13 03:03:15 +00:00
freebsd-ports/textproc/p5-Spreadsheet-WriteExcel-FromXML/Makefile

42 lines
1.3 KiB
Makefile
Raw Normal View History

# 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
CATEGORIES= textproc perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= Spreadsheet
PKGNAMEPREFIX= p5-
MAINTAINER= ports@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>