dev-libs/inih: Sync with Gentoo

It's from Gentoo commit 83eca1e8b551660b41994262c226edb278d98da5.
This commit is contained in:
Krzesimir Nowak 2023-03-24 16:06:58 +01:00
parent 1f2ecc03e8
commit 1c4a83151b
2 changed files with 12 additions and 19 deletions

View File

@ -1 +1 @@
DIST inih-53.tar.gz 16984 BLAKE2B 1242e6273c9dd9a11ea026a3495a487b2aa72d8e01f34304d8568c88897ae9c9bb425246f992dc16f4dc2210ec14c597d0ef595cec84ff98a5d6101ee5a643b9 SHA512 99bc40c294b521e9973184bfb30d60c129735991f33b387b3d023827a34672b0489eadf91e38895ea725168dbc7b27bb02c1975debe7573b4b209d0e947b2100
DIST inih-56.tar.gz 18458 BLAKE2B 51935959a9eb4e393b17302f0932a232963883680f10d404c63d5f2ebbd3bf0b740f44edfa1b2541d0e130016eb853ebedf68a1c40797f658496e2a8c966af3d SHA512 ff3e0910990f73e5b21fddc84737ab346279f201c86c7ad864c6cad9de5bde57c3e0a433b9b8f3585b7d86feaae2ea074185f92891dcadc98c274c1c0745d2d2

View File

@ -1,37 +1,30 @@
# Copyright 2020-2021 Gentoo Authors
# Copyright 2020-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
EAPI=8
inherit meson-multilib
# Tests not wired up to meson and don't seem to be intended for downstream use yet
# e.g. hardcoding gcc, just a shell script
inherit meson
DESCRIPTION="inih (INI not invented here) simple .INI file parser"
HOMEPAGE="https://github.com/benhoyt/inih"
SRC_URI="https://github.com/benhoyt/inih/archive/r${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~mips ppc ppc64 ~riscv ~s390 sparc x86"
S="${WORKDIR}"/inih-r${PV}
LICENSE="BSD"
SLOT="0"
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~mips ppc ppc64 ~riscv ~s390 sparc x86"
IUSE="static-libs"
DOCS=( README.md )
S="${WORKDIR}/inih-r${PV}"
multilib_src_configure() {
src_configure() {
local emesonargs=(
-Ddefault_library=$(usex static-libs both shared)
-Ddefault_library=shared
-Ddistro_install=true
-Dwith_INIReader=true
)
meson_src_configure
}
multilib_src_install_all() {
local DOCS=(
LICENSE.txt
README.md
)
einstalldocs
}