Skip to content

Commit

Permalink
net-libs/signon-ui: add 0.15_p20231016 (with Qt 6 support)
Browse files Browse the repository at this point in the history
Signed-off-by: Sam James <[email protected]>
  • Loading branch information
thesamesam committed Jan 12, 2024
1 parent cd881de commit 844d077
Show file tree
Hide file tree
Showing 3 changed files with 85 additions and 0 deletions.
1 change: 1 addition & 0 deletions net-libs/signon-ui/Manifest
Original file line number Diff line number Diff line change
@@ -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
83 changes: 83 additions & 0 deletions net-libs/signon-ui/signon-ui-0.15_p20231016.ebuild
Original file line number Diff line number Diff line change
@@ -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
}
1 change: 1 addition & 0 deletions profiles/package.mask
Original file line number Diff line number Diff line change
Expand Up @@ -410,6 +410,7 @@ dev-python/ruamel-std-pathlib
~media-libs/pulseaudio-qt-1.4.0
~net-libs/kdsoap-2.2.0
~net-libs/kdsoap-ws-discovery-client-0.3.0
~net-libs/signon-ui-0.15_p20231016
~sys-auth/polkit-qt-0.175.0

# Hans de Graaff <[email protected]> (2023-12-17)
Expand Down

0 comments on commit 844d077

Please sign in to comment.