summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2024-01-12 12:15:12 +0000
committerSam James <sam@gentoo.org>2024-01-12 14:03:16 +0000
commit844d0775748d8dce87f1a7f3970b23c34a68afdb (patch)
tree193f429ccc472577bd8bc7d187219562c39a2d65 /net-libs/signon-ui
parentmedia-sound/strawberry: dropped obsolete 1.0.21 (diff)
downloadgentoo-844d0775748d8dce87f1a7f3970b23c34a68afdb.tar.gz
gentoo-844d0775748d8dce87f1a7f3970b23c34a68afdb.tar.bz2
gentoo-844d0775748d8dce87f1a7f3970b23c34a68afdb.zip
net-libs/signon-ui: add 0.15_p20231016 (with Qt 6 support)
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'net-libs/signon-ui')
-rw-r--r--net-libs/signon-ui/Manifest1
-rw-r--r--net-libs/signon-ui/signon-ui-0.15_p20231016.ebuild83
2 files changed, 84 insertions, 0 deletions
diff --git a/net-libs/signon-ui/Manifest b/net-libs/signon-ui/Manifest
index 13dc394fd005..bb13961d15c1 100644
--- a/net-libs/signon-ui/Manifest
+++ b/net-libs/signon-ui/Manifest
@@ -1 +1,2 @@
DIST signon-ui-0.15_p20171022.tar.bz2 55849 BLAKE2B 6b97b3f673fb4494c7e32dc345f6c4697acdb19305b9459fe954d88983e4666211926921dac70829435706cdd9a41f36d36241a73905b2a795873c2894ffa8d7 SHA512 d0a4ca222de00abf4000905d917799fc6f9e04a2c3f49d0d0882dc4e90fdbcde14da91f355d10f8a3feac03661febd321ea6de1df227fa5a3c404eaefa7c2d60
+DIST signon-ui-0.15_p20231016.tar.bz2 55078 BLAKE2B eff35b2b311c4b923148656ad7512418ee6e19607babd02f2bc8bff9d6f2f5cfdc37c7030fb842b65b25c310f6e44f76a73b9d0a4569af52f7661b0eb09da2f2 SHA512 c26be8921c5d2a559bd62793f3eca19184c236c2e2649728631d60d2781f4b4457f63bbd35238cb274ff3a7747220688688f0880df8db0e78ccaf6f126d6e86e
diff --git a/net-libs/signon-ui/signon-ui-0.15_p20231016.ebuild b/net-libs/signon-ui/signon-ui-0.15_p20231016.ebuild
new file mode 100644
index 000000000000..5d48ec22cb82
--- /dev/null
+++ b/net-libs/signon-ui/signon-ui-0.15_p20231016.ebuild
@@ -0,0 +1,83 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit qmake-utils
+
+if [[ ${PV} = *9999* ]] ; then
+ EGIT_REPO_URI="https://gitlab.com/accounts-sso/signon-ui.git/"
+ inherit git-r3
+else
+ COMMIT=eef943f0edf3beee8ecb85d4a9dae3656002fc24
+ SRC_URI="https://gitlab.com/accounts-sso/${PN}/-/archive/${COMMIT}/${PN}-${COMMIT}.tar.bz2 -> ${P}.tar.bz2"
+ S="${WORKDIR}/${PN}-${COMMIT}"
+ KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86"
+fi
+
+DESCRIPTION="Online accounts signon UI"
+HOMEPAGE="https://gitlab.com/accounts-sso/signon-ui"
+
+LICENSE="GPL-2 GPL-3"
+SLOT="0"
+IUSE="qt6 test"
+
+RESTRICT="test"
+
+COMMON_DEPEND="
+ dev-libs/glib:2
+ !qt6? (
+ dev-qt/qtcore:5
+ dev-qt/qtdbus:5
+ dev-qt/qtdeclarative:5
+ dev-qt/qtgui:5
+ dev-qt/qtnetwork:5[ssl]
+ dev-qt/qtwebengine:5
+ dev-qt/qtwidgets:5
+ >=net-libs/accounts-qt-1.16-r1[qt5]
+ >=net-libs/signond-8.61-r1[qt5]
+ )
+ qt6? (
+ dev-qt/qtbase:6[dbus,gui,network,ssl,widgets]
+ dev-qt/qtdeclarative:6
+ dev-qt/qtwebengine:6
+ >=net-libs/accounts-qt-1.16-r1[qt6]
+ >=net-libs/signond-8.61-r1[qt6]
+ )
+ net-libs/libproxy
+ x11-libs/libnotify
+"
+RDEPEND="${COMMON_DEPEND}
+ !qt6? ( dev-qt/qtwebchannel:5 )
+ qt6? ( dev-qt/qtwebchannel:6 )
+"
+DEPEND="${COMMON_DEPEND}
+ test? (
+ !qt6? ( dev-qt/qttest:5 )
+ )
+"
+
+PATCHES=(
+ # thanks to openSUSE
+ "${FILESDIR}/${PN}-0.15_p20171022-webengine-cachedir-path.patch"
+ "${FILESDIR}/${PN}-0.15_p20171022-fix-username-field-reading.patch"
+ # downstream
+ "${FILESDIR}/${PN}-0.15_p20171022-drop-fno-rtti.patch"
+ "${FILESDIR}/${PN}-0.15_p20171022-disable-tests.patch"
+)
+
+src_configure() {
+ if use qt6; then
+ eqmake6 PREFIX="${EPREFIX}"/usr
+ else
+ eqmake5 PREFIX="${EPREFIX}"/usr
+ fi
+}
+
+src_compile() {
+ emake -j1
+}
+
+src_install() {
+ emake INSTALL_ROOT="${D}" -j1 install
+}