Files
gentoo-zh/media-libs/openslide/openslide-4.0.1-r1.ebuild
T
2026-10-23 08:55:28 +11:00

44 lines
941 B
Bash

# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit meson
DESCRIPTION="A C library that provides a simple interface to read whole-slide images"
HOMEPAGE="https://openslide.org/ https://github.com/openslide/openslide"
SRC_URI="https://github.com/openslide/openslide/releases/download/v${PV}/${P}.tar.xz"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="~amd64 ~arm64 ~loong"
IUSE="doc"
RESTRICT="test"
RDEPEND="
virtual/zlib:=
app-arch/zstd:=
media-libs/libjpeg-turbo:=
media-libs/libpng:=
media-libs/openjpeg:2=
media-libs/tiff:=
dev-libs/glib:2
x11-libs/cairo
x11-libs/gdk-pixbuf
dev-libs/libxml2:=
dev-db/sqlite:3
media-libs/libdicom
doc? ( app-text/doxygen )
"
DEPEND="${RDEPEND}"
src_configure() {
# Disable test, its requires download big test resource from the Internet.
local emesonargs=(
-Dtest=disabled
$(meson_feature doc)
)
meson_src_configure
}