From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1323150-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by finch.gentoo.org (Postfix) with ESMTPS id 362FF158012
	for <garchives@archives.gentoo.org>; Tue, 21 Sep 2021 20:10:13 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 7C9C0E07F0;
	Tue, 21 Sep 2021 20:10:12 +0000 (UTC)
Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4])
	(using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits))
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id 1CC19E07F0
	for <gentoo-commits@lists.gentoo.org>; Tue, 21 Sep 2021 20:10:11 +0000 (UTC)
Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52])
	(using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits))
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id CD8D6342CBB
	for <gentoo-commits@lists.gentoo.org>; Tue, 21 Sep 2021 20:10:10 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id 1E9E5EE
	for <gentoo-commits@lists.gentoo.org>; Tue, 21 Sep 2021 20:10:09 +0000 (UTC)
From: "Anna Vyalkova" <cyber+gentoo@sysrq.in>
To: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: 8bit
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "Anna Vyalkova" <cyber+gentoo@sysrq.in>
Message-ID: <1632254985.e4a85804965c4b11fc6bf9fbbf7b5bae0f88a78f.cybertailor@gentoo>
Subject: [gentoo-commits] repo/proj/guru:dev commit in: dev-cpp/cli11/
X-VCS-Repository: repo/proj/guru
X-VCS-Files: dev-cpp/cli11/Manifest dev-cpp/cli11/cli11-1.9.1.ebuild dev-cpp/cli11/cli11-2.1.0.ebuild dev-cpp/cli11/metadata.xml
X-VCS-Directories: dev-cpp/cli11/
X-VCS-Committer: cybertailor
X-VCS-Committer-Name: Anna Vyalkova
X-VCS-Revision: e4a85804965c4b11fc6bf9fbbf7b5bae0f88a78f
X-VCS-Branch: dev
Date: Tue, 21 Sep 2021 20:10:09 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply
X-Archives-Salt: 835bde68-f3cc-474d-99ef-edf386e4f4c1
X-Archives-Hash: a70325492f393e49db10831f7156010a

commit:     e4a85804965c4b11fc6bf9fbbf7b5bae0f88a78f
Author:     Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
AuthorDate: Tue Sep 21 20:00:31 2021 +0000
Commit:     Anna Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
CommitDate: Tue Sep 21 20:09:45 2021 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=e4a85804

dev-cpp/cli11: add 2.1.0, drop 1.9.1

- add subslot
- enable normal tests

Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq.in>

 dev-cpp/cli11/Manifest           |  3 ++-
 dev-cpp/cli11/cli11-1.9.1.ebuild | 36 ----------------------------
 dev-cpp/cli11/cli11-2.1.0.ebuild | 51 ++++++++++++++++++++++++++++++++++++++++
 dev-cpp/cli11/metadata.xml       |  2 +-
 4 files changed, 54 insertions(+), 38 deletions(-)

diff --git a/dev-cpp/cli11/Manifest b/dev-cpp/cli11/Manifest
index d48ce376a..af94af0b0 100644
--- a/dev-cpp/cli11/Manifest
+++ b/dev-cpp/cli11/Manifest
@@ -1,2 +1,3 @@
-DIST cli11-1.9.1.tar.gz 262925 BLAKE2B 30c0c35827992ca8f1527ace9dda076a89666f1598be423bead85fff2006ca82f59937348b914a9b058878a7e68467501226c704b4ecaeefe09508657f346a14 SHA512 bcccfe88695ceddd73d87738e1d5ed4372f5cf43e3866e88053dd486ea8973804022029775de781e1dbdd2e1566b77e072de00202033983217276954a07c5718
+DIST catch-2.13.6.hpp 656886 BLAKE2B 590fabc7970b97f333457f409276688f69a66de7fa3c43d767994ed212a3b5bde6e6c113c36a0ff03dd95bbb0cdb38cc12b43a96d16644525ea7425e028485a6 SHA512 ca401efb224e87c4f9d9f3bd58102d3223ef3356149837be2474fa2dbae645272c1ecb17d7db96c2b43b97034aacb63f840f4ebec16f2f3d447c1cc80a500d40
 DIST cli11-2.0.0.tar.gz 280797 BLAKE2B 5ce65d6c23f98d4128d1e7d4711f9dcd258b1705317b7e94b094d172c090c27a26b43580df16fee8d0a1a1cb993b763d7d43cc8fda7dad231f0ca018c816b9e7 SHA512 5ac06623383c003286b915e585e85ad419449735770e9a164665395f33d9e03ec6340445ab782200e2cfe5f40123b5843a7401211b6ece5b16342321e3e7a10a
+DIST cli11-2.1.0.tar.gz 286192 BLAKE2B c88a57effedaa19a119a28f5ad6d63f3b1a43055359e6d7d74258a839e0846817593974460e3f51d44218bca2b6b227c9d893a919155b38b63cd6b0b37711073 SHA512 22c75e6b55d5320656ca2f65bf7c1dc82546fa65458f66a3d6401d002e83f12a0ee93a572637f5daa8daed9e0ce11fbf4aabf864caadc851f75bced63814ba10

diff --git a/dev-cpp/cli11/cli11-1.9.1.ebuild b/dev-cpp/cli11/cli11-1.9.1.ebuild
deleted file mode 100644
index 31ec5a7f7..000000000
--- a/dev-cpp/cli11/cli11-1.9.1.ebuild
+++ /dev/null
@@ -1,36 +0,0 @@
-# Copyright 2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-DOCS_BUILDER="doxygen"
-DOCS_CONFIG_NAME="docs/Doxyfile"
-inherit cmake docs
-
-MY_PN="CLI11"
-DESCRIPTION="Command line parser for C++11"
-HOMEPAGE="https://github.com/CLIUtils/CLI11 https://cliutils.github.io/CLI11/book"
-SRC_URI="https://github.com/CLIUtils/${MY_PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
-S="${WORKDIR}/${MY_PN}-${PV}"
-
-LICENSE="BSD"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE="test"
-RESTRICT="!test? ( test )"
-
-src_configure() {
-	local mycmakeargs=(
-		-DCLI11_BUILD_DOCS=OFF
-		-DCLI11_BUILD_TESTS=OFF
-		-DCLI11_BUILD_EXAMPLES=$(usex test)
-		-DCLI11_BUILD_EXAMPLES_JSON=OFF
-	)
-
-	cmake_src_configure
-}
-
-src_compile() {
-	cmake_src_compile
-	docs_compile
-}

diff --git a/dev-cpp/cli11/cli11-2.1.0.ebuild b/dev-cpp/cli11/cli11-2.1.0.ebuild
new file mode 100644
index 000000000..4f578edbf
--- /dev/null
+++ b/dev-cpp/cli11/cli11-2.1.0.ebuild
@@ -0,0 +1,51 @@
+# Copyright 2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DOCS_BUILDER="doxygen"
+DOCS_DIR="docs"
+inherit cmake docs
+
+CATCH_PV=2.13.6
+DESCRIPTION="Command line parser for C++11"
+HOMEPAGE="https://github.com/CLIUtils/CLI11 https://cliutils.github.io/CLI11/book"
+SRC_URI="
+	https://github.com/CLIUtils/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz
+	test? ( https://github.com/philsquared/Catch/releases/download/v${CATCH_PV}/catch.hpp -> catch-${CATCH_PV}.hpp )
+"
+S="${WORKDIR}/CLI11-${PV}"
+
+LICENSE="BSD"
+SLOT="0/2"
+KEYWORDS="~amd64 ~x86"
+IUSE="test"
+RESTRICT="!test? ( test )"
+
+DOCS=( README.md CHANGELOG.md )
+
+src_unpack() {
+	unpack ${P}.tar.gz
+
+	# work around cmake's file(DOWNLOAD ...)
+	cd "${S}" || die
+	if use test; then
+		_cmake_check_build_dir
+		mkdir "${BUILD_DIR}"/tests || die
+		cp "${DISTDIR}"/catch-${CATCH_PV}.hpp "${BUILD_DIR}"/tests/catch.hpp || die
+	fi
+}
+
+src_configure() {
+	local mycmakeargs=(
+		-DCLI11_BUILD_DOCS=OFF  # handled by docs.eclass
+		-DCLI11_BUILD_TESTS=$(usex test)
+	)
+
+	cmake_src_configure
+}
+
+src_compile() {
+	cmake_src_compile
+	docs_compile
+}

diff --git a/dev-cpp/cli11/metadata.xml b/dev-cpp/cli11/metadata.xml
index 51cad842f..6985eff64 100644
--- a/dev-cpp/cli11/metadata.xml
+++ b/dev-cpp/cli11/metadata.xml
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
 <pkgmetadata>
 	<upstream>
 		<remote-id type="github">CLIUtils/CLI11</remote-id>