pkgsrc-WIP-changes archive

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

libxlsxwriter: Add test target



Module Name:	pkgsrc-wip
Committed By:	Sijmen J. Mulder <ik%sjmulder.nl@localhost>
Pushed By:	sjmulder
Date:		Tue Dec 11 09:52:06 2018 +0100
Changeset:	9b4a87b3ed06f859977e7d7161f49849e9d08472

Modified Files:
	libxlsxwriter/Makefile
	libxlsxwriter/distinfo
Added Files:
	libxlsxwriter/patches/patch-Makefile

Log Message:
libxlsxwriter: Add test target

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=9b4a87b3ed06f859977e7d7161f49849e9d08472

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

diffstat:
 libxlsxwriter/Makefile               | 12 ++++++++++--
 libxlsxwriter/distinfo               |  1 +
 libxlsxwriter/patches/patch-Makefile | 15 +++++++++++++++
 3 files changed, 26 insertions(+), 2 deletions(-)

diffs:
diff --git a/libxlsxwriter/Makefile b/libxlsxwriter/Makefile
index 4ba89d5add..5eeb3aba83 100644
--- a/libxlsxwriter/Makefile
+++ b/libxlsxwriter/Makefile
@@ -10,12 +10,20 @@ 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
 USE_LANGUAGES+=	c c++
 
+.include "../../lang/python/pyversion.mk"
+
 # more verbose output
-MAKE_FLAGS+=	V=1
-MAKE_FLAGS+=	INSTALL_DIR=${DESTDIR}${PREFIX}
+MAKE_ENV+=	V=1
+MAKE_ENV+=	PYSUFFIX=-${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
 
diff --git a/libxlsxwriter/distinfo b/libxlsxwriter/distinfo
index af1d375fc2..4e27aecef6 100644
--- a/libxlsxwriter/distinfo
+++ b/libxlsxwriter/distinfo
@@ -4,3 +4,4 @@ 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) = 481a01a81d95237546d06a8088dc3d01de09af49
diff --git a/libxlsxwriter/patches/patch-Makefile b/libxlsxwriter/patches/patch-Makefile
new file mode 100644
index 0000000000..618bbb9938
--- /dev/null
+++ b/libxlsxwriter/patches/patch-Makefile
@@ -0,0 +1,15 @@
+# $NetBSD$
+
+Have the Makefile use our suffixed py.test.
+
+--- Makefile.orig	2018-12-11 09:27:13.020452878 +0100
++++ Makefile	2018-12-11 09:28:13.394456837 +0100
+@@ -58,7 +58,7 @@
+ # Run the functional tests.
+ test_functional : all
+ 	$(Q)$(MAKE) -C test/functional/src
+-	$(Q)py.test test/functional -v
++	$(Q)py.test$(PYSUFFIX) test/functional -v
+ 
+ # Run all tests.
+ test_unit :


Home | Main Index | Thread Index | Old Index