Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Apr 2017 09:16:41 +0000 (UTC)
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r438935 - in head/math: . libxlsxwriter libxlsxwriter/files
Message-ID:  <201704200916.v3K9GfBG001487@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bapt
Date: Thu Apr 20 09:16:41 2017
New Revision: 438935
URL: https://svnweb.freebsd.org/changeset/ports/438935

Log:
  libxlsxwriter is a C library that can be used to write text, numbers, formulas
  and hyperlinks to multiple worksheets in an Excel 2007+ XLSX file. It supports
  features such as:
  
  * 100% compatible Excel XLSX files.
  * Full Excel formatting.
  * Merged cells.
  * Defined names.
  * Autofilters.
  * Charts.
  * Worksheet PNG/JPEG images.
  * Memory optimization mode for writing large files.
  * Source code available on GitHub.
  * FreeBSD License.
  * ANSI C.
  * Compiles for 32 and 64 bit.
  * The only dependency is on zlib.
  
  WWW: http://libxlsxwriter.github.io/

Added:
  head/math/libxlsxwriter/
  head/math/libxlsxwriter/Makefile   (contents, props changed)
  head/math/libxlsxwriter/distinfo   (contents, props changed)
  head/math/libxlsxwriter/files/
  head/math/libxlsxwriter/files/patch-Makefile   (contents, props changed)
  head/math/libxlsxwriter/files/patch-src_Makefile   (contents, props changed)
  head/math/libxlsxwriter/pkg-descr   (contents, props changed)
  head/math/libxlsxwriter/pkg-plist   (contents, props changed)
Modified:
  head/math/Makefile

Modified: head/math/Makefile
==============================================================================
--- head/math/Makefile	Thu Apr 20 09:05:04 2017	(r438934)
+++ head/math/Makefile	Thu Apr 20 09:16:41 2017	(r438935)
@@ -260,6 +260,7 @@
     SUBDIR += libtommath
     SUBDIR += libtsnnls
     SUBDIR += libxls
+    SUBDIR += libxlsxwriter
     SUBDIR += linpack
     SUBDIR += lll_spect
     SUBDIR += lp_solve

Added: head/math/libxlsxwriter/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/math/libxlsxwriter/Makefile	Thu Apr 20 09:16:41 2017	(r438935)
@@ -0,0 +1,23 @@
+# $FreeBSD$
+
+PORTNAME=	libxlsxwriter
+PORTVERSION=	0.6.9
+DISTVERSIONPREFIX=	RELEASE_
+CATEGORIES=	math devel
+
+MAINTAINER=	bapt@FreeBSD.org
+COMMENT=	C library for creating Excel XLSX files
+
+LICENSE=	BSD2CLAUSE
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	jmcnamara
+
+USE_LDCONFIG=	yes
+USES=		gmake
+
+post-install:
+	${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libxlsxwriter.so.0
+	${LN} -s libxlsxwriter.so.0 ${STAGEDIR}${PREFIX}/lib/libxlsxwriter.so
+
+.include <bsd.port.mk>

Added: head/math/libxlsxwriter/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/math/libxlsxwriter/distinfo	Thu Apr 20 09:16:41 2017	(r438935)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1492678168
+SHA256 (jmcnamara-libxlsxwriter-RELEASE_0.6.9_GH0.tar.gz) = 260bc1a3f3cfc36fd61b59edbf43ba3731fd210ff27ef61a20464bcd6ab1f389
+SIZE (jmcnamara-libxlsxwriter-RELEASE_0.6.9_GH0.tar.gz) = 12188770

Added: head/math/libxlsxwriter/files/patch-Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/math/libxlsxwriter/files/patch-Makefile	Thu Apr 20 09:16:41 2017	(r438935)
@@ -0,0 +1,13 @@
+--- Makefile.orig	2017-01-30 00:30:31 UTC
++++ Makefile
+@@ -84,8 +84,8 @@ docs:
+ 
+ # Simple minded install.
+ install:
+-	$(Q)cp -r include/* /usr/include
+-	$(Q)cp lib/* /usr/lib
++	$(Q)cp -r include/* $(DESTDIR)$(PREFIX)/include
++	$(Q)cp lib/* $(DESTDIR)$(PREFIX)/lib
+ 
+ # Simpler minded uninstall.
+ uninstall:

Added: head/math/libxlsxwriter/files/patch-src_Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/math/libxlsxwriter/files/patch-src_Makefile	Thu Apr 20 09:16:41 2017	(r438935)
@@ -0,0 +1,34 @@
+--- src/Makefile.orig	2017-01-30 00:30:31 UTC
++++ src/Makefile
+@@ -39,7 +39,7 @@ endif
+ 
+ # Library names.
+ LIBXLSXWRITER_A  = libxlsxwriter.a
+-LIBXLSXWRITER_SO = libxlsxwriter.so
++LIBXLSXWRITER_SO = libxlsxwriter.so.0
+ 
+ # Library with additional non-static functions for testing.
+ LIBXLSXWRITER_TO = libxlsxwriter_test.a
+@@ -49,7 +49,7 @@ ARFLAGS = rc
+ 
+ # Flags passed to dynamic linker.
+ FPIC = -fPIC
+-SOFLAGS = -shared $(FPIC)
++SOFLAGS = -shared $(FPIC) -Wl,-soname=${LIBXLSXWRITER_SO}
+ 
+ # Get Env/OS name.
+ UNAME := $(shell uname)
+@@ -101,11 +101,11 @@ $(LIBXLSXWRITER_A) : $(OBJS)
+ 
+ # The dynamic library.
+ ifeq ($(findstring m32,$(CFLAGS)),m32)
+-ARCH = -m32
++XSLX_ARCH = -m32
+ endif
+ 
+ $(LIBXLSXWRITER_SO) : $(SOBJS)
+-	$(Q)$(CC) $(SOFLAGS) $(ARCH) -o $@ $(MINIZIP_DIR)/ioapi.so $(MINIZIP_DIR)/zip.so $(TMPFILEPLUS_SO) $^ -lz
++	$(Q)$(CC) $(SOFLAGS) $(XLSX_ARCH) -o $@ $(MINIZIP_DIR)/ioapi.so $(MINIZIP_DIR)/zip.so $(TMPFILEPLUS_SO) $^ -lz
+ 
+ # The test library.
+ $(LIBXLSXWRITER_TO) : $(TOBJS)

Added: head/math/libxlsxwriter/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/math/libxlsxwriter/pkg-descr	Thu Apr 20 09:16:41 2017	(r438935)
@@ -0,0 +1,19 @@
+libxlsxwriter is a C library that can be used to write text, numbers, formulas
+and hyperlinks to multiple worksheets in an Excel 2007+ XLSX file. It supports
+features such as:
+
+* 100% compatible Excel XLSX files.
+* Full Excel formatting.
+* Merged cells.
+* Defined names.
+* Autofilters.
+* Charts.
+* Worksheet PNG/JPEG images.
+* Memory optimization mode for writing large files.
+* Source code available on GitHub.
+* FreeBSD License.
+* ANSI C.
+* Compiles for 32 and 64 bit.
+* The only dependency is on zlib.
+
+WWW: http://libxlsxwriter.github.io/

Added: head/math/libxlsxwriter/pkg-plist
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/math/libxlsxwriter/pkg-plist	Thu Apr 20 09:16:41 2017	(r438935)
@@ -0,0 +1,27 @@
+include/xlsxwriter.h
+include/xlsxwriter/app.h
+include/xlsxwriter/chart.h
+include/xlsxwriter/common.h
+include/xlsxwriter/content_types.h
+include/xlsxwriter/core.h
+include/xlsxwriter/custom.h
+include/xlsxwriter/drawing.h
+include/xlsxwriter/format.h
+include/xlsxwriter/hash_table.h
+include/xlsxwriter/packager.h
+include/xlsxwriter/relationships.h
+include/xlsxwriter/shared_strings.h
+include/xlsxwriter/styles.h
+include/xlsxwriter/theme.h
+include/xlsxwriter/third_party/ioapi.h
+include/xlsxwriter/third_party/queue.h
+include/xlsxwriter/third_party/tmpfileplus.h
+include/xlsxwriter/third_party/tree.h
+include/xlsxwriter/third_party/zip.h
+include/xlsxwriter/utility.h
+include/xlsxwriter/workbook.h
+include/xlsxwriter/worksheet.h
+include/xlsxwriter/xmlwriter.h
+lib/libxlsxwriter.a
+lib/libxlsxwriter.so
+lib/libxlsxwriter.so.0



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201704200916.v3K9GfBG001487>