diff options
| author | root <root@alpha.trunkmasters.com> | 2026-06-12 19:09:37 -0500 |
|---|---|---|
| committer | root <root@alpha.trunkmasters.com> | 2026-06-12 19:09:37 -0500 |
| commit | b590c8d7572b727d565cc0b8ff660d43569845de (patch) | |
| tree | 06f7a4102ea4e845df8b66660f252920d52952f9 /dev-cpp/jwt-cpp | |
| parent | 24f9cbfc4c34fdb6a6e03311674414e881ceab47 (diff) | |
| download | baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.tar.gz baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.tar.xz baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.zip | |
Diffstat (limited to 'dev-cpp/jwt-cpp')
| -rw-r--r-- | dev-cpp/jwt-cpp/Manifest | 5 | ||||
| -rw-r--r-- | dev-cpp/jwt-cpp/files/jwt-cpp-0.6.0-gcc13.patch | 14 | ||||
| -rw-r--r-- | dev-cpp/jwt-cpp/files/jwt-cpp-0.7.1-cmake-minversion.patch | 42 | ||||
| -rw-r--r-- | dev-cpp/jwt-cpp/jwt-cpp-0.6.0.ebuild | 82 | ||||
| -rw-r--r-- | dev-cpp/jwt-cpp/jwt-cpp-0.7.1.ebuild | 83 | ||||
| -rw-r--r-- | dev-cpp/jwt-cpp/jwt-cpp-0.7.2-r1.ebuild | 96 | ||||
| -rw-r--r-- | dev-cpp/jwt-cpp/jwt-cpp-0.7.2.ebuild | 85 | ||||
| -rw-r--r-- | dev-cpp/jwt-cpp/metadata.xml | 26 |
8 files changed, 433 insertions, 0 deletions
diff --git a/dev-cpp/jwt-cpp/Manifest b/dev-cpp/jwt-cpp/Manifest new file mode 100644 index 000000000000..115144c710df --- /dev/null +++ b/dev-cpp/jwt-cpp/Manifest @@ -0,0 +1,5 @@ +DIST doxygen-awesome-sidebar-only.css 3287 BLAKE2B a52d167d86bc632240e764f0a2488ce14dec995f726702ca54dd7d8e2529ce6078220c1b9a989090bfbac5d21c4dba973de3ff6f314d3ba9ae6eea4c8539cf4e SHA512 9040dc8560c2566303d5ff914b4c94f468b9144dd367c25fe33e4ba4bbc9356cdedf1a9323eff1fa8f91b1d42dae8084e640ea997104744f274e22b7bf6610de +DIST doxygen-awesome.css 63071 BLAKE2B ca61dfa1809d48e8677285f78135801253b4195f05432f9149327e4941b8ccb570b3cee7f5eaf3e7f8e5664cb7a491441c84729cd3bf3a4822107a09f5a9c39b SHA512 30ee5bb14eb8cdde742ce9ced8ffc4ac603991f8477c67b1c3a6865d0630322f98f54df4e19d2c7c0d74a24b719bdd40852cf9ed8b0355c1dfa40aac5fa16bc1 +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 +DIST jwt-cpp-0.7.2.tar.gz 160627 BLAKE2B 707124ef8c74dbceaf606ef521dead90618fc8f0d1016a47a396ebaa057844926721675278157c4b75f2e85c73d7c66f98fcd0c2da0bb7eb5227ce6e83b7d4d4 SHA512 9a2725228565d671e065a4647dad38f36251a4ee07c796cac35252557134a20c2dc260f62c011438c7fbde57f5c511bb0096569512c0aebdae048c7a626805b7 diff --git a/dev-cpp/jwt-cpp/files/jwt-cpp-0.6.0-gcc13.patch b/dev-cpp/jwt-cpp/files/jwt-cpp-0.6.0-gcc13.patch new file mode 100644 index 000000000000..3fef24536a86 --- /dev/null +++ b/dev-cpp/jwt-cpp/files/jwt-cpp-0.6.0-gcc13.patch @@ -0,0 +1,14 @@ +From: Hannu Lounento <hannu.lounento@vaisala.com> +Bug: https://github.com/Thalhammer/jwt-cpp/pull/287 + +Fix build with GCC 13. + +--- a/include/jwt-cpp/base.h ++++ b/include/jwt-cpp/base.h +@@ -3,6 +3,7 @@ + + #include <array> ++#include <cstdint> + #include <stdexcept> + #include <string> + 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.6.0.ebuild b/dev-cpp/jwt-cpp/jwt-cpp-0.6.0.ebuild new file mode 100644 index 000000000000..a3b24a464bd2 --- /dev/null +++ b/dev-cpp/jwt-cpp/jwt-cpp-0.6.0.ebuild @@ -0,0 +1,82 @@ +# Copyright 1999-2024 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.6.0-gcc13.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_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/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/jwt-cpp/jwt-cpp-0.7.2-r1.ebuild b/dev-cpp/jwt-cpp/jwt-cpp-0.7.2-r1.ebuild new file mode 100644 index 000000000000..a37db77e508c --- /dev/null +++ b/dev-cpp/jwt-cpp/jwt-cpp-0.7.2-r1.ebuild @@ -0,0 +1,96 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake + +DESCRIPTION="header only library for creating and validating JSON Web Tokens in C++11" +HOMEPAGE="https://thalhammer.github.io/jwt-cpp/" + +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 +SRC_URI=" + ${SRC_URI} + https://raw.githubusercontent.com/jothepro/doxygen-awesome-css/v2.2.1/doxygen-awesome.css + https://raw.githubusercontent.com/jothepro/doxygen-awesome-css/v2.2.1/doxygen-awesome-sidebar-only.css +" + +LICENSE="MIT" +SLOT="0" +IUSE="doc +jsoncons +picojson test" + +# reflectcpp-json would also be supported, but dev-cpp/reflect-cpp not packaged yet +# dev-cpp/glaze not in ~x86 +DEPEND=" + dev-cpp/nlohmann_json + dev-libs/boost + dev-libs/jsoncpp + dev-libs/openssl + jsoncons? ( dev-cpp/jsoncons ) + picojson? ( dev-cpp/picojson ) +" +RDEPEND="${DEPEND}" +BDEPEND=" + doc? ( app-text/doxygen[dot] ) + test? ( dev-cpp/gtest ) +" +REQUIRED_USE="test? ( jsoncons picojson )" +RESTRICT=" + !jsoncons? ( test ) + !picojson? ( test ) + !test? ( test ) +" +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 + cp "${DISTDIR}"/doxygen-awesome{,-sidebar-only}.css docs/ || die + # Restore compat with dev-cpp/jsoncons >=1.5.0 + # see https://github.com/Thalhammer/jwt-cpp/issues/427 + use jsoncons && (sed -i 's#.*JSONCONS_NO_DEPRECATED##' \ + include/jwt-cpp/traits/danielaparker-jsoncons/traits.h || die) + cmake_src_prepare +} + +src_configure() { + local mycmakeargs=( + -DJWT_EXTERNAL_NLOHMANN_JSON=YES + -DJWT_DISABLE_PICOJSON="$(usex !picojson)" + -DJWT_BUILD_DOCS="$(usex doc)" + # 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 + use doc && cmake_src_compile jwt-docs +} + +src_test() { + "${BUILD_DIR}"/tests/jwt-cpp-test || die +} + +src_install() { + cmake_src_install + use doc && local HTML_DOCS=(./build/html/.) + einstalldocs +} diff --git a/dev-cpp/jwt-cpp/jwt-cpp-0.7.2.ebuild b/dev-cpp/jwt-cpp/jwt-cpp-0.7.2.ebuild new file mode 100644 index 000000000000..e7370b69cbc7 --- /dev/null +++ b/dev-cpp/jwt-cpp/jwt-cpp-0.7.2.ebuild @@ -0,0 +1,85 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake + +DESCRIPTION="header only library for creating and validating JSON Web Tokens in C++11" +HOMEPAGE="https://thalhammer.github.io/jwt-cpp/" + +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 +SRC_URI=" + ${SRC_URI} + https://raw.githubusercontent.com/jothepro/doxygen-awesome-css/v2.2.1/doxygen-awesome.css + https://raw.githubusercontent.com/jothepro/doxygen-awesome-css/v2.2.1/doxygen-awesome-sidebar-only.css +" + +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 ) +" +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 + cp "${DISTDIR}"/doxygen-awesome{,-sidebar-only}.css docs/ || die + cmake_src_prepare +} + +src_configure() { + local mycmakeargs=( + -DJWT_EXTERNAL_NLOHMANN_JSON=YES + -DJWT_DISABLE_PICOJSON="$(usex !picojson)" + -DJWT_BUILD_DOCS="$(usex doc)" + # 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 + use doc && cmake_src_compile jwt-docs +} + +src_test() { + "${BUILD_DIR}"/tests/jwt-cpp-test || die +} + +src_install() { + cmake_src_install + use doc && local HTML_DOCS=(./build/html/.) + einstalldocs +} diff --git a/dev-cpp/jwt-cpp/metadata.xml b/dev-cpp/jwt-cpp/metadata.xml new file mode 100644 index 000000000000..9cdb918bfb20 --- /dev/null +++ b/dev-cpp/jwt-cpp/metadata.xml @@ -0,0 +1,26 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person" proxied="yes"> + <email>o.freyermuth@googlemail.com</email> + <name>Oliver Freyermuth</name> + </maintainer> + <maintainer type="person"> + <email>amadio@gentoo.org</email> + <name>Guilherme Amadio</name> + </maintainer> + <maintainer type="project" proxied="proxy"> + <email>proxy-maint@gentoo.org</email> + <name>Proxy Maintainers</name> + </maintainer> + <upstream> + <bugs-to>https://github.com/Thalhammer/jwt-cpp/issues</bugs-to> + </upstream> + <use> + <flag name="jsoncons">Enable use of <pkg>dev-cpp/jsoncons</pkg> + </flag> + <flag name="picojson">Enable use of <pkg>dev-cpp/picojson</pkg> + </flag> + </use> + <origin>baldeagleos-repo</origin> +</pkgmetadata> |
