Files
guru/www-misc/libkiwix/libkiwix-14.2.0.ebuild
David Roman ed72789e47 www-misc/libkiwix: add 14.2.0
Signed-off-by: David Roman <stkw0@disroot.org>
2026-03-10 14:12:02 +01:00

51 lines
979 B
Bash

# Copyright 2024-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit meson
DESCRIPTION="Kiwix software suite core: code shared by all Kiwix ports"
HOMEPAGE="https://kiwix.org/"
SRC_URI="https://github.com/kiwix/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-3+"
SLOT="0/14"
KEYWORDS="~amd64"
IUSE="test"
RESTRICT="!test? ( test )"
COMMON_DEPEND="
>=app-arch/libzim-9.0.0
dev-libs/icu:=
dev-libs/pugixml
dev-libs/xapian:=
net-libs/libmicrohttpd:=
net-misc/curl
virtual/zlib:=
"
RDEPEND="
${COMMON_DEPEND}
net-misc/aria2[bittorrent,metalink,xmlrpc]
"
DEPEND="
${COMMON_DEPEND}
>=dev-cpp/mustache-4.1
"
BDEPEND="
test? ( dev-cpp/gtest )
"
PATCHES=( "${FILESDIR}/${P}_remove-python-dep.patch" )
src_prepare() {
default
# requires PROPERTIES="test_network"
sed -i '/^if build_machine.system/,/endif/d' test/meson.build || die
if ! use test; then
sed -i "/subdir('test')/d" meson.build || die
fi
}