commit:     b8a373cc0afe6fda5331e3c20118bd89c3e899e7
Author:     Alexey Shvetsov <alexxy <AT> gentoo <DOT> org>
AuthorDate: Tue Oct 25 22:17:27 2022 +0000
Commit:     Alexey Shvetsov <alexxy <AT> gentoo <DOT> org>
CommitDate: Tue Oct 25 22:17:27 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b8a373cc

dev-cpp/argparse: add 2.9

Signed-off-by: Alexey Shvetsov <alexxy <AT> gentoo.org>

 dev-cpp/argparse/Manifest            |  1 +
 dev-cpp/argparse/argparse-2.9.ebuild | 29 +++++++++++++++++++++++++++++
 2 files changed, 30 insertions(+)

diff --git a/dev-cpp/argparse/Manifest b/dev-cpp/argparse/Manifest
index ba65ae60a21d..c043894820ca 100644
--- a/dev-cpp/argparse/Manifest
+++ b/dev-cpp/argparse/Manifest
@@ -1,2 +1,3 @@
 DIST argparse-2.1.tar.gz 72452 BLAKE2B 
eece3f1cf6a2e58f5bec99f0223b31ba92147964053d98122099dd806a0ab62c6039ee8741281d1eca28b9d0e3aa02d7d076e8bcc64bbd5dd03c777f8e460531
 SHA512 
35746e0b526bd4406c954ab315f191abc57b08b48a047f108ddacc7baace406d3ddddb1af23d41caff565afecfeb41dfedd27a08cdba8d11b59dbe7c78b7e9b0
 DIST argparse-2.6.tar.gz 93865 BLAKE2B 
5ab49a1e9d85e1252b4066fb3278b6c34c0e813f6b49063196cb294544a3adaf45930295834786d41ebbe483b4704be45e90e3a1d53e5085529e78e0b07fad0d
 SHA512 
778e405b7790906794506a2175279465c7d7efa905d0848807fcbddf5ff827e9556a3f2660ee0207a70195a8e9e652ba37ba4df2a038d8646339525cec0f1784
+DIST argparse-2.9.tar.gz 103147 BLAKE2B 
2862acd7dc43dea0f7a7a1e6c9541ec8e7b7ecc70ce72ad327b34f72a330799475490e7da4e3a07c9ab28ddec4f88911514690c8b438f36d7c02704fe26b0f08
 SHA512 
fa471e7d8c448510376e79927496f62775e6ed37e1dffefd607839e6005dfbc61125d0e18bfc1ff20f86cef7efd75339d7bb143dc6574d988f83c7c96896fa5f

diff --git a/dev-cpp/argparse/argparse-2.9.ebuild 
b/dev-cpp/argparse/argparse-2.9.ebuild
new file mode 100644
index 000000000000..e273fd49b506
--- /dev/null
+++ b/dev-cpp/argparse/argparse-2.9.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2022 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
+}

Reply via email to