summaryrefslogtreecommitdiff
path: root/dev-cpp
diff options
context:
space:
mode:
authorLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2026-01-13 22:50:51 +0000
committerLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2026-01-13 22:50:51 +0000
commit0e945ea10fabe00333ef96dbe0eac88d15aba67e (patch)
tree70b5322b1b412f04b1a0bfe6d8e1fd6200413400 /dev-cpp
parent497f4ad7ac71f6bb5befbee2ed30dcfaabfa6b19 (diff)
downloadbaldeagleos-repo-0e945ea10fabe00333ef96dbe0eac88d15aba67e.tar.gz
baldeagleos-repo-0e945ea10fabe00333ef96dbe0eac88d15aba67e.tar.xz
baldeagleos-repo-0e945ea10fabe00333ef96dbe0eac88d15aba67e.zip
Adding metadata
Diffstat (limited to 'dev-cpp')
-rw-r--r--dev-cpp/jwt-cpp/Manifest1
-rw-r--r--dev-cpp/jwt-cpp/files/jwt-cpp-0.7.1-cmake-minversion.patch42
-rw-r--r--dev-cpp/jwt-cpp/jwt-cpp-0.7.1.ebuild83
-rw-r--r--dev-cpp/scitokens-cpp/Manifest1
-rw-r--r--dev-cpp/scitokens-cpp/scitokens-cpp-1.2.0.ebuild57
5 files changed, 184 insertions, 0 deletions
diff --git a/dev-cpp/jwt-cpp/Manifest b/dev-cpp/jwt-cpp/Manifest
index 056eade7e21c..552238a059bb 100644
--- a/dev-cpp/jwt-cpp/Manifest
+++ b/dev-cpp/jwt-cpp/Manifest
@@ -1 +1,2 @@
DIST jwt-cpp-0.6.0.tar.gz 275126 BLAKE2B 4bf9bed9b2aa9584b497b2ab4d1d2582d9b5e4ded402200ea3f70b0e6752338fd4e2ef9c5836c728a6907a0190209c7baeaecd26032ce64dc6bf12a23594f27b SHA512 b6d5ebb3a7eeb6fef9a1d41c707251d1ab05bf47920c280d5203f1b9ee5bf6f8e914cd2ffaed66550cfa6d78c34465d4cf86517a759d5f8739b429faf1c2c0ef
+DIST jwt-cpp-0.7.1.tar.gz 159954 BLAKE2B af90d42349404fbb0955e4cd677361a34afd1dbf8776b8ac66df68163c99a7e32344964a92e7942bf02a26553ceac341287abb70abda932ef260824c58843e9c SHA512 1d52816e4d04a50c57e3655e1ebd0fa4e54d03aef49950b800c9c43715cdaceec7a572a02ffff5d358d5f8cde242112da06804fc7a53bc154b3860cf133716a0
diff --git a/dev-cpp/jwt-cpp/files/jwt-cpp-0.7.1-cmake-minversion.patch b/dev-cpp/jwt-cpp/files/jwt-cpp-0.7.1-cmake-minversion.patch
new file mode 100644
index 000000000000..32f88080dd29
--- /dev/null
+++ b/dev-cpp/jwt-cpp/files/jwt-cpp-0.7.1-cmake-minversion.patch
@@ -0,0 +1,42 @@
+From 3972ac2d1773087fa9cebafebbb94e8e781481ea Mon Sep 17 00:00:00 2001
+From: Oliver Freyermuth <o.freyermuth@googlemail.com>
+Date: Sat, 25 Oct 2025 02:43:17 +0200
+Subject: [PATCH] CMake: synchronize cmake_minimum_required from main
+ CMakeLists.txt (#398)
+
+The examples have been using older cmake_minimum_required,
+given support for versions <3.10 is deprecated since 3.31,
+synchronize the minimum required version from the main CMakeLists.txt
+(version 3.14) into examples and tests.
+
+closes #397
+---
+ example/CMakeLists.txt | 2 +-
+ example/traits/CMakeLists.txt | 2 +-
+ tests/cmake/CMakeLists.txt | 2 +-
+ 3 files changed, 3 insertions(+), 3 deletions(-)
+
+--- a/example/CMakeLists.txt
++++ b/example/CMakeLists.txt
+@@ -1,4 +1,4 @@
+-cmake_minimum_required(VERSION 3.8)
++cmake_minimum_required(VERSION 3.14)
+ project(jwt-cpp-examples)
+
+ if(NOT TARGET jwt-cpp)
+--- a/example/traits/CMakeLists.txt
++++ b/example/traits/CMakeLists.txt
+@@ -1,4 +1,4 @@
+-cmake_minimum_required(VERSION 3.8)
++cmake_minimum_required(VERSION 3.14)
+ project(jwt-cpp-traits)
+
+ if(NOT TARGET jwt-cpp)
+--- a/tests/cmake/CMakeLists.txt
++++ b/tests/cmake/CMakeLists.txt
+@@ -1,4 +1,4 @@
+-cmake_minimum_required(VERSION 3.8)
++cmake_minimum_required(VERSION 3.14)
+ project(jwt-cpp-installation-tests)
+
+ set(TEST CACHE STRING "The test source file to be used")
diff --git a/dev-cpp/jwt-cpp/jwt-cpp-0.7.1.ebuild b/dev-cpp/jwt-cpp/jwt-cpp-0.7.1.ebuild
new file mode 100644
index 000000000000..4c717e017c89
--- /dev/null
+++ b/dev-cpp/jwt-cpp/jwt-cpp-0.7.1.ebuild
@@ -0,0 +1,83 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake
+
+if [[ ${PV} == *9999* ]]; then
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/Thalhammer/jwt-cpp.git"
+else
+ SRC_URI="https://github.com/Thalhammer/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
+ KEYWORDS="amd64 x86"
+fi
+
+DESCRIPTION="header only library for creating and validating JSON Web Tokens in C++11"
+HOMEPAGE="https://thalhammer.github.io/jwt-cpp/"
+
+LICENSE="MIT"
+SLOT="0"
+IUSE="doc +picojson test"
+
+DEPEND="
+ dev-cpp/nlohmann_json
+ dev-libs/openssl
+ picojson? ( dev-cpp/picojson )
+"
+RDEPEND="${DEPEND}"
+BDEPEND="
+ doc? ( app-text/doxygen[dot] )
+ test? ( dev-cpp/gtest )
+"
+RESTRICT="
+ !picojson? ( test )
+ !test? ( test )
+"
+PATCHES=(
+ "${FILESDIR}"/${PN}-0.7.1-cmake-minversion.patch
+)
+DOCS=( README.md docs/{faqs,ssl,traits}.md )
+
+src_prepare() {
+ # Unbundle dev-cpp/nlohmann_json.
+ rm -vrf include/nhlomann || die
+ # Unbundle dev-cpp/picojson and fix include paths.
+ # See also: https://github.com/Thalhammer/jwt-cpp/issues/213
+ rm -vrf include/picojson || die
+ find -name '*.h' -type f -print0 | xargs -0 sed -r -e "s:picojson/picojson\.h:picojson.h:g" -i || die
+ # Prevent installation of bundled dev-cpp/picojson.
+ sed -i -e 's:^\s*install.*picojson/picojson\.h.*$::' CMakeLists.txt || die
+ cmake_src_prepare
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DJWT_EXTERNAL_NLOHMANN_JSON=YES
+ -DJWT_DISABLE_PICOJSON="$(usex !picojson)"
+ # Not useful for now, asks for non-existent CMake module.
+ #-DJWT_EXTERNAL_PICOJSON="$(usex picojson)"
+ # Examples are not installed and for development only.
+ -DJWT_BUILD_EXAMPLES=NO
+ -DJWT_BUILD_TESTS="$(usex test)"
+ -DJWT_CMAKE_FILES_INSTALL_DIR="${EPREFIX}"/usr/share/cmake
+ )
+ cmake_src_configure
+}
+
+src_compile() {
+ cmake_src_compile
+ if use doc; then
+ doxygen || die
+ fi
+}
+
+src_test() {
+ "${BUILD_DIR}"/tests/jwt-cpp-test || die
+}
+
+src_install() {
+ cmake_src_install
+ use doc && local HTML_DOCS=(doxy/html/.)
+ einstalldocs
+}
diff --git a/dev-cpp/scitokens-cpp/Manifest b/dev-cpp/scitokens-cpp/Manifest
index 2200384d3d7a..eea4db2ddc08 100644
--- a/dev-cpp/scitokens-cpp/Manifest
+++ b/dev-cpp/scitokens-cpp/Manifest
@@ -2,3 +2,4 @@ DIST scitokens-cpp-1.1.0.tar.gz 311446 BLAKE2B a515d834df04125ae9167cb4656def7df
DIST scitokens-cpp-1.1.1.tar.gz 311677 BLAKE2B ea880a50b5e3e6f17c4bb11b7021df5e22cb4bb496fc17395a9886ebd359bc7f2522a0b1dd89e8aaa477a1302613f5da6d0a40f903e056736abc35ca1230518e SHA512 f5b42078fce6c1e812eedb456cf1275eaddfae5715193fd566f1f7a598b5632f81f3893efb220c57ff89d233c375c68785c8a6a1c3d3db6d3757979d87916265
DIST scitokens-cpp-1.1.2.tar.gz 312169 BLAKE2B de6053f9319074b442e074b643042095e0bb5c796d1874ec1f7ace35b8f45825314fc2b086820d86b4f7d384974ce1b62ae4180bfc14744b722cf5c240d7521c SHA512 d7898b5717b6df6cda7c30c33dd993e81f30befa62522a920db96ca39611658b16347338c67e3acbe7a9c88d5e273d935ec1109420e7b66c700136315e513938
DIST scitokens-cpp-1.1.3.tar.gz 312260 BLAKE2B b77faab945b6e3ec86bf9e6d8d49a8e29a104ff651cd99802cb845322d5bf364431dc9005cecdcb001a2cf0a599242883804d3b3bf8f3f8ea6152d0f224585c8 SHA512 2c3822f6bf8cd2b8d6d8f30c5499cf0fca3dd212f83af9de7116c84b06ffc9a2f26ec37a3e42f90f947a8a82dfb0d279529f46a175524e9b582f2afd8a02b5a7
+DIST scitokens-cpp-1.2.0.tar.gz 118523 BLAKE2B 42f93059886c80080f6a73e14d48cbe3c03b1f4bebc50c262f036801539a6ae322599ce888543917026d102d944c370111aeeb2477ee10075318541a5dcc6abb SHA512 5043d368fd55d4644f21822537e5be11ece5eba37b3fe6f75aba9fcfcc0af49a99ddfcb87d83f8a85c3ef484807fa847469749ee02dc7d08dba9ba5245c52f73
diff --git a/dev-cpp/scitokens-cpp/scitokens-cpp-1.2.0.ebuild b/dev-cpp/scitokens-cpp/scitokens-cpp-1.2.0.ebuild
new file mode 100644
index 000000000000..76c50582f61c
--- /dev/null
+++ b/dev-cpp/scitokens-cpp/scitokens-cpp-1.2.0.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake
+
+if [[ ${PV} == *9999* ]]; then
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/scitokens/scitokens-cpp"
+else
+ SRC_URI="https://github.com/scitokens/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
+ KEYWORDS="amd64 x86"
+fi
+
+DESCRIPTION="C++ implementation of the SciTokens library with a C library interface"
+HOMEPAGE="https://scitokens.org/"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+IUSE="test"
+
+DEPEND="
+ >=dev-cpp/jwt-cpp-0.7.0[picojson]
+ dev-db/sqlite
+ dev-libs/openssl:0=
+ net-misc/curl:0=
+ kernel_linux? ( sys-apps/util-linux )
+"
+RDEPEND="${DEPEND}"
+BDEPEND="
+ virtual/pkgconfig
+ test? ( dev-cpp/gtest )
+"
+RESTRICT="!test? ( test )"
+
+src_prepare() {
+ # Unbundle dev-cpp/gtest, dev-cpp/jwt-cpp
+ rm -r vendor || die
+ # Fix include path for picojson.
+ find src/ \( -name '*.cpp' -o -name '*.h' \) -type f -print0 | \
+ xargs -0 sed -r -e "s:picojson/picojson\.h:picojson.h:g" -i || die
+ # Disable network-based tests relying on external services.
+ if use test; then
+ sed -i -e '/^TEST_F/s#RefreshTest#DISABLED_RefreshTest#' \
+ -e '/^TEST_F/s#RefreshExpiredTest#DISABLED_RefreshExpiredTest#' test/main.cpp || die
+ fi
+ cmake_src_prepare
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DSCITOKENS_BUILD_UNITTESTS="$(usex test)"
+ -DSCITOKENS_EXTERNAL_GTEST=YES
+ )
+ cmake_src_configure
+}