blob: 1bc454f61e8a10d672884b3fb2827814828ccbe8 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
# 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>
|