diff --git a/dev-libs/argtable3/Manifest b/dev-libs/argtable3/Manifest new file mode 100644 index 0000000000000..222719edce69b --- /dev/null +++ b/dev-libs/argtable3/Manifest @@ -0,0 +1 @@ +DIST argtable-v3.3.1.tar.gz 177567 BLAKE2B fe4a7a45097fd829aad05bd2998c1188c5b72de5c77763e3739827c26b8a8d87b9e80128445ff6429fc9cc11be93f6067abe7ed046235cfab00d19d7f0c8f075 SHA512 3c6c3054365746c311081d349970a42c347587260a87b38111f324ee0f9d5e5c277a50f27cc0832f866ae596054c94666108950599b3ded98db638fb41f58ff9 diff --git a/dev-libs/argtable3/argtable3-3.3.1.ebuild b/dev-libs/argtable3/argtable3-3.3.1.ebuild new file mode 100644 index 0000000000000..d2bb5550a9489 --- /dev/null +++ b/dev-libs/argtable3/argtable3-3.3.1.ebuild @@ -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 +} diff --git a/dev-libs/argtable3/metadata.xml b/dev-libs/argtable3/metadata.xml new file mode 100644 index 0000000000000..513adbdf0331e --- /dev/null +++ b/dev-libs/argtable3/metadata.xml @@ -0,0 +1,12 @@ + + + + + mjo@gentoo.org + Michael Orlitzky + + + + argtable/argtable3 + +