diff options
author | Sam James <sam@gentoo.org> | 2024-01-12 14:11:41 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2024-01-12 14:12:16 +0000 |
commit | f9c7256c26652904c96fceae181b70965beb5670 (patch) | |
tree | 93347f3e66bd0fbf36c9919b516f58e645a835e5 /net-libs | |
parent | media-sound/sidplayfp: bump to 1.6.2, dropped 1.6.1 (diff) | |
download | gentoo-f9c7256c26652904c96fceae181b70965beb5670.tar.gz gentoo-f9c7256c26652904c96fceae181b70965beb5670.tar.bz2 gentoo-f9c7256c26652904c96fceae181b70965beb5670.zip |
net-libs/accounts-qml: add 0.7_p20231028 (with Qt 6 support)
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'net-libs')
-rw-r--r-- | net-libs/accounts-qml/Manifest | 1 | ||||
-rw-r--r-- | net-libs/accounts-qml/accounts-qml-0.7_p20231028.ebuild | 130 |
2 files changed, 131 insertions, 0 deletions
diff --git a/net-libs/accounts-qml/Manifest b/net-libs/accounts-qml/Manifest index 8db03e0fe99f..89f2b085af73 100644 --- a/net-libs/accounts-qml/Manifest +++ b/net-libs/accounts-qml/Manifest @@ -1,2 +1,3 @@ DIST accounts-qml-0.7-patches-1.tar.xz 3416 BLAKE2B bbaef28c3d455d4aa458790a875a321870c90e88ba3e6735790b3ea50d89c6ac4ac3ef3320239fb4a120681690af4144ea616638ebe21e51e898e178a94eb5cb SHA512 3f3f4996311fe76c9a438dc2794394879b655373146baa38be13c54a93f0016035d371ae7152df02b56b25f7898ab7d0752de636202e88acae1ee536f2809ad6 +DIST accounts-qml-0.7_p20231028.tar.bz2 50521 BLAKE2B 6704557e50b40d0be6e706c05ce888f959fd2028c7fa9aea9d3f2064828b6869bee454cd88189e70abe483b0809ec857634b0b8fa5f989fca05ae7af55efb80a SHA512 0d366b526873bdeecb9a5582992b8d659777beff3b5449745141a3c8156e130714acd81343440a2edcff7ed7bfeed2ce1afdb89188c8be2a2737491278b44253 DIST accounts-qml-module-VERSION_0.7.tar.gz 62029 BLAKE2B 0924b73868135ad5d9ec7545d5b0ba84f140053f0be4d17f1c6d3754ec19e362af906af60fb45e6405b5d080dd8f63845070815b12e8bfeda30032c9ed172708 SHA512 4e0e5df64d0a477e11f412c0def85d0de1730efff9682790f5339a57d58778282aa8ca0fa201e409b3b9a2a75fea70f10555b1f70224a3b95ab8d44b942cf7e1 diff --git a/net-libs/accounts-qml/accounts-qml-0.7_p20231028.ebuild b/net-libs/accounts-qml/accounts-qml-0.7_p20231028.ebuild new file mode 100644 index 000000000000..aee3f07c21fb --- /dev/null +++ b/net-libs/accounts-qml/accounts-qml-0.7_p20231028.ebuild @@ -0,0 +1,130 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit qmake-utils multibuild + +if [[ ${PV} = *9999* ]] ; then + EGIT_REPO_URI="https://gitlab.com/accounts-sso/accounts-qml-module.git/" + inherit git-r3 +else + COMMIT=05e79ebbbf3784a87f72b7be571070125c10dfe3 + if [[ -n ${COMMIT} ]] ; then + SRC_URI="https://gitlab.com/accounts-sso/${PN}-module/-/archive/${COMMIT}/${PN}-module-${COMMIT}.tar.bz2 -> ${P}.tar.bz2" + S="${WORKDIR}/${PN}-module-${COMMIT}" + else + SRC_URI=" + https://gitlab.com/accounts-sso/${PN}-module/-/archive/VERSION_${PV}/${PN}-module-VERSION_${PV}.tar.bz2 + https://dev.gentoo.org/~asturm/distfiles/${P}-patches-1.tar.xz + " + S="${WORKDIR}/${PN}-module-VERSION_${PV}" + fi + KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc64 ~riscv ~x86" +fi + +DESCRIPTION="QML bindings for accounts-qt and signond" +HOMEPAGE="https://accounts-sso.gitlab.io/" + +LICENSE="LGPL-2.1" +SLOT="0" +IUSE="doc +qt5 qt6 test" +REQUIRED_USE="|| ( qt5 qt6 )" + +# dbus problems +RESTRICT="test" + +RDEPEND=" + qt5? ( + dev-qt/qtcore:5 + dev-qt/qtdeclarative:5 + ) + qt6? ( + dev-qt/qtbase:6 + dev-qt/qtdeclarative:6 + ) + >=net-libs/accounts-qt-1.16-r1[qt5?,qt6?] + >=net-libs/signond-8.61-r1[qt5?,qt6?] +" +DEPEND="${RDEPEND} + test? ( + qt5? ( + dev-qt/qtgui:5 + dev-qt/qttest:5 + ) + qt6? ( dev-qt/qtbase:6[gui] ) + ) +" +BDEPEND=" + doc? ( + app-doc/doxygen + || ( + ( dev-qt/qttools:6[assistant,qdoc] ) + ( + dev-qt/qdoc:5 + dev-qt/qthelp:5 + ) + ) + ) +" + +DOCS=( README.md ) + +pkg_setup() { + MULTIBUILD_VARIANTS=( $(usev qt5) $(usev qt6) ) +} + +src_prepare() { + default + rm -v doc/html/.gitignore || die + multibuild_copy_sources +} + +src_configure() { + my_src_configure() { + cd "${BUILD_DIR}" || die + + local myqmakeargs=( + CONFIG+=no_docs \ + PREFIX="${EPREFIX}"/usr + ) + + if [[ ${MULTIBUILD_VARIANT} == qt6 ]]; then + eqmake6 "${myqmakeargs[@]}" + else + eqmake5 "${myqmakeargs[@]}" + fi + } + + multibuild_foreach_variant my_src_configure +} + +src_compile() { + my_src_compile() { + emake -C "${BUILD_DIR}" + } + + multibuild_foreach_variant my_src_compile + + if use doc; then + local qtanybindir + if has_version "dev-qt/qttools:6[qdoc]"; then + qtanybindir="$(qt6_get_libdir)" + elif has_version "dev-qt/qdoc:5"; then + qtanybindir="$(qt5_get_bindir)" + else + eerror "dev-qt/qttools:6[qdoc] nor dev-qt/qdoc:5 available even though in deps(?)" + fi + ${qtanybindir}/qdoc doc/accounts-qml-module.qdocconf || die + fi +} + +src_install() { + my_src_install() { + emake -C "${BUILD_DIR}" INSTALL_ROOT="${D}" install_subtargets + } + + multibuild_foreach_variant my_src_install + use doc && local HTML_DOCS=( doc/html ) + einstalldocs +} |