pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/textproc/libxlsxwriter libxlsxwriter: Import libxlsxwr...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/e0d979c08ea9
branches:  trunk
changeset: 329089:e0d979c08ea9
user:      leot <leot%pkgsrc.org@localhost>
date:      Wed Jan 30 12:55:13 2019 +0000

description:
libxlsxwriter: Import libxlsxwriter-0.8.4 as textproc/libxlsxwriter

C library that can be used to write text, numbers, formulas and hyperlinks to
multiple worksheets in a Microsoft Excel 2007+ XLSX file.

It supports features such as full formatting support, merged cells, defined
names, autofilters and charts.

Packaged in pkgsrc-wip by Sijmen J. Mulder.

diffstat:

 textproc/libxlsxwriter/DESCR                      |   5 ++++
 textproc/libxlsxwriter/Makefile                   |  28 +++++++++++++++++++++++
 textproc/libxlsxwriter/PLIST                      |  28 +++++++++++++++++++++++
 textproc/libxlsxwriter/buildlink3.mk              |  14 +++++++++++
 textproc/libxlsxwriter/distinfo                   |   8 ++++++
 textproc/libxlsxwriter/patches/patch-Makefile     |  27 ++++++++++++++++++++++
 textproc/libxlsxwriter/patches/patch-src_Makefile |  18 ++++++++++++++
 7 files changed, 128 insertions(+), 0 deletions(-)

diffs (156 lines):

diff -r f993a4ab3787 -r e0d979c08ea9 textproc/libxlsxwriter/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/libxlsxwriter/DESCR      Wed Jan 30 12:55:13 2019 +0000
@@ -0,0 +1,5 @@
+C library that can be used to write text, numbers, formulas and hyperlinks to
+multiple worksheets in a Microsoft Excel 2007+ XLSX file.
+
+It supports features such as full formatting support, merged cells, defined
+names, autofilters and charts.
diff -r f993a4ab3787 -r e0d979c08ea9 textproc/libxlsxwriter/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/libxlsxwriter/Makefile   Wed Jan 30 12:55:13 2019 +0000
@@ -0,0 +1,28 @@
+# $NetBSD: Makefile,v 1.1 2019/01/30 12:55:13 leot Exp $
+
+DISTNAME=      libxlsxwriter-0.8.4
+CATEGORIES=    textproc
+MASTER_SITES=  ${MASTER_SITE_GITHUB:=jmcnamara/}
+GITHUB_TAG=    RELEASE_${PKGVERSION_NOREV}
+
+MAINTAINER=    ik%sjmulder.nl@localhost
+HOMEPAGE=      https://libxlsxwriter.github.io/
+COMMENT=       C library for creating Microsoft Excel files
+LICENSE=       2-clause-bsd AND original-bsd AND zlib AND mpl-2.0
+
+PYTHON_FOR_BUILD_ONLY= test
+
+TEST_TARGET=   test
+TEST_DEPENDS+= ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test
+
+USE_TOOLS+=    gmake
+
+.include "../../lang/python/pyversion.mk"
+
+MAKE_ENV+=     PYTEST=py.test-${PYVERSSUFFIX}
+MAKE_ENV+=     INSTALL_DIR=${DESTDIR}${PREFIX}
+# minizip/ioapi.c has broken logic for checking for fopen64 etc
+CFLAGS+=       -DIOAPI_NO_64 -D_FILE_OFFSET_BITS=64
+
+.include "../../devel/zlib/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r f993a4ab3787 -r e0d979c08ea9 textproc/libxlsxwriter/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/libxlsxwriter/PLIST      Wed Jan 30 12:55:13 2019 +0000
@@ -0,0 +1,28 @@
+@comment $NetBSD: PLIST,v 1.1 2019/01/30 12:55:13 leot Exp $
+include/xlsxwriter.h
+include/xlsxwriter/app.h
+include/xlsxwriter/chart.h
+include/xlsxwriter/chartsheet.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
diff -r f993a4ab3787 -r e0d979c08ea9 textproc/libxlsxwriter/buildlink3.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/libxlsxwriter/buildlink3.mk      Wed Jan 30 12:55:13 2019 +0000
@@ -0,0 +1,14 @@
+# $NetBSD: buildlink3.mk,v 1.1 2019/01/30 12:55:13 leot Exp $
+
+BUILDLINK_TREE+=       libxlsxwriter
+
+.if !defined(LIBXLSXWRITER_BUILDLINK3_MK)
+LIBXLSXWRITER_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.libxlsxwriter+=  libxlsxwriter>=0.8.4
+BUILDLINK_PKGSRCDIR.libxlsxwriter?=    ../../textproc/libxlsxwriter
+
+.include "../../devel/zlib/buildlink3.mk"
+.endif # LIBXLSXWRITER_BUILDLINK3_MK
+
+BUILDLINK_TREE+=       -libxlsxwriter
diff -r f993a4ab3787 -r e0d979c08ea9 textproc/libxlsxwriter/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/libxlsxwriter/distinfo   Wed Jan 30 12:55:13 2019 +0000
@@ -0,0 +1,8 @@
+$NetBSD: distinfo,v 1.1 2019/01/30 12:55:13 leot Exp $
+
+SHA1 (libxlsxwriter-0.8.4.tar.gz) = 130b8e79abd826c2b58cbde076aadb20bfe7abc1
+RMD160 (libxlsxwriter-0.8.4.tar.gz) = b3153e947cc9736e2fb5be053c660940fcc31449
+SHA512 (libxlsxwriter-0.8.4.tar.gz) = b4de99605c9f3b8d7038e7ac49979bdb1998016e04e474008a4f086f5f42e072ab977a70f408b0a348f1ae1ce999a3d9d415961288797ab6ae56d84767f2c5c4
+Size (libxlsxwriter-0.8.4.tar.gz) = 13981205 bytes
+SHA1 (patch-Makefile) = 649fdb200580d1344adf49a3a7519eaba4830d07
+SHA1 (patch-src_Makefile) = cdc266a37bb162ffddddc26b244cbb9ef8b5ce9f
diff -r f993a4ab3787 -r e0d979c08ea9 textproc/libxlsxwriter/patches/patch-Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/libxlsxwriter/patches/patch-Makefile     Wed Jan 30 12:55:13 2019 +0000
@@ -0,0 +1,27 @@
+$NetBSD: patch-Makefile,v 1.1 2019/01/30 12:55:13 leot Exp $
+
+Make the py.test name configurable.
+
+Upstream pull request:
+https://github.com/jmcnamara/libxlsxwriter/pull/206
+
+--- Makefile.orig      2018-12-11 10:35:42.411978337 +0100
++++ Makefile   2018-12-11 10:36:14.841058290 +0100
+@@ -11,6 +11,8 @@
+ Q=
+ endif
+ 
++PYTEST ?= py.test
++
+ INSTALL_DIR ?= /usr/local
+ 
+ .PHONY: docs tags examples
+@@ -58,7 +60,7 @@
+ # Run the functional tests.
+ test_functional : all
+       $(Q)$(MAKE) -C test/functional/src
+-      $(Q)py.test test/functional -v
++      $(Q)$(PYTEST) test/functional -v
+ 
+ # Run all tests.
+ test_unit :
diff -r f993a4ab3787 -r e0d979c08ea9 textproc/libxlsxwriter/patches/patch-src_Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/libxlsxwriter/patches/patch-src_Makefile Wed Jan 30 12:55:13 2019 +0000
@@ -0,0 +1,18 @@
+$NetBSD: patch-src_Makefile,v 1.1 2019/01/30 12:55:13 leot Exp $
+
+Fix hardcoded prefix for macOS build.
+
+Upstream PR:
+https://github.com/jmcnamara/libxlsxwriter/pull/210
+
+--- src/Makefile
++++ src/Makefile
+@@ -82,7 +82,7 @@ UNAME := $(shell uname)
+ # Change make options on OS X.
+ ifeq ($(UNAME), Darwin)
+ LIBXLSXWRITER_SO = libxlsxwriter.dylib
+-SOFLAGS = -dynamiclib $(FPIC) -install_name /usr/lib/$(LIBXLSXWRITER_SO)
++SOFLAGS = -dynamiclib $(FPIC) -install_name $(PREFIX)/lib/$(LIBXLSXWRITER_SO)
+ endif
+ 
+ # Check for MinGW/MinGW64/Cygwin environments.



Home | Main Index | Thread Index | Old Index