aboutsummaryrefslogtreecommitdiff
path: root/math/libxlsxwriter/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'math/libxlsxwriter/Makefile')
-rw-r--r--math/libxlsxwriter/Makefile23
1 files changed, 18 insertions, 5 deletions
diff --git a/math/libxlsxwriter/Makefile b/math/libxlsxwriter/Makefile
index 60b985eb0d44..93c6a3aab6d5 100644
--- a/math/libxlsxwriter/Makefile
+++ b/math/libxlsxwriter/Makefile
@@ -1,6 +1,6 @@
PORTNAME= libxlsxwriter
-PORTVERSION= 1.1.7
-DISTVERSIONPREFIX= RELEASE_
+DISTVERSIONPREFIX= v
+DISTVERSION= 1.2.2
CATEGORIES= math devel
MAINTAINER= bapt@FreeBSD.org
@@ -8,12 +8,25 @@ COMMENT= C library for creating Excel XLSX files
WWW= https://libxlsxwriter.github.io/
LICENSE= BSD2CLAUSE
+LICENSE_FILE= ${WRKSRC}/License.txt
+
+TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>=0:devel/py-pytest@${PY_FLAVOR}
+
+USES= cmake:testing compiler:c11 localbase:ldflags minizip pathfix \
+ pkgconfig python:test ssl
+USE_LDCONFIG= yes
USE_GITHUB= yes
GH_ACCOUNT= jmcnamara
-MAKE_ARGS= INSTALL_DIR=${STAGEDIR}${PREFIX}
-USE_LDCONFIG= yes
-USES= compiler:c11 gmake
+EXTRACT_AFTER_ARGS= --exclude ${GH_PROJECT_DEFAULT}-${GH_TAGNAME_EXTRACT}/third_party/md5 \
+ --exclude ${GH_PROJECT_DEFAULT}-${GH_TAGNAME_EXTRACT}/third_party/minizip \
+ --no-same-owner --no-same-permissions
+
+CMAKE_TESTING_ON= BUILD_TESTS
+
+CMAKE_ON= BUILD_SHARED_LIBS \
+ USE_OPENSSL_MD5 \
+ USE_SYSTEM_MINIZIP
.include <bsd.port.mk>