dev-libs/argtable3: new package, add 3.3.1

Closes: https://bugs.gentoo.org/709630
Signed-off-by: Michael Orlitzky <mjo@gentoo.org>
This commit is contained in:
Michael Orlitzky 2025-08-03 11:14:05 -04:00
parent 089ec11613
commit b2261fe3b3
No known key found for this signature in database
GPG Key ID: 6F48D3DA05C2DADB
3 changed files with 57 additions and 0 deletions

View File

@ -0,0 +1 @@
DIST argtable-v3.3.1.tar.gz 177567 BLAKE2B fe4a7a45097fd829aad05bd2998c1188c5b72de5c77763e3739827c26b8a8d87b9e80128445ff6429fc9cc11be93f6067abe7ed046235cfab00d19d7f0c8f075 SHA512 3c6c3054365746c311081d349970a42c347587260a87b38111f324ee0f9d5e5c277a50f27cc0832f866ae596054c94666108950599b3ded98db638fb41f58ff9

View File

@ -0,0 +1,44 @@
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake
DESCRIPTION="ANSI C command-line parsing library based on getopt"
HOMEPAGE="https://www.argtable.org/"
SRC_URI="https://github.com/argtable/${PN}/releases/download/v${PV}/argtable-v${PV}.tar.gz"
S="${WORKDIR}/argtable-v${PV}"
# Their LICENSE file is a concatenation; thus is our variable:
#
# * argtable3 itself: BSD
# * FreeBSD getopt: BSD-2
# * TCL/TK: tcltk
# * Hash table: BSD
# * Better string: BSD
#
LICENSE="BSD BSD-2 tcltk"
SLOT="0"
KEYWORDS="~amd64 ~riscv"
IUSE="examples test"
RESTRICT="!test? ( test )"
src_configure() {
local mycmakeargs=(
-DARGTABLE3_ENABLE_TESTS=$(usex test)
-DARGTABLE3_ENABLE_EXAMPLES=OFF # don't _build_ the examples
)
cmake_src_configure
}
src_install() {
cmake_src_install
if use examples; then
docinto examples
dodoc examples/*.c
dodoc -r examples/multicmd
fi
}

View File

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>mjo@gentoo.org</email>
<name>Michael Orlitzky</name>
</maintainer>
<upstream>
<remote-id type="github">argtable/argtable3</remote-id>
</upstream>
</pkgmetadata>