From 18c4bef9907d67d644826f26ff8c8afc37506baa Mon Sep 17 00:00:00 2001 From: Patrick McLean Date: Sat, 5 Dec 2020 13:14:19 -0800 Subject: dev-libs/cxxopts: New package Package-Manager: Portage-3.0.11, Repoman-3.0.2 Signed-off-by: Patrick McLean --- dev-libs/cxxopts/Manifest | 1 + dev-libs/cxxopts/cxxopts-2.2.1.ebuild | 31 +++++++++++++++++++++++++++++++ dev-libs/cxxopts/metadata.xml | 8 ++++++++ 3 files changed, 40 insertions(+) create mode 100644 dev-libs/cxxopts/Manifest create mode 100644 dev-libs/cxxopts/cxxopts-2.2.1.ebuild create mode 100644 dev-libs/cxxopts/metadata.xml (limited to 'dev-libs/cxxopts') diff --git a/dev-libs/cxxopts/Manifest b/dev-libs/cxxopts/Manifest new file mode 100644 index 000000000000..979c216d40dd --- /dev/null +++ b/dev-libs/cxxopts/Manifest @@ -0,0 +1 @@ +DIST cxxopts-2.2.1.tar.gz 89561 BLAKE2B d7fb74cff9b9381d90827fd3e3bcc7dab8b4dc100b9ff12d98ff4c73400c187c04c270d8c5a019c88e553f8c46c59eda1e5076a1aec944e7d8af5ca6de2326db SHA512 bad2928b4e06efcfa09728dd946426e4fd39715b687c0a5c7b6308dd366cb490fdd8491c9a9778242d97d5be4a383bf9d1c209efe298c6c43bb1eb9daa103f05 diff --git a/dev-libs/cxxopts/cxxopts-2.2.1.ebuild b/dev-libs/cxxopts/cxxopts-2.2.1.ebuild new file mode 100644 index 000000000000..07fc7918888b --- /dev/null +++ b/dev-libs/cxxopts/cxxopts-2.2.1.ebuild @@ -0,0 +1,31 @@ +# Copyright 2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit cmake + +DESCRIPTION="Lightweight C++ command line option parser" +HOMEPAGE="https://github.com/jarro2783/cxxopts" +SRC_URI="https://github.com/jarro2783/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86" +IUSE="test" + +RESTRICT="!test? ( test )" + +DOCS=( + README.md + CHANGELOG.md +) + +src_configure() { + local -a mycmakeopts=( + -DCXXOPTS_BUILD_EXAMPLES=OFF + -DCXXOPTS_BUILD_TESTS=$(usex test 'ON' 'OFF') + -DCXXOPTS_ENABLE_INSTALL=ON + ) + cmake_src_configure +} diff --git a/dev-libs/cxxopts/metadata.xml b/dev-libs/cxxopts/metadata.xml new file mode 100644 index 000000000000..cee379b15409 --- /dev/null +++ b/dev-libs/cxxopts/metadata.xml @@ -0,0 +1,8 @@ + + + + + chutzpah@gentoo.org + Patrick McLean + + -- cgit v1.2.3-65-gdbad