pkgsrc-Changes archive

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

CVS commit: pkgsrc/textproc/libxlsxwriter



Module Name:    pkgsrc
Committed By:   leot
Date:           Wed Jan 30 12:55:13 UTC 2019

Added Files:
        pkgsrc/textproc/libxlsxwriter: DESCR Makefile PLIST buildlink3.mk
            distinfo
        pkgsrc/textproc/libxlsxwriter/patches: patch-Makefile
            patch-src_Makefile

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/textproc/libxlsxwriter/DESCR \
    pkgsrc/textproc/libxlsxwriter/Makefile \
    pkgsrc/textproc/libxlsxwriter/PLIST \
    pkgsrc/textproc/libxlsxwriter/buildlink3.mk \
    pkgsrc/textproc/libxlsxwriter/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/textproc/libxlsxwriter/patches/patch-Makefile \
    pkgsrc/textproc/libxlsxwriter/patches/patch-src_Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Added files:

Index: pkgsrc/textproc/libxlsxwriter/DESCR
diff -u /dev/null pkgsrc/textproc/libxlsxwriter/DESCR:1.1
--- /dev/null   Wed Jan 30 12:55:13 2019
+++ pkgsrc/textproc/libxlsxwriter/DESCR Wed Jan 30 12:55:13 2019
@@ -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.
Index: pkgsrc/textproc/libxlsxwriter/Makefile
diff -u /dev/null pkgsrc/textproc/libxlsxwriter/Makefile:1.1
--- /dev/null   Wed Jan 30 12:55:13 2019
+++ pkgsrc/textproc/libxlsxwriter/Makefile      Wed Jan 30 12:55:13 2019
@@ -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"
Index: pkgsrc/textproc/libxlsxwriter/PLIST
diff -u /dev/null pkgsrc/textproc/libxlsxwriter/PLIST:1.1
--- /dev/null   Wed Jan 30 12:55:13 2019
+++ pkgsrc/textproc/libxlsxwriter/PLIST Wed Jan 30 12:55:13 2019
@@ -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
Index: pkgsrc/textproc/libxlsxwriter/buildlink3.mk
diff -u /dev/null pkgsrc/textproc/libxlsxwriter/buildlink3.mk:1.1
--- /dev/null   Wed Jan 30 12:55:13 2019
+++ pkgsrc/textproc/libxlsxwriter/buildlink3.mk Wed Jan 30 12:55:13 2019
@@ -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
Index: pkgsrc/textproc/libxlsxwriter/distinfo
diff -u /dev/null pkgsrc/textproc/libxlsxwriter/distinfo:1.1
--- /dev/null   Wed Jan 30 12:55:13 2019
+++ pkgsrc/textproc/libxlsxwriter/distinfo      Wed Jan 30 12:55:13 2019
@@ -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

Index: pkgsrc/textproc/libxlsxwriter/patches/patch-Makefile
diff -u /dev/null pkgsrc/textproc/libxlsxwriter/patches/patch-Makefile:1.1
--- /dev/null   Wed Jan 30 12:55:13 2019
+++ pkgsrc/textproc/libxlsxwriter/patches/patch-Makefile        Wed Jan 30 12:55:13 2019
@@ -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 :
Index: pkgsrc/textproc/libxlsxwriter/patches/patch-src_Makefile
diff -u /dev/null pkgsrc/textproc/libxlsxwriter/patches/patch-src_Makefile:1.1
--- /dev/null   Wed Jan 30 12:55:13 2019
+++ pkgsrc/textproc/libxlsxwriter/patches/patch-src_Makefile    Wed Jan 30 12:55:13 2019
@@ -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