Wed Jan 30 12:55:13 2019 UTC ()
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.


(leot)
diff -r0 -r1.1 pkgsrc/textproc/libxlsxwriter/DESCR
diff -r0 -r1.1 pkgsrc/textproc/libxlsxwriter/Makefile
diff -r0 -r1.1 pkgsrc/textproc/libxlsxwriter/PLIST
diff -r0 -r1.1 pkgsrc/textproc/libxlsxwriter/buildlink3.mk
diff -r0 -r1.1 pkgsrc/textproc/libxlsxwriter/distinfo
diff -r0 -r1.1 pkgsrc/textproc/libxlsxwriter/patches/patch-Makefile
diff -r0 -r1.1 pkgsrc/textproc/libxlsxwriter/patches/patch-src_Makefile

File Added: pkgsrc/textproc/libxlsxwriter/DESCR
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.

File Added: pkgsrc/textproc/libxlsxwriter/Makefile
# $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
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"

File Added: pkgsrc/textproc/libxlsxwriter/PLIST
@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

File Added: pkgsrc/textproc/libxlsxwriter/buildlink3.mk
# $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

File Added: pkgsrc/textproc/libxlsxwriter/distinfo
$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

File Added: pkgsrc/textproc/libxlsxwriter/patches/Attic/patch-Makefile
$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 :

File Added: pkgsrc/textproc/libxlsxwriter/patches/Attic/patch-src_Makefile
$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.