app-arch/libzim - 9.7.0 (guru)

Search

Install

Install this version:

emerge -a =app-arch/libzim-9.7.0

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =app-arch/libzim-9.7.0

Or alternatively:

emerge --autounmask-write -a =app-arch/libzim-9.7.0

Package Information

Description:
ZIM file format: an offline storage solution for content coming from the Web
Homepage:
https://wiki.openzim.org/wiki/OpenZIM
License:
GPL-2

Ebuild Details

Version EAPI Keywords Slot
9.7.0 8 ~amd64 0/9.5
View Raw Ebuild
# Copyright 2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

# TODO: add tests, doc
# TODO: add optional +xapian USE

EAPI=8

PYTHON_COMPAT=( python3_{12..14} )

inherit meson python-any-r1

TEST_DATA_V="0.9.0"

DESCRIPTION="ZIM file format: an offline storage solution for content coming from the Web"
HOMEPAGE="https://wiki.openzim.org/wiki/OpenZIM"
SRC_URI="
	https://github.com/openzim/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz
	test? (
		https://github.com/openzim/zim-testing-suite/releases/download/${TEST_DATA_V}/zim-testing-suite-${TEST_DATA_V}.tar.gz -> ${P}-test_data.tar.gz
	)
"

LICENSE="GPL-2"
SLOT="0/9.5"
KEYWORDS="~amd64"

IUSE="test"

RDEPEND="
	app-arch/lzma
	app-arch/xz-utils
	app-arch/zstd:=
	dev-libs/icu:=
	dev-libs/xapian:=
"
DEPEND="${RDEPEND}"
BDEPEND="
	test? (
		dev-cpp/gtest
	)
	${PYTHON_DEPS}"

src_prepare() {
	default

	sed -i "s/, 'suggestion'//g" test/meson.build || die
	sed -i "/archive/d" test/meson.build || die
}

src_configure() {
	local emesonargs=(
		$(meson_use test tests)
		-Dtest_data_dir="${WORKDIR}/zim-testing-suite-${TEST_DATA_V}"
	)
	meson_src_configure
}

USE Flags

Manage flags for this package: euse -i <flag> -p app-arch/libzim | euse -E <flag> -p app-arch/libzim | euse -D <flag> -p app-arch/libzim

Global/Standard Flags

Inherited Eclasses

Dependencies

DEPEND

	app-arch/lzma
	app-arch/xz-utils
	app-arch/zstd:=
	dev-libs/icu:=
	dev-libs/xapian:=

RDEPEND

	app-arch/lzma
	app-arch/xz-utils
	app-arch/zstd:=
	dev-libs/icu:=
	dev-libs/xapian:=

BDEPEND

	test? (
		dev-cpp/gtest
	)
	

Manifest for 9.7.0

Type File Size Source URLs
DIST libzim-9.7.0-test_data.tar.gz 25248332 bytes https://github.com/openzim/zim-testing-suite/releases/download/0.9.0/zim-testing-suite-0.9.0.tar.gz
DIST libzim-9.7.0.tar.gz 283154 bytes https://github.com/openzim/libzim/archive/9.7.0.tar.gz