From b9fbf5572577220135807239e1707b50afc46c4c Mon Sep 17 00:00:00 2001 From: Michael Scheidell Date: Sun, 20 May 2012 19:31:10 +0000 Subject: [PATCH] Add port: textproc/freexl FreeXL is an open source library to extract valid data from within an Excel (.xls) spreadsheet. FreeXL design goals: to be simple and lightweight to be stable, robust and efficient to be easily and universally portable completely ignoring any GUI-related oddity Note that the final goal means that FreeXL ignores at all fonts, sizes and alignments, and most formats. It ignores Pivot Table, Charts, Formulas, Visual Basic macros and so on. FreeXL is structurally simple and quite light-weight (typically 40-80K of object code, stripped). - Fix PORTVERSION to be more standard (SET DISTVERSION, have PORTVERSION auto set) [2] - Fix Makefile and pkg-plist, pkhconfig must be in libdata/* not lib/* [2] - Fix category [2] PR: ports/168131 [1] Submitted by: lbartoletti [1] Reviewed by: scheidell@ (me) [2] --- textproc/Makefile | 1 + textproc/freexl/Makefile | 29 +++++++++++++++++++++++++++++ textproc/freexl/distinfo | 2 ++ textproc/freexl/pkg-descr | 13 +++++++++++++ textproc/freexl/pkg-plist | 6 ++++++ 5 files changed, 51 insertions(+) create mode 100644 textproc/freexl/Makefile create mode 100644 textproc/freexl/distinfo create mode 100644 textproc/freexl/pkg-descr create mode 100644 textproc/freexl/pkg-plist diff --git a/textproc/Makefile b/textproc/Makefile index 75f05cde15e6..f9e949d221ad 100644 --- a/textproc/Makefile +++ b/textproc/Makefile @@ -192,6 +192,7 @@ SUBDIR += fpc-aspell SUBDIR += fpc-libxml2 SUBDIR += freegrep + SUBDIR += freexl SUBDIR += fy-aspell SUBDIR += ga-aspell SUBDIR += gastex diff --git a/textproc/freexl/Makefile b/textproc/freexl/Makefile new file mode 100644 index 000000000000..a5fccb40062f --- /dev/null +++ b/textproc/freexl/Makefile @@ -0,0 +1,29 @@ +# New ports collection makefile for: freexl +# Date created: 19 May 2012 +# Whom: lbartoletti +# +# $FreeBSD$ +# + +PORTNAME= freexl +DISTVERSION= 1.0.0b +#PORTVERSION= 1.0.0b +CATEGORIES= textproc +MASTER_SITES= http://www.gaia-gis.it/gaia-sins/ + +MAINTAINER= coder@tuxfamily.org +COMMENT= Library to extract valid data from within an Excel (.xls) spreadsheet + +GNU_CONFIGURE= yes +USE_GMAKE= yes +USE_ICONV= yes + +CFLAGS+= -I${LOCALBASE}/include +LDFLAGS+= -L${LOCALBASE}/lib -liconv +CONFIGURE_ARGS+=CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" +USE_LDCONFIG= yes + +post-patch: + @${REINPLACE_CMD} -e 's|(libdir)/pkgconfig|(prefix)/libdata/pkgconfig|g' \ + ${WRKSRC}/Makefile.in +.include diff --git a/textproc/freexl/distinfo b/textproc/freexl/distinfo new file mode 100644 index 000000000000..bfe55e3f7c31 --- /dev/null +++ b/textproc/freexl/distinfo @@ -0,0 +1,2 @@ +SHA256 (freexl-1.0.0b.tar.gz) = da60c6041badd24114b3e4415d72de50c4f1c243fde179a24494e5bbcdc658f0 +SIZE (freexl-1.0.0b.tar.gz) = 909489 diff --git a/textproc/freexl/pkg-descr b/textproc/freexl/pkg-descr new file mode 100644 index 000000000000..8c2a3db7e07c --- /dev/null +++ b/textproc/freexl/pkg-descr @@ -0,0 +1,13 @@ +FreeXL is an open source library to extract valid data from within an Excel +(.xls) spreadsheet. +FreeXL design goals: + + to be simple and lightweight + to be stable, robust and efficient + to be easily and universally portable + completely ignoring any GUI-related oddity + +Note that the final goal means that FreeXL ignores at all fonts, sizes and +alignments, and most formats. It ignores Pivot Table, Charts, Formulas, Visual +Basic macros and so on. FreeXL is structurally simple and quite light-weight +(typically 40-80K of object code, stripped). diff --git a/textproc/freexl/pkg-plist b/textproc/freexl/pkg-plist new file mode 100644 index 000000000000..bf8bc0c3f923 --- /dev/null +++ b/textproc/freexl/pkg-plist @@ -0,0 +1,6 @@ +include/freexl.h +lib/libfreexl.a +lib/libfreexl.la +lib/libfreexl.so +lib/libfreexl.so.1 +libdata/pkgconfig/freexl.pc