commit: 85527bea063548a3935f0aefcd975c0c4c852467 Author: Jakov Smolić <jsmolic <AT> gentoo <DOT> org> AuthorDate: Fri Aug 30 15:21:34 2024 +0000 Commit: Jakov Smolić <jsmolic <AT> gentoo <DOT> org> CommitDate: Fri Aug 30 15:21:34 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=85527bea
dev-libs/uthash: update EAPI 7 -> 8 Signed-off-by: Jakov Smolić <jsmolic <AT> gentoo.org> dev-libs/uthash/uthash-2.3.0-r1.ebuild | 35 ++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/dev-libs/uthash/uthash-2.3.0-r1.ebuild b/dev-libs/uthash/uthash-2.3.0-r1.ebuild new file mode 100644 index 000000000000..05c456d3d563 --- /dev/null +++ b/dev-libs/uthash/uthash-2.3.0-r1.ebuild @@ -0,0 +1,35 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit toolchain-funcs + +DESCRIPTION="An easy-to-use hash implementation for C programmers" +HOMEPAGE="https://troydhanson.github.io/uthash/index.html" +SRC_URI="https://github.com/troydhanson/uthash/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD-1" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86" +IUSE="test" +RESTRICT="!test? ( test )" + +BDEPEND="test? ( dev-lang/perl )" + +PATCHES=( + "${FILESDIR}"/${PN}-2.1.0-cflags.patch +) + +src_configure() { + tc-export CC +} + +src_test() { + emake -C tests +} + +src_install() { + doheader src/*.h + dodoc doc/*.txt +}
