diff options
5 files changed, 145 insertions, 0 deletions
diff --git a/net-libs/signon-oauth2/files/signon-oauth2-0.24-dont-install-tests.patch b/net-libs/signon-oauth2/files/signon-oauth2-0.24-dont-install-tests.patch new file mode 100644 index 00000000000..615bc8b562d --- /dev/null +++ b/net-libs/signon-oauth2/files/signon-oauth2-0.24-dont-install-tests.patch @@ -0,0 +1,11 @@ +--- a/tests/tests.pro 2018-05-29 22:51:43.766914590 +0200 ++++ b/tests/tests.pro 2018-05-29 22:52:45.247259336 +0200 +@@ -32,8 +32,6 @@ + target.path = $${INSTALL_PREFIX}/bin + testsuite.path = $${INSTALL_PREFIX}/share/$$TARGET + testsuite.files = tests.xml +-INSTALLS += target \ +- testsuite + + check.depends = $$TARGET + check.commands = ./$$TARGET || : diff --git a/net-libs/signon-oauth2/files/signon-oauth2-0.25-drop-fno-rtti.patch b/net-libs/signon-oauth2/files/signon-oauth2-0.25-drop-fno-rtti.patch new file mode 100644 index 00000000000..04aad541694 --- /dev/null +++ b/net-libs/signon-oauth2/files/signon-oauth2-0.25-drop-fno-rtti.patch @@ -0,0 +1,26 @@ +From 94e7cdbe1b15455e932a2272fdf2284fecfb9204 Mon Sep 17 00:00:00 2001 +From: Andreas Sturmlechner <asturm@gentoo.org> +Date: Wed, 11 Nov 2020 22:35:06 +0100 +Subject: [PATCH] Disable -fno-rtti + +Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org> +--- + common-project-config.pri | 3 +-- + 1 file changed, 1 insertion(+), 2 deletions(-) + +diff --git a/common-project-config.pri b/common-project-config.pri +index e149d90..9c7801a 100644 +--- a/common-project-config.pri ++++ b/common-project-config.pri +@@ -17,8 +17,7 @@ + UI_HEADERS_DIR = ui/include + UI_SOURCES_DIR = ui/src + +-QMAKE_CXXFLAGS += -fno-exceptions \ +- -fno-rtti ++QMAKE_CXXFLAGS += -fno-exceptions + + TOP_SRC_DIR = $$PWD + +-- +2.29.2 diff --git a/net-libs/signon-oauth2/files/signon-oauth2-0.25-pkgconfig-libdir.patch b/net-libs/signon-oauth2/files/signon-oauth2-0.25-pkgconfig-libdir.patch new file mode 100644 index 00000000000..fd61e4c2aed --- /dev/null +++ b/net-libs/signon-oauth2/files/signon-oauth2-0.25-pkgconfig-libdir.patch @@ -0,0 +1,14 @@ +--- a/src/signon-oauth2plugin.pc 2016-06-02 11:44:21.000000000 +0200 ++++ b/src/signon-oauth2plugin.pc 2017-11-03 10:57:35.659278702 +0100 +@@ -1,9 +1,9 @@ + prefix=/usr + exec_prefix=${prefix} +-libdir=${prefix}/lib/ ++libdir=${prefix}/@LIBDIR@/ + includedir=${prefix}/include + Name: signon-oauth2plugin + Description: Signon OAuth 2.0 plugin + Version: 0.0.1 + Requires: signon-plugins +-Libs.private: -L/usr/lib -lQtCore ++Libs.private: -L/usr/@LIBDIR@ -lQtCore diff --git a/net-libs/signon-oauth2/metadata.xml b/net-libs/signon-oauth2/metadata.xml new file mode 100644 index 00000000000..ff21736a449 --- /dev/null +++ b/net-libs/signon-oauth2/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>kde@gentoo.org</email> + <name>Gentoo KDE Project</name> + </maintainer> + <upstream> + <remote-id type="gitlab">accounts-sso/signon-plugin-oauth2</remote-id> + </upstream> +</pkgmetadata> diff --git a/net-libs/signon-oauth2/signon-oauth2-9999.ebuild b/net-libs/signon-oauth2/signon-oauth2-9999.ebuild new file mode 100644 index 00000000000..be93637379c --- /dev/null +++ b/net-libs/signon-oauth2/signon-oauth2-9999.ebuild @@ -0,0 +1,83 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +MY_PN=signon-plugin-oauth2 +MY_PV=VERSION_${PV} +MY_P=${MY_PN}-${MY_PV} +inherit qmake-utils multibuild + +if [[ ${PV} = *9999* ]] ; then + EGIT_REPO_URI="https://gitlab.com/nicolasfella/${MY_PN}.git/" + EGIT_BRANCH="qt6" + inherit git-r3 +else + SRC_URI="https://gitlab.com/accounts-sso/${MY_PN}/-/archive/${MY_PV}/${MY_P}.tar.gz -> ${P}.tar.gz" + S="${WORKDIR}/${MY_P}" + KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc64 ~riscv ~x86" +fi + +DESCRIPTION="OAuth2 plugin for Signon daemon" +HOMEPAGE="https://gitlab.com/accounts-sso/signon-plugin-oauth2" + +LICENSE="LGPL-2.1" +SLOT="0" +IUSE="+qt5 qt6 test" +RESTRICT="!test? ( test )" + +RDEPEND=" + qt5? ( + dev-qt/qtcore:5 + dev-qt/qtnetwork:5[ssl] + ) + qt6? ( dev-qt/qtbase:6[network,ssl] ) + >=net-libs/signond-8.61-r1[qt5?,qt6?] +" +DEPEND="${RDEPEND} + test? ( + qt5? ( dev-qt/qttest:5 ) + qt6? ( dev-qt/qtbase:6[test] ) + ) +" + +PATCHES=( + # downstream patches + "${FILESDIR}/${PN}-0.24-dont-install-tests.patch" + "${FILESDIR}/${PN}-0.25-pkgconfig-libdir.patch" + "${FILESDIR}/${PN}-0.25-drop-fno-rtti.patch" +) + +pkg_setup() { + MULTIBUILD_VARIANTS=( $(usev qt5) $(usev qt6) ) +} + +src_prepare() { + default + sed -i "s|@LIBDIR@|$(get_libdir)|g" src/signon-oauth2plugin.pc || die +} + +src_configure() { + my_src_configure() { + local myqmakeargs=( + LIBDIR=/usr/$(get_libdir) + ) + use test || myqmakeargs+=( CONFIG+=nomake_tests ) + + if [[ ${MULTIBUILD_VARIANT} == qt6 ]]; then + eqmake6 "${myqmakeargs[@]}" + else + eqmake5 "${myqmakeargs[@]}" + fi + } + + multibuild_foreach_variant my_src_configure +} + +src_compile() { + multibuild_foreach_variant default +} + +src_install() { + multibuild_foreach_variant emake INSTALL_ROOT="${D}" install +} |
