From 17a34ce292fe90d778e5e3543d443624b6a04d43 Mon Sep 17 00:00:00 2001 From: Steve Price Date: Mon, 27 Dec 1999 02:12:34 +0000 Subject: [PATCH] Adding xls2xml version 1.0.0. A utility for converting MS Excel files to XML. PR: 14705 (2 of 2) Submitted by: Maxim Sobolev --- textproc/Makefile | 1 + textproc/xls2xml/Makefile | 21 +++++++++++++++++++++ textproc/xls2xml/distinfo | 1 + textproc/xls2xml/files/patch-aa | 12 ++++++++++++ textproc/xls2xml/files/patch-ab | 11 +++++++++++ textproc/xls2xml/files/patch-ac | 11 +++++++++++ textproc/xls2xml/pkg-comment | 1 + textproc/xls2xml/pkg-descr | 7 +++++++ textproc/xls2xml/pkg-plist | 12 ++++++++++++ 9 files changed, 77 insertions(+) create mode 100644 textproc/xls2xml/Makefile create mode 100644 textproc/xls2xml/distinfo create mode 100644 textproc/xls2xml/files/patch-aa create mode 100644 textproc/xls2xml/files/patch-ab create mode 100644 textproc/xls2xml/files/patch-ac create mode 100644 textproc/xls2xml/pkg-comment create mode 100644 textproc/xls2xml/pkg-descr create mode 100644 textproc/xls2xml/pkg-plist diff --git a/textproc/Makefile b/textproc/Makefile index 25a93a45387b..88d46633af0b 100644 --- a/textproc/Makefile +++ b/textproc/Makefile @@ -72,6 +72,7 @@ SUBDIR += urlview SUBDIR += wdiff SUBDIR += word2x + SUBDIR += xls2xml SUBDIR += xml4j SUBDIR += xp SUBDIR += xt diff --git a/textproc/xls2xml/Makefile b/textproc/xls2xml/Makefile new file mode 100644 index 000000000000..d6436b16e1f2 --- /dev/null +++ b/textproc/xls2xml/Makefile @@ -0,0 +1,21 @@ +# New ports collection makefile for: xls2xml +# Version required: 1.0.0 +# Date created: 4 November 1999 +# Whom: Maxim Sobolev +# +# $FreeBSD$ +# + +DISTNAME= xls2xml-1.0.0 +CATEGORIES= textproc +MASTER_SITES= http://arturo.directmail.org/filters/archive/ \ + http://homepages.go.com/~sobomax/filtersweb/ + +MAINTAINER= sobomax@altavista.net + +LIB_DEPENDS= cole.2:${PORTSDIR}/textproc/cole \ + xml.5:${PORTSDIR}/textproc/libxml + +USE_LIBTOOL= yes + +.include diff --git a/textproc/xls2xml/distinfo b/textproc/xls2xml/distinfo new file mode 100644 index 000000000000..8434c432829d --- /dev/null +++ b/textproc/xls2xml/distinfo @@ -0,0 +1 @@ +MD5 (xls2xml-1.0.0.tar.gz) = 8eb70feef679244228cacf4aab695b38 diff --git a/textproc/xls2xml/files/patch-aa b/textproc/xls2xml/files/patch-aa new file mode 100644 index 000000000000..94028713d8b1 --- /dev/null +++ b/textproc/xls2xml/files/patch-aa @@ -0,0 +1,12 @@ +--- rec/p.h.orig Sun Mar 28 01:07:00 1999 ++++ rec/p.h Thu Nov 4 14:45:37 1999 +@@ -20,6 +20,9 @@ + Roberto Arturo Tena Sanchez + */ + ++#include ++#include "../pcommon.h" ++ + int p06 (void); + int p09 (void); + int p0A (void); diff --git a/textproc/xls2xml/files/patch-ab b/textproc/xls2xml/files/patch-ab new file mode 100644 index 000000000000..ff2d0a798368 --- /dev/null +++ b/textproc/xls2xml/files/patch-ab @@ -0,0 +1,11 @@ +--- formula.c.orig Thu Nov 4 15:01:23 1999 ++++ formula.c Thu Nov 4 15:01:27 1999 +@@ -642,7 +642,7 @@ + new_record = malloc (sizeof (stack_record)); + test (new_record != NULL, 10); + if (data == NULL) +- new_record->data == NULL; ++ new_record->data = NULL; + else + { + new_record->data = data; diff --git a/textproc/xls2xml/files/patch-ac b/textproc/xls2xml/files/patch-ac new file mode 100644 index 000000000000..ab8a933d3960 --- /dev/null +++ b/textproc/xls2xml/files/patch-ac @@ -0,0 +1,11 @@ +--- formula.h.orig Thu Nov 4 14:52:58 1999 ++++ formula.h Thu Nov 4 14:56:07 1999 +@@ -25,6 +25,8 @@ + + #include + #include /* FIXME: TEMP to call calloc */ ++#include "xmlunicode.h" ++#include "pcommon.h" + + int fil_parsed_formula2str (char ** result_string, U8 * parsed_expression, + int * volatile_function); diff --git a/textproc/xls2xml/pkg-comment b/textproc/xls2xml/pkg-comment new file mode 100644 index 000000000000..d8242480f35e --- /dev/null +++ b/textproc/xls2xml/pkg-comment @@ -0,0 +1 @@ +A utility for converting MS Excel files to XML diff --git a/textproc/xls2xml/pkg-descr b/textproc/xls2xml/pkg-descr new file mode 100644 index 000000000000..6b3cb297d074 --- /dev/null +++ b/textproc/xls2xml/pkg-descr @@ -0,0 +1,7 @@ +xls2xml is a free filter from Microsoft Excel to XML, and a free C library. + +Using the program xls2xml, you can extract the content of a file generated +by Microsoft Excel and express its content using XML. A library written in +C which is able to do the same is provided too. + +WWW: http://arturo.directmail.org/filtersweb/ diff --git a/textproc/xls2xml/pkg-plist b/textproc/xls2xml/pkg-plist new file mode 100644 index 000000000000..3a4dcc496635 --- /dev/null +++ b/textproc/xls2xml/pkg-plist @@ -0,0 +1,12 @@ +bin/xls2xml +include/xls2xml/defines.h +include/xls2xml/p.h +include/xls2xml/param.h +include/xls2xml/xls2xml.h +include/xls2xml/xmldoc.h +lib/libxls2xml.a +lib/libxls2xml.so +lib/libxls2xml.so.1 +@exec /usr/bin/env OBJFORMAT=%%PORTOBJFORMAT%% /sbin/ldconfig -m %B +@unexec /usr/bin/env OBJFORMAT=%%PORTOBJFORMAT%% /sbin/ldconfig -R +@dirrm include/xls2xml