mirror of
https://anongit.gentoo.org/git/repo/gentoo.git
synced 2025-06-08 14:15:07 +02:00
37 lines
597 B
Bash
37 lines
597 B
Bash
# Copyright 2024-2025 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
inherit meson
|
|
|
|
DESCRIPTION="Simple, modern libpng alternative"
|
|
HOMEPAGE="https://github.com/randy408/libspng"
|
|
SRC_URI="
|
|
https://github.com/randy408/libspng/archive/refs/tags/v${PV}.tar.gz
|
|
-> ${P}.tar.gz
|
|
"
|
|
|
|
LICENSE="BSD-2"
|
|
SLOT="0"
|
|
KEYWORDS="amd64 ~arm64"
|
|
IUSE="test"
|
|
RESTRICT="!test? ( test )"
|
|
|
|
RDEPEND="
|
|
sys-libs/zlib
|
|
"
|
|
DEPEND="
|
|
${RDEPEND}
|
|
test? (
|
|
>=media-libs/libpng-1.6.0
|
|
)
|
|
"
|
|
|
|
src_configure() {
|
|
local emesonargs=(
|
|
$(meson_use test dev_build)
|
|
)
|
|
|
|
meson_src_configure
|
|
}
|