blob: 2eadd67a28b87cba58b3a8c4d8adf5b1a66e867c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
# Copyright 1999-2024 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
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"
# TODO: drop USE=qt5 and just have USE=qt6 to control which qt?
IUSE="+qt5 qt6 test"
REQUIRED_USE="|| ( qt5 qt6 )"
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 )
)
"
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"
)
src_prepare() {
default
sed -i "s|@LIBDIR@|$(get_libdir)|g" src/signon-oauth2plugin.pc || die
}
src_configure() {
local myqmakeargs=(
LIBDIR=/usr/$(get_libdir)
)
use test || myqmakeargs+=( CONFIG+=nomake_tests )
if use qt6 ; then
eqmake6 "${myqmakeargs[@]}"
else
eqmake5 "${myqmakeargs[@]}"
fi
}
src_install() {
emake INSTALL_ROOT="${D}" install
}
|