* [gentoo-commits] repo/proj/guru:dev commit in: dev-cpp/jwt-cpp/
@ 2022-02-26 17:41 Oliver Freyermuth
0 siblings, 0 replies; 8+ messages in thread
From: Oliver Freyermuth @ 2022-02-26 17:41 UTC (permalink / raw
To: gentoo-commits
commit: 47471944d857275e82983460b6cd720257510df7
Author: Oliver Freyermuth <o.freyermuth <AT> googlemail <DOT> com>
AuthorDate: Sat Feb 26 17:41:37 2022 +0000
Commit: Oliver Freyermuth <o.freyermuth <AT> googlemail <DOT> com>
CommitDate: Sat Feb 26 17:41:37 2022 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=47471944
dev-cpp/jwt-cpp: New package (0.6.0).
Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Oliver Freyermuth <o.freyermuth <AT> googlemail.com>
dev-cpp/jwt-cpp/Manifest | 1 +
dev-cpp/jwt-cpp/jwt-cpp-0.6.0.ebuild | 57 ++++++++++++++++++++++++++++++++++++
dev-cpp/jwt-cpp/metadata.xml | 15 ++++++++++
3 files changed, 73 insertions(+)
diff --git a/dev-cpp/jwt-cpp/Manifest b/dev-cpp/jwt-cpp/Manifest
new file mode 100644
index 000000000..056eade7e
--- /dev/null
+++ b/dev-cpp/jwt-cpp/Manifest
@@ -0,0 +1 @@
+DIST jwt-cpp-0.6.0.tar.gz 275126 BLAKE2B 4bf9bed9b2aa9584b497b2ab4d1d2582d9b5e4ded402200ea3f70b0e6752338fd4e2ef9c5836c728a6907a0190209c7baeaecd26032ce64dc6bf12a23594f27b SHA512 b6d5ebb3a7eeb6fef9a1d41c707251d1ab05bf47920c280d5203f1b9ee5bf6f8e914cd2ffaed66550cfa6d78c34465d4cf86517a759d5f8739b429faf1c2c0ef
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 000000000..5d54b8c45
--- /dev/null
+++ b/dev-cpp/jwt-cpp/jwt-cpp-0.6.0.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2022 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"
+ KEYWORDS=""
+else
+ SRC_URI="https://github.com/Thalhammer/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
+ KEYWORDS="~amd64"
+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="${RDEPEND}
+ dev-cpp/nlohmann_json
+ picojson? ( dev-cpp/picojson )
+ doc? ( app-doc/doxygen[dot] )"
+RESTRICT="!picojson? ( test )"
+
+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 OFF ON)"
+ # Not useful for now, asks for non-existend 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_test() {
+ "${BUILD_DIR}"/tests/jwt-cpp-test || die
+}
diff --git a/dev-cpp/jwt-cpp/metadata.xml b/dev-cpp/jwt-cpp/metadata.xml
new file mode 100644
index 000000000..71a6e5e73
--- /dev/null
+++ b/dev-cpp/jwt-cpp/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>o.freyermuth@googlemail.com</email>
+ <name>Oliver Freyermuth</name>
+ </maintainer>
+ <upstream>
+ <bugs-to>https://github.com/Thalhammer/jwt-cpp/issues</bugs-to>
+ <remote-id type="github">Thalhammer/jwt-cpp</remote-id>
+ </upstream>
+ <use>
+ <flag name="picojson">Enable use of <pkg>dev-cpp/picojson</pkg></flag>
+ </use>
+</pkgmetadata>
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: dev-cpp/jwt-cpp/
@ 2022-02-26 17:52 Oliver Freyermuth
0 siblings, 0 replies; 8+ messages in thread
From: Oliver Freyermuth @ 2022-02-26 17:52 UTC (permalink / raw
To: gentoo-commits
commit: 70e2318b649f84ccba628f6ba36b8804941f52a3
Author: Oliver Freyermuth <o.freyermuth <AT> googlemail <DOT> com>
AuthorDate: Sat Feb 26 17:52:20 2022 +0000
Commit: Oliver Freyermuth <o.freyermuth <AT> googlemail <DOT> com>
CommitDate: Sat Feb 26 17:52:27 2022 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=70e2318b
dev-cpp/jwt-cpp: Add forgotten openssl dependency.
Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Oliver Freyermuth <o.freyermuth <AT> googlemail.com>
dev-cpp/jwt-cpp/jwt-cpp-0.6.0.ebuild | 1 +
1 file changed, 1 insertion(+)
diff --git a/dev-cpp/jwt-cpp/jwt-cpp-0.6.0.ebuild b/dev-cpp/jwt-cpp/jwt-cpp-0.6.0.ebuild
index 5d54b8c45..5dfa4fd92 100644
--- a/dev-cpp/jwt-cpp/jwt-cpp-0.6.0.ebuild
+++ b/dev-cpp/jwt-cpp/jwt-cpp-0.6.0.ebuild
@@ -23,6 +23,7 @@ IUSE="doc +picojson test"
DEPEND="${RDEPEND}
dev-cpp/nlohmann_json
+ dev-libs/openssl
picojson? ( dev-cpp/picojson )
doc? ( app-doc/doxygen[dot] )"
RESTRICT="!picojson? ( test )"
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: dev-cpp/jwt-cpp/
@ 2022-02-26 18:06 Oliver Freyermuth
0 siblings, 0 replies; 8+ messages in thread
From: Oliver Freyermuth @ 2022-02-26 18:06 UTC (permalink / raw
To: gentoo-commits
commit: 77fbcd6c6801d575129bf869681102776c72e280
Author: Oliver Freyermuth <o.freyermuth <AT> googlemail <DOT> com>
AuthorDate: Sat Feb 26 18:06:28 2022 +0000
Commit: Oliver Freyermuth <o.freyermuth <AT> googlemail <DOT> com>
CommitDate: Sat Feb 26 18:06:28 2022 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=77fbcd6c
dev-cpp/jwt-cpp: Fix docs generation and installation.
Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Oliver Freyermuth <o.freyermuth <AT> googlemail.com>
dev-cpp/jwt-cpp/jwt-cpp-0.6.0.ebuild | 18 ++++++++++++++++--
1 file changed, 16 insertions(+), 2 deletions(-)
diff --git a/dev-cpp/jwt-cpp/jwt-cpp-0.6.0.ebuild b/dev-cpp/jwt-cpp/jwt-cpp-0.6.0.ebuild
index 5dfa4fd92..f877455f8 100644
--- a/dev-cpp/jwt-cpp/jwt-cpp-0.6.0.ebuild
+++ b/dev-cpp/jwt-cpp/jwt-cpp-0.6.0.ebuild
@@ -24,9 +24,10 @@ IUSE="doc +picojson test"
DEPEND="${RDEPEND}
dev-cpp/nlohmann_json
dev-libs/openssl
- picojson? ( dev-cpp/picojson )
- doc? ( app-doc/doxygen[dot] )"
+ picojson? ( dev-cpp/picojson )"
+BDEPEND="doc? ( app-doc/doxygen[dot] )"
RESTRICT="!picojson? ( test )"
+DOCS=( README.md docs/{faqs,ssl,traits}.md )
src_prepare() {
# Unbundle dev-cpp/nlohmann_json.
@@ -53,6 +54,19 @@ src_configure() {
cmake_src_configure
}
+src_compile() {
+ cmake_src_compile
+ if use doc; then
+ doxygen || die
+ fi
+}
+
+src_install() {
+ cmake_src_install
+ use doc && local HTML_DOCS=(doxy/html/.)
+ einstalldocs
+}
+
src_test() {
"${BUILD_DIR}"/tests/jwt-cpp-test || die
}
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: dev-cpp/jwt-cpp/
@ 2022-02-26 18:37 Oliver Freyermuth
0 siblings, 0 replies; 8+ messages in thread
From: Oliver Freyermuth @ 2022-02-26 18:37 UTC (permalink / raw
To: gentoo-commits
commit: 38a6090ee31dc7234bbd9ce5b173861bafc5bb2a
Author: Oliver Freyermuth <o.freyermuth <AT> googlemail <DOT> com>
AuthorDate: Sat Feb 26 18:37:32 2022 +0000
Commit: Oliver Freyermuth <o.freyermuth <AT> googlemail <DOT> com>
CommitDate: Sat Feb 26 18:37:32 2022 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=38a6090e
dev-cpp/jwt-cpp: Add version 0.4.0.
This older version is required by some dependencies.
Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Oliver Freyermuth <o.freyermuth <AT> googlemail.com>
dev-cpp/jwt-cpp/Manifest | 1 +
.../{jwt-cpp-0.6.0.ebuild => jwt-cpp-0.4.0.ebuild} | 18 +++++++-----------
dev-cpp/jwt-cpp/jwt-cpp-0.6.0.ebuild | 2 +-
3 files changed, 9 insertions(+), 12 deletions(-)
diff --git a/dev-cpp/jwt-cpp/Manifest b/dev-cpp/jwt-cpp/Manifest
index 056eade7e..7ed5fadf1 100644
--- a/dev-cpp/jwt-cpp/Manifest
+++ b/dev-cpp/jwt-cpp/Manifest
@@ -1 +1,2 @@
+DIST jwt-cpp-0.4.0.tar.gz 64383 BLAKE2B 48de501a1fff851ada5ffc0554309f6f05943d6b6a459c8f002f8bcebb9be40d878fc7f39c2f4da7031b784421dd0530d8e50d5eadbdb924c5485fdcd2f04b85 SHA512 8a82accb396db8fb2f1a32b14459f6ff3f5d4c6dcb54dfe1a10751da093381c2dcfb92c6e1f4f2ae42ca0f25c96c02ea35f37b723afaaf6b2d458c1a6f4e6b62
DIST jwt-cpp-0.6.0.tar.gz 275126 BLAKE2B 4bf9bed9b2aa9584b497b2ab4d1d2582d9b5e4ded402200ea3f70b0e6752338fd4e2ef9c5836c728a6907a0190209c7baeaecd26032ce64dc6bf12a23594f27b SHA512 b6d5ebb3a7eeb6fef9a1d41c707251d1ab05bf47920c280d5203f1b9ee5bf6f8e914cd2ffaed66550cfa6d78c34465d4cf86517a759d5f8739b429faf1c2c0ef
diff --git a/dev-cpp/jwt-cpp/jwt-cpp-0.6.0.ebuild b/dev-cpp/jwt-cpp/jwt-cpp-0.4.0.ebuild
similarity index 73%
copy from dev-cpp/jwt-cpp/jwt-cpp-0.6.0.ebuild
copy to dev-cpp/jwt-cpp/jwt-cpp-0.4.0.ebuild
index f877455f8..9b41ae22f 100644
--- a/dev-cpp/jwt-cpp/jwt-cpp-0.6.0.ebuild
+++ b/dev-cpp/jwt-cpp/jwt-cpp-0.4.0.ebuild
@@ -22,34 +22,30 @@ SLOT="0"
IUSE="doc +picojson test"
DEPEND="${RDEPEND}
- dev-cpp/nlohmann_json
dev-libs/openssl
picojson? ( dev-cpp/picojson )"
BDEPEND="doc? ( app-doc/doxygen[dot] )"
RESTRICT="!picojson? ( 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
+ sed -i -e 's:^\s*install.*include/picojson.*$::' CMakeLists.txt || die
+ # Fix installation paths for .cmake files.
+ sed -i -e 's:DESTINATION ${CMAKE_INSTALL_PREFIX}/jwt-cpp:DESTINATION ${CMAKE_INSTALL_PREFIX}/share/jwt-cpp:' CMakeLists.txt || die
+ sed -i -e 's:DESTINATION jwt-cpp:DESTINATION ${CMAKE_INSTALL_PREFIX}/share/jwt-cpp:' CMakeLists.txt || die
cmake_src_prepare
}
src_configure() {
local mycmakeargs=(
- -DJWT_DISABLE_PICOJSON="$(usex picojson OFF ON)"
- # Not useful for now, asks for non-existend CMake module.
+ # 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
+ -DBUILD_TESTS="$(usex test)"
)
cmake_src_configure
}
@@ -63,7 +59,7 @@ src_compile() {
src_install() {
cmake_src_install
- use doc && local HTML_DOCS=(doxy/html/.)
+ use doc && local HTML_DOCS=(docs/html/.)
einstalldocs
}
diff --git a/dev-cpp/jwt-cpp/jwt-cpp-0.6.0.ebuild b/dev-cpp/jwt-cpp/jwt-cpp-0.6.0.ebuild
index f877455f8..fe1a3e1ff 100644
--- a/dev-cpp/jwt-cpp/jwt-cpp-0.6.0.ebuild
+++ b/dev-cpp/jwt-cpp/jwt-cpp-0.6.0.ebuild
@@ -44,7 +44,7 @@ src_prepare() {
src_configure() {
local mycmakeargs=(
-DJWT_DISABLE_PICOJSON="$(usex picojson OFF ON)"
- # Not useful for now, asks for non-existend CMake module.
+ # 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
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: dev-cpp/jwt-cpp/
@ 2022-02-27 14:28 Oliver Freyermuth
0 siblings, 0 replies; 8+ messages in thread
From: Oliver Freyermuth @ 2022-02-27 14:28 UTC (permalink / raw
To: gentoo-commits
commit: a0d01036fb95bc90ba95c147bdba108187d93e13
Author: Oliver Freyermuth <o.freyermuth <AT> googlemail <DOT> com>
AuthorDate: Sun Feb 27 14:27:58 2022 +0000
Commit: Oliver Freyermuth <o.freyermuth <AT> googlemail <DOT> com>
CommitDate: Sun Feb 27 14:27:58 2022 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=a0d01036
dev-cpp/jwt-cpp: Add missing dev-cpp/gtest dep for USE=test.
Closes: https://bugs.gentoo.org/834148
Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Oliver Freyermuth <o.freyermuth <AT> googlemail.com>
dev-cpp/jwt-cpp/jwt-cpp-0.4.0.ebuild | 3 ++-
dev-cpp/jwt-cpp/jwt-cpp-0.6.0.ebuild | 3 ++-
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/dev-cpp/jwt-cpp/jwt-cpp-0.4.0.ebuild b/dev-cpp/jwt-cpp/jwt-cpp-0.4.0.ebuild
index 9b41ae22f..0d9482b32 100644
--- a/dev-cpp/jwt-cpp/jwt-cpp-0.4.0.ebuild
+++ b/dev-cpp/jwt-cpp/jwt-cpp-0.4.0.ebuild
@@ -23,7 +23,8 @@ IUSE="doc +picojson test"
DEPEND="${RDEPEND}
dev-libs/openssl
- picojson? ( dev-cpp/picojson )"
+ picojson? ( dev-cpp/picojson )
+ test? ( dev-cpp/gtest )"
BDEPEND="doc? ( app-doc/doxygen[dot] )"
RESTRICT="!picojson? ( test )"
diff --git a/dev-cpp/jwt-cpp/jwt-cpp-0.6.0.ebuild b/dev-cpp/jwt-cpp/jwt-cpp-0.6.0.ebuild
index fe1a3e1ff..ebec5e087 100644
--- a/dev-cpp/jwt-cpp/jwt-cpp-0.6.0.ebuild
+++ b/dev-cpp/jwt-cpp/jwt-cpp-0.6.0.ebuild
@@ -24,7 +24,8 @@ IUSE="doc +picojson test"
DEPEND="${RDEPEND}
dev-cpp/nlohmann_json
dev-libs/openssl
- picojson? ( dev-cpp/picojson )"
+ picojson? ( dev-cpp/picojson )
+ test? ( dev-cpp/gtest )"
BDEPEND="doc? ( app-doc/doxygen[dot] )"
RESTRICT="!picojson? ( test )"
DOCS=( README.md docs/{faqs,ssl,traits}.md )
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: dev-cpp/jwt-cpp/
@ 2022-03-05 16:40 Oliver Freyermuth
0 siblings, 0 replies; 8+ messages in thread
From: Oliver Freyermuth @ 2022-03-05 16:40 UTC (permalink / raw
To: gentoo-commits
commit: 19663311039148658d3f34c6042273c29cda7dc3
Author: Oliver Freyermuth <o.freyermuth <AT> googlemail <DOT> com>
AuthorDate: Sat Mar 5 16:39:59 2022 +0000
Commit: Oliver Freyermuth <o.freyermuth <AT> googlemail <DOT> com>
CommitDate: Sat Mar 5 16:39:59 2022 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=19663311
dev-cpp/jwt-cpp: Fix pkgcheck QA issues.
This resolves MissingTestRestrict and
MultipleKeywordsLines issues.
Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Oliver Freyermuth <o.freyermuth <AT> googlemail.com>
dev-cpp/jwt-cpp/jwt-cpp-0.4.0.ebuild | 10 +++++-----
dev-cpp/jwt-cpp/jwt-cpp-0.6.0.ebuild | 10 +++++-----
2 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/dev-cpp/jwt-cpp/jwt-cpp-0.4.0.ebuild b/dev-cpp/jwt-cpp/jwt-cpp-0.4.0.ebuild
index 0d9482b32..7663265ab 100644
--- a/dev-cpp/jwt-cpp/jwt-cpp-0.4.0.ebuild
+++ b/dev-cpp/jwt-cpp/jwt-cpp-0.4.0.ebuild
@@ -5,10 +5,9 @@ EAPI=8
inherit cmake
-if [[ ${PV} == 9999 ]]; then
+if [[ ${PV} == *9999* ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/Thalhammer/jwt-cpp.git"
- KEYWORDS=""
else
SRC_URI="https://github.com/Thalhammer/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64"
@@ -23,10 +22,11 @@ IUSE="doc +picojson test"
DEPEND="${RDEPEND}
dev-libs/openssl
- picojson? ( dev-cpp/picojson )
- test? ( dev-cpp/gtest )"
+ picojson? ( dev-cpp/picojson )"
BDEPEND="doc? ( app-doc/doxygen[dot] )"
-RESTRICT="!picojson? ( test )"
+RESTRICT="
+ !picojson? ( test )
+ !test? ( test )"
src_prepare() {
# Unbundle dev-cpp/picojson and fix include paths.
diff --git a/dev-cpp/jwt-cpp/jwt-cpp-0.6.0.ebuild b/dev-cpp/jwt-cpp/jwt-cpp-0.6.0.ebuild
index ebec5e087..f2abbb709 100644
--- a/dev-cpp/jwt-cpp/jwt-cpp-0.6.0.ebuild
+++ b/dev-cpp/jwt-cpp/jwt-cpp-0.6.0.ebuild
@@ -5,10 +5,9 @@ EAPI=8
inherit cmake
-if [[ ${PV} == 9999 ]]; then
+if [[ ${PV} == *9999* ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/Thalhammer/jwt-cpp.git"
- KEYWORDS=""
else
SRC_URI="https://github.com/Thalhammer/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64"
@@ -24,10 +23,11 @@ IUSE="doc +picojson test"
DEPEND="${RDEPEND}
dev-cpp/nlohmann_json
dev-libs/openssl
- picojson? ( dev-cpp/picojson )
- test? ( dev-cpp/gtest )"
+ picojson? ( dev-cpp/picojson )"
BDEPEND="doc? ( app-doc/doxygen[dot] )"
-RESTRICT="!picojson? ( test )"
+RESTRICT="
+ !picojson? ( test )
+ !test? ( test )"
DOCS=( README.md docs/{faqs,ssl,traits}.md )
src_prepare() {
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: dev-cpp/jwt-cpp/
@ 2022-03-08 8:17 Oliver Freyermuth
0 siblings, 0 replies; 8+ messages in thread
From: Oliver Freyermuth @ 2022-03-08 8:17 UTC (permalink / raw
To: gentoo-commits
commit: ecc1ef0277ad6d5ebd0cf0d8e12c31973713bec4
Author: Oliver Freyermuth <o.freyermuth <AT> googlemail <DOT> com>
AuthorDate: Tue Mar 8 08:17:02 2022 +0000
Commit: Oliver Freyermuth <o.freyermuth <AT> googlemail <DOT> com>
CommitDate: Tue Mar 8 08:17:02 2022 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=ecc1ef02
dev-cpp/jwt-cpp: Add dev-cpp/gtest to BDEPEND for USE=test.
Closes: https://bugs.gentoo.org/834744
Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Oliver Freyermuth <o.freyermuth <AT> googlemail.com>
dev-cpp/jwt-cpp/jwt-cpp-0.4.0.ebuild | 5 ++++-
dev-cpp/jwt-cpp/jwt-cpp-0.6.0.ebuild | 5 ++++-
2 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/dev-cpp/jwt-cpp/jwt-cpp-0.4.0.ebuild b/dev-cpp/jwt-cpp/jwt-cpp-0.4.0.ebuild
index 7663265ab..611f754fd 100644
--- a/dev-cpp/jwt-cpp/jwt-cpp-0.4.0.ebuild
+++ b/dev-cpp/jwt-cpp/jwt-cpp-0.4.0.ebuild
@@ -23,7 +23,10 @@ IUSE="doc +picojson test"
DEPEND="${RDEPEND}
dev-libs/openssl
picojson? ( dev-cpp/picojson )"
-BDEPEND="doc? ( app-doc/doxygen[dot] )"
+BDEPEND="
+ doc? ( app-doc/doxygen[dot] )
+ test? ( dev-cpp/gtest )
+"
RESTRICT="
!picojson? ( test )
!test? ( test )"
diff --git a/dev-cpp/jwt-cpp/jwt-cpp-0.6.0.ebuild b/dev-cpp/jwt-cpp/jwt-cpp-0.6.0.ebuild
index f2abbb709..29d69816b 100644
--- a/dev-cpp/jwt-cpp/jwt-cpp-0.6.0.ebuild
+++ b/dev-cpp/jwt-cpp/jwt-cpp-0.6.0.ebuild
@@ -24,7 +24,10 @@ DEPEND="${RDEPEND}
dev-cpp/nlohmann_json
dev-libs/openssl
picojson? ( dev-cpp/picojson )"
-BDEPEND="doc? ( app-doc/doxygen[dot] )"
+BDEPEND="
+ doc? ( app-doc/doxygen[dot] )
+ test? ( dev-cpp/gtest )
+"
RESTRICT="
!picojson? ( test )
!test? ( test )"
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: dev-cpp/jwt-cpp/
@ 2023-06-09 8:32 Oliver Freyermuth
0 siblings, 0 replies; 8+ messages in thread
From: Oliver Freyermuth @ 2023-06-09 8:32 UTC (permalink / raw
To: gentoo-commits
commit: 6d4aabcc3db31ff84cfd650453584850cc940220
Author: Oliver Freyermuth <o.freyermuth <AT> googlemail <DOT> com>
AuthorDate: Fri Jun 9 08:31:44 2023 +0000
Commit: Oliver Freyermuth <o.freyermuth <AT> googlemail <DOT> com>
CommitDate: Fri Jun 9 08:32:48 2023 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=6d4aabcc
dev-cpp/jwt-cpp: treeclean
This was a dependency solely of dev-cpp/scitokens-cpp, which is now in gentoo proper.
See https://github.com/gentoo/gentoo/pull/31364 for unbundling PR.
Signed-off-by: Oliver Freyermuth <o.freyermuth <AT> googlemail.com>
dev-cpp/jwt-cpp/Manifest | 2 -
dev-cpp/jwt-cpp/jwt-cpp-0.4.0.ebuild | 72 ----------------------------------
dev-cpp/jwt-cpp/jwt-cpp-0.6.0.ebuild | 76 ------------------------------------
dev-cpp/jwt-cpp/metadata.xml | 15 -------
4 files changed, 165 deletions(-)
diff --git a/dev-cpp/jwt-cpp/Manifest b/dev-cpp/jwt-cpp/Manifest
deleted file mode 100644
index 7ed5fadf1..000000000
--- a/dev-cpp/jwt-cpp/Manifest
+++ /dev/null
@@ -1,2 +0,0 @@
-DIST jwt-cpp-0.4.0.tar.gz 64383 BLAKE2B 48de501a1fff851ada5ffc0554309f6f05943d6b6a459c8f002f8bcebb9be40d878fc7f39c2f4da7031b784421dd0530d8e50d5eadbdb924c5485fdcd2f04b85 SHA512 8a82accb396db8fb2f1a32b14459f6ff3f5d4c6dcb54dfe1a10751da093381c2dcfb92c6e1f4f2ae42ca0f25c96c02ea35f37b723afaaf6b2d458c1a6f4e6b62
-DIST jwt-cpp-0.6.0.tar.gz 275126 BLAKE2B 4bf9bed9b2aa9584b497b2ab4d1d2582d9b5e4ded402200ea3f70b0e6752338fd4e2ef9c5836c728a6907a0190209c7baeaecd26032ce64dc6bf12a23594f27b SHA512 b6d5ebb3a7eeb6fef9a1d41c707251d1ab05bf47920c280d5203f1b9ee5bf6f8e914cd2ffaed66550cfa6d78c34465d4cf86517a759d5f8739b429faf1c2c0ef
diff --git a/dev-cpp/jwt-cpp/jwt-cpp-0.4.0.ebuild b/dev-cpp/jwt-cpp/jwt-cpp-0.4.0.ebuild
deleted file mode 100644
index 611f754fd..000000000
--- a/dev-cpp/jwt-cpp/jwt-cpp-0.4.0.ebuild
+++ /dev/null
@@ -1,72 +0,0 @@
-# Copyright 1999-2022 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"
-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="${RDEPEND}
- dev-libs/openssl
- picojson? ( dev-cpp/picojson )"
-BDEPEND="
- doc? ( app-doc/doxygen[dot] )
- test? ( dev-cpp/gtest )
-"
-RESTRICT="
- !picojson? ( test )
- !test? ( test )"
-
-src_prepare() {
- # 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.*include/picojson.*$::' CMakeLists.txt || die
- # Fix installation paths for .cmake files.
- sed -i -e 's:DESTINATION ${CMAKE_INSTALL_PREFIX}/jwt-cpp:DESTINATION ${CMAKE_INSTALL_PREFIX}/share/jwt-cpp:' CMakeLists.txt || die
- sed -i -e 's:DESTINATION jwt-cpp:DESTINATION ${CMAKE_INSTALL_PREFIX}/share/jwt-cpp:' CMakeLists.txt || die
- cmake_src_prepare
-}
-
-src_configure() {
- local mycmakeargs=(
- # Not useful for now, asks for non-existent CMake module.
- #-DJWT_EXTERNAL_PICOJSON="$(usex picojson)"
- # Examples are not installed and for development only.
- -DBUILD_TESTS="$(usex test)"
- )
- cmake_src_configure
-}
-
-src_compile() {
- cmake_src_compile
- if use doc; then
- doxygen || die
- fi
-}
-
-src_install() {
- cmake_src_install
- use doc && local HTML_DOCS=(docs/html/.)
- einstalldocs
-}
-
-src_test() {
- "${BUILD_DIR}"/tests/jwt-cpp-test || die
-}
diff --git a/dev-cpp/jwt-cpp/jwt-cpp-0.6.0.ebuild b/dev-cpp/jwt-cpp/jwt-cpp-0.6.0.ebuild
deleted file mode 100644
index 29d69816b..000000000
--- a/dev-cpp/jwt-cpp/jwt-cpp-0.6.0.ebuild
+++ /dev/null
@@ -1,76 +0,0 @@
-# Copyright 1999-2022 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"
-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="${RDEPEND}
- dev-cpp/nlohmann_json
- dev-libs/openssl
- picojson? ( dev-cpp/picojson )"
-BDEPEND="
- doc? ( app-doc/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
- cmake_src_prepare
-}
-
-src_configure() {
- local mycmakeargs=(
- -DJWT_DISABLE_PICOJSON="$(usex picojson OFF ON)"
- # 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_install() {
- cmake_src_install
- use doc && local HTML_DOCS=(doxy/html/.)
- einstalldocs
-}
-
-src_test() {
- "${BUILD_DIR}"/tests/jwt-cpp-test || die
-}
diff --git a/dev-cpp/jwt-cpp/metadata.xml b/dev-cpp/jwt-cpp/metadata.xml
deleted file mode 100644
index e17af4f35..000000000
--- a/dev-cpp/jwt-cpp/metadata.xml
+++ /dev/null
@@ -1,15 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
-<pkgmetadata>
- <maintainer type="person">
- <email>o.freyermuth@googlemail.com</email>
- <name>Oliver Freyermuth</name>
- </maintainer>
- <upstream>
- <bugs-to>https://github.com/Thalhammer/jwt-cpp/issues</bugs-to>
- <remote-id type="github">Thalhammer/jwt-cpp</remote-id>
- </upstream>
- <use>
- <flag name="picojson">Enable use of <pkg>dev-cpp/picojson</pkg></flag>
- </use>
-</pkgmetadata>
^ permalink raw reply related [flat|nested] 8+ messages in thread
end of thread, other threads:[~2023-06-09 8:32 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-02-26 17:52 [gentoo-commits] repo/proj/guru:dev commit in: dev-cpp/jwt-cpp/ Oliver Freyermuth
-- strict thread matches above, loose matches on Subject: below --
2023-06-09 8:32 Oliver Freyermuth
2022-03-08 8:17 Oliver Freyermuth
2022-03-05 16:40 Oliver Freyermuth
2022-02-27 14:28 Oliver Freyermuth
2022-02-26 18:37 Oliver Freyermuth
2022-02-26 18:06 Oliver Freyermuth
2022-02-26 17:41 Oliver Freyermuth
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox