diff options
author | Mathieu Arnold <mat@FreeBSD.org> | 2004-05-26 13:23:52 +0000 |
---|---|---|
committer | Mathieu Arnold <mat@FreeBSD.org> | 2004-05-26 13:23:52 +0000 |
commit | c31ff404eb9554d28120f5cae5ca4054c634cc97 (patch) | |
tree | f091a12a83537a50f338e12bfb0bbca57c9ab2ce /textproc/p5-Spreadsheet-WriteExcel-FromXML | |
parent | 8b6eb1cd939a4eaaa99f038001c95fe9ab08c310 (diff) |
Add p5-Spreadsheet-WriteExcel-FromXML 1.02, create an Excel Spreadsheet
from XML.
PR: ports/67193
Submitted by: Bill Swingle <unfurl@freebsd.org>
Notes
Notes:
svn path=/head/; revision=110054
Diffstat (limited to 'textproc/p5-Spreadsheet-WriteExcel-FromXML')
4 files changed, 56 insertions, 0 deletions
diff --git a/textproc/p5-Spreadsheet-WriteExcel-FromXML/Makefile b/textproc/p5-Spreadsheet-WriteExcel-FromXML/Makefile new file mode 100644 index 000000000000..270da3e5b9d3 --- /dev/null +++ b/textproc/p5-Spreadsheet-WriteExcel-FromXML/Makefile @@ -0,0 +1,40 @@ +# 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 + +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> diff --git a/textproc/p5-Spreadsheet-WriteExcel-FromXML/distinfo b/textproc/p5-Spreadsheet-WriteExcel-FromXML/distinfo new file mode 100644 index 000000000000..f5132bdfc550 --- /dev/null +++ b/textproc/p5-Spreadsheet-WriteExcel-FromXML/distinfo @@ -0,0 +1,2 @@ +MD5 (Spreadsheet-WriteExcel-FromXML-1.02.tar.gz) = ad3682e46720da6a4e269aab7a9efaf1 +SIZE (Spreadsheet-WriteExcel-FromXML-1.02.tar.gz) = 8089 diff --git a/textproc/p5-Spreadsheet-WriteExcel-FromXML/pkg-descr b/textproc/p5-Spreadsheet-WriteExcel-FromXML/pkg-descr new file mode 100644 index 000000000000..f33b436f6c06 --- /dev/null +++ b/textproc/p5-Spreadsheet-WriteExcel-FromXML/pkg-descr @@ -0,0 +1,4 @@ +This module uses Spreadsheet::WriteExcel to turn a simple XML data file +into a binary Excel XLS file. + +See also the FromXML.dtd file in the distribution. diff --git a/textproc/p5-Spreadsheet-WriteExcel-FromXML/pkg-plist b/textproc/p5-Spreadsheet-WriteExcel-FromXML/pkg-plist new file mode 100644 index 000000000000..346eb6bd4bbe --- /dev/null +++ b/textproc/p5-Spreadsheet-WriteExcel-FromXML/pkg-plist @@ -0,0 +1,10 @@ +%%SITE_PERL%%/Spreadsheet/WriteExcel/FromXML.pm +%%SITE_PERL%%/Spreadsheet/WriteExcel/FromXML/Workbook.pm +%%SITE_PERL%%/Spreadsheet/WriteExcel/FromXML/Worksheet.pm +%%SITE_PERL%%/%%PERL_ARCH%%/auto/Spreadsheet/WriteExcel/FromXML/.packlist +@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/Spreadsheet/WriteExcel/FromXML +@unexec rmdir %D/%%SITE_PERL%%/%%PERL_ARCH%%/auto/Spreadsheet/WriteExcel 2>/dev/null || true +@unexec rmdir %D/%%SITE_PERL%%/%%PERL_ARCH%%/auto/Spreadsheet 2>/dev/null || true +@dirrm %%SITE_PERL%%/Spreadsheet/WriteExcel/FromXML +@unexec rmdir %D/%%SITE_PERL%%/Spreadsheet/WriteExcel 2>/dev/null || true +@unexec rmdir %D/%%SITE_PERL%%/Spreadsheet 2>/dev/null || true |