summaryrefslogtreecommitdiff
path: root/dev-cpp/scitokens-cpp/scitokens-cpp-1.0.1.ebuild
diff options
context:
space:
mode:
authorGuilherme Amadio <amadio@gentoo.org>2023-06-08 13:31:13 +0200
committerGuilherme Amadio <amadio@gentoo.org>2023-06-08 13:58:48 +0200
commitc7b5fe8078297dd0a5b68fc79f06b5ef535f8d7c (patch)
treeb103780a45322f95a6eb019c04f4d0ac196b6156 /dev-cpp/scitokens-cpp/scitokens-cpp-1.0.1.ebuild
parent5ef44690f8b033efb7a693437f7ee24958b09540 (diff)
downloadgentoo-c7b5fe8078297dd0a5b68fc79f06b5ef535f8d7c.tar.gz
gentoo-c7b5fe8078297dd0a5b68fc79f06b5ef535f8d7c.tar.bz2
gentoo-c7b5fe8078297dd0a5b68fc79f06b5ef535f8d7c.zip
dev-cpp/scitokens-cpp: new package, add 1.0.1
Signed-off-by: Guilherme Amadio <amadio@gentoo.org>
Diffstat (limited to 'dev-cpp/scitokens-cpp/scitokens-cpp-1.0.1.ebuild')
-rw-r--r--dev-cpp/scitokens-cpp/scitokens-cpp-1.0.1.ebuild34
1 files changed, 34 insertions, 0 deletions
diff --git a/dev-cpp/scitokens-cpp/scitokens-cpp-1.0.1.ebuild b/dev-cpp/scitokens-cpp/scitokens-cpp-1.0.1.ebuild
new file mode 100644
index 000000000000..e6a43dfceee1
--- /dev/null
+++ b/dev-cpp/scitokens-cpp/scitokens-cpp-1.0.1.ebuild
@@ -0,0 +1,34 @@
+# Copyright 2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake
+
+DESCRIPTION="A C++ implementation of the SciTokens library with a C library interface"
+HOMEPAGE="https://github.com/scitokens/scitokens-cpp"
+SRC_URI="https://github.com/scitokens/scitokens-cpp/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="test"
+
+RESTRICT="test" # testing requires network
+
+DEPEND="
+ dev-db/sqlite
+ dev-libs/openssl:0=
+ net-misc/curl:0=
+ kernel_linux? ( sys-apps/util-linux )
+"
+RDEPEND="${DEPEND}"
+BDEPEND="test? ( dev-cpp/gtest )"
+
+src_configure() {
+ local mycmakeargs=(
+ -DSCITOKENS_BUILD_UNITTESTS=$(usex test)
+ -DSCITOKENS_EXTERNAL_GTEST=1
+ )
+ cmake_src_configure
+}