summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur Zamarin <arthurzam@gentoo.org>2024-06-04 19:41:59 +0300
committerArthur Zamarin <arthurzam@gentoo.org>2024-06-04 19:42:10 +0300
commitaa67102e80ac8f2f405967f79fc647721e798961 (patch)
tree525e0d8557fd9dfe91d1b595e832418036a04431 /dev-cpp/argparse
parentapp-dicts/myspell-en: drop 20230701, 20230901, 20240101 (diff)
downloadgentoo-aa67102e80ac8f2f405967f79fc647721e798961.tar.gz
gentoo-aa67102e80ac8f2f405967f79fc647721e798961.tar.bz2
gentoo-aa67102e80ac8f2f405967f79fc647721e798961.zip
dev-cpp/argparse: add 3.0
Closes: https://bugs.gentoo.org/919143 Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
Diffstat (limited to 'dev-cpp/argparse')
-rw-r--r--dev-cpp/argparse/Manifest1
-rw-r--r--dev-cpp/argparse/argparse-3.0.ebuild29
2 files changed, 30 insertions, 0 deletions
diff --git a/dev-cpp/argparse/Manifest b/dev-cpp/argparse/Manifest
index 02766a54f2de..83cbe67bcf5b 100644
--- a/dev-cpp/argparse/Manifest
+++ b/dev-cpp/argparse/Manifest
@@ -1 +1,2 @@
DIST argparse-2.9.tar.gz 103147 BLAKE2B 2862acd7dc43dea0f7a7a1e6c9541ec8e7b7ecc70ce72ad327b34f72a330799475490e7da4e3a07c9ab28ddec4f88911514690c8b438f36d7c02704fe26b0f08 SHA512 fa471e7d8c448510376e79927496f62775e6ed37e1dffefd607839e6005dfbc61125d0e18bfc1ff20f86cef7efd75339d7bb143dc6574d988f83c7c96896fa5f
+DIST argparse-3.0.tar.gz 116171 BLAKE2B 55a9aeaddf8ddaf8fa3e99d2ce3145a09c0ebfe927150928db683162e2227a61a2e7fbf8d272346e11912ece2cbdba313790586bd49c89352a03f0cafd01c3c9 SHA512 a7ed879eb3f71868cd84e513c0db63c4fecff1c9f0b34d6cfbe85d2439e83b80e97f713b497259c9775c9c7c1f639a08b73080045c51756de15e3d8c18b97116
diff --git a/dev-cpp/argparse/argparse-3.0.ebuild b/dev-cpp/argparse/argparse-3.0.ebuild
new file mode 100644
index 000000000000..478612f014e0
--- /dev/null
+++ b/dev-cpp/argparse/argparse-3.0.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake
+
+DESCRIPTION="Argument Parser for Modern C++"
+HOMEPAGE="https://github.com/p-ranav/argparse"
+SRC_URI="https://github.com/p-ranav/argparse/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~x86"
+IUSE="test"
+RESTRICT="!test? ( test )"
+
+src_configure() {
+ local mycmakeargs=(
+ -DARGPARSE_BUILD_TESTS=$(usex test)
+ )
+
+ cmake_src_configure
+}
+
+src_test() {
+ cd "${BUILD_DIR}"/test || die
+ ./tests || die
+}