git: 66ad62270065 - main - devel/libkiwix: Fetch from official site; Enable tests

From: Olivier Certner <olce_at_FreeBSD.org>
Date: Mon, 13 Jan 2025 18:04:49 UTC
The branch main has been updated by olce:

URL: https://cgit.FreeBSD.org/ports/commit/?id=66ad62270065459982b0455e8357c635548b82c7

commit 66ad62270065459982b0455e8357c635548b82c7
Author:     Olivier Certner <olce@FreeBSD.org>
AuthorDate: 2025-01-13 15:58:20 +0000
Commit:     Olivier Certner <olce@FreeBSD.org>
CommitDate: 2025-01-13 18:04:22 +0000

    devel/libkiwix: Fetch from official site; Enable tests
    
    Fetch from the official site instead of Github.
    
    Also, stop downloading Mustache by hand and rely on devel/mustache.
    
    While here, remove a useless link flag for 'libz.so'.
    
    While here, revise the description.
    
    Sponsored by:   The FreeBSD Foundation
---
 devel/libkiwix/Makefile  | 23 ++++++++++++-----------
 devel/libkiwix/distinfo  |  8 +++-----
 devel/libkiwix/pkg-descr |  6 +++---
 3 files changed, 18 insertions(+), 19 deletions(-)

diff --git a/devel/libkiwix/Makefile b/devel/libkiwix/Makefile
index b842c0fc406f..466a94bd8d5a 100644
--- a/devel/libkiwix/Makefile
+++ b/devel/libkiwix/Makefile
@@ -1,15 +1,21 @@
 PORTNAME=	libkiwix
 DISTVERSION=	14.0.0
 CATEGORIES=	devel
+MASTER_SITES=	https://download.kiwix.org/release/libkiwix/
 
 MAINTAINER=	olce.freebsd.ports@certner.fr
-COMMENT=	Common code base for all Kiwix ports
-WWW=		https://www.kiwix.org/
+COMMENT=	Software library to read and write ZIM files
+WWW=		https://github.com/kiwix/libkiwix
 
 LICENSE=	GPLv3+
 LICENSE_FILE=	${WRKSRC}/COPYING
 
-BUILD_DEPENDS=	bash:shells/bash
+# 'googletest' dependency is only necessary for Meson's 'test' target, but it
+# must be present as soon as configure time.
+BUILD_DEPENDS=	bash:shells/bash \
+		${LOCALBASE}/include/kainjow/mustache.hpp:devel/mustache \
+		googletest>0:devel/googletest
+
 LIB_DEPENDS=	libzim.so:devel/libzim \
 		libpugixml.so:textproc/pugixml \
 		libaria2.so:www/aria2 \
@@ -20,11 +26,7 @@ LIB_DEPENDS=	libzim.so:devel/libzim \
 		libcurl.so:ftp/curl \
 		libmicrohttpd.so:www/libmicrohttpd
 
-USES=		compiler:c++17-lang meson pkgconfig python shebangfix
-USE_GITHUB=	yes
-GH_ACCOUNT=	kiwix
-GH_TUPLE=	kiwix:${PORTNAME}:${PORTVERSION}:DEFAULT \
-		kainjow:Mustache:v4.1:mustache
+USES=		compiler:c++17-lang meson pkgconfig python shebangfix tar:xz
 USE_LDCONFIG=	yes
 
 CONFLICTS_INSTALL=	libkiwix13
@@ -32,9 +34,8 @@ CONFLICTS_INSTALL=	libkiwix13
 SHEBANG_FILES=	scripts/format_code.sh
 SHEBANG_REGEX=	./scripts/kiwix.*[^.].
 
-CPPFLAGS+=	-I${WRKSRC_mustache}
-CXXFLAGS+=	-I${WRKSRC_mustache}
-LDFLAGS+=	-lz
+CPPFLAGS+=	-I${LOCALBASE}/include/kainjow
+CXXFLAGS+=	-I${LOCALBASE}/include/kainjow
 
 PLIST_SUB=	PORTVERSION=${PORTVERSION} PORTMAJ=${PORTVERSION:C/\..*//}
 
diff --git a/devel/libkiwix/distinfo b/devel/libkiwix/distinfo
index 38996a83e9f7..dd3e12eee001 100644
--- a/devel/libkiwix/distinfo
+++ b/devel/libkiwix/distinfo
@@ -1,5 +1,3 @@
-TIMESTAMP = 1736502491
-SHA256 (kiwix-libkiwix-14.0.0_GH0.tar.gz) = dae329ebc08ff510daa50b42de71366bf063813e29bf1c09cc49335d90f32094
-SIZE (kiwix-libkiwix-14.0.0_GH0.tar.gz) = 1149884
-SHA256 (kainjow-Mustache-v4.1_GH0.tar.gz) = acd66359feb4318b421f9574cfc5a511133a77d916d0b13c7caa3783c0bfe167
-SIZE (kainjow-Mustache-v4.1_GH0.tar.gz) = 98905
+TIMESTAMP = 1736786938
+SHA256 (libkiwix-14.0.0.tar.xz) = fbdc64d37efd17f3f195725441b5239c8aaf01797af86415dc4f889f499210dc
+SIZE (libkiwix-14.0.0.tar.xz) = 1003564
diff --git a/devel/libkiwix/pkg-descr b/devel/libkiwix/pkg-descr
index bd84147decbf..7ead8d1e5228 100644
--- a/devel/libkiwix/pkg-descr
+++ b/devel/libkiwix/pkg-descr
@@ -1,5 +1,5 @@
-Kiwix is an offline reader for web content archived in ZIM format. It is
+Kiwix is an offline reader for web content archived in ZIM format.  It is
 particularly tailored towards Wikipedia and other wikis.
 
-The Kiwix library contains the code shared by Kiwix ports on all supported
-platforms.
+Libkiwix provides the Kiwix software suite core.  It contains the code shared by
+all Kiwix ports.