diff options
author | Anna Vyalkova <cyber+gentoo@sysrq.in> | 2023-05-31 13:30:43 +0500 |
---|---|---|
committer | Andreas Sturmlechner <asturm@gentoo.org> | 2023-06-10 21:04:06 +0200 |
commit | 045afc9e78ff51d206d2fc18a7f95a40a3707337 (patch) | |
tree | 62e5d29652d4bf8f42d4fb4a6e0975326a7d49c4 /dev-libs/qtkeychain | |
parent | sys-auth/elogind: update EGIT_BRANCH (diff) | |
download | gentoo-045afc9e78ff51d206d2fc18a7f95a40a3707337.tar.gz gentoo-045afc9e78ff51d206d2fc18a7f95a40a3707337.tar.bz2 gentoo-045afc9e78ff51d206d2fc18a7f95a40a3707337.zip |
dev-libs/qtkeychain: add Qt6 support
fix homepage in source uri
Closes: https://github.com/gentoo/gentoo/pull/27728
Signed-off-by: Anna Vyalkova <cyber+gentoo@sysrq.in>
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'dev-libs/qtkeychain')
-rw-r--r-- | dev-libs/qtkeychain/qtkeychain-0.14.1-r1.ebuild | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/dev-libs/qtkeychain/qtkeychain-0.14.1-r1.ebuild b/dev-libs/qtkeychain/qtkeychain-0.14.1-r1.ebuild new file mode 100644 index 000000000000..f6bdc28e5b0d --- /dev/null +++ b/dev-libs/qtkeychain/qtkeychain-0.14.1-r1.ebuild @@ -0,0 +1,74 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake multibuild + +HOMEPAGE="https://github.com/frankosterfeld/qtkeychain" +DESCRIPTION="Qt API for storing passwords securely" + +if [[ ${PV} != *9999* ]]; then + SRC_URI="https://github.com/frankosterfeld/${PN}/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64 ~arm64 ~loong ~ppc64 ~riscv ~x86" +else + inherit git-r3 + EGIT_REPO_URI="https://github.com/frankosterfeld/${PN}.git" +fi + +LICENSE="BSD-2" +SLOT="0/1" +IUSE="keyring +qt5 qt6" +REQUIRED_USE="|| ( qt5 qt6 )" + +DEPEND=" + keyring? ( + app-crypt/libsecret + dev-libs/glib:2 + ) + qt5? ( + dev-qt/qtcore:5 + dev-qt/qtdbus:5 + ) + qt6? ( dev-qt/qtbase:6[dbus] ) +" +RDEPEND="${DEPEND}" +BDEPEND=" + qt5? ( dev-qt/linguist-tools:5 ) + qt6? ( dev-qt/qttools:6[linguist] ) +" + +DOCS=( ChangeLog ReadMe.md ) + +pkg_setup() { + MULTIBUILD_VARIANTS=( $(usev qt5) $(usev qt6) ) +} + +src_configure() { + my_src_configure() { + local mycmakeargs=( + -DECM_MKSPECS_INSTALL_DIR="${EPREFIX}"/usr/$(get_libdir)/${MULTIBUILD_VARIANT}/mkspecs + -DBUILD_TEST_APPLICATION=OFF + -DBUILD_TRANSLATIONS=ON + -DLIBSECRET_SUPPORT=$(usex keyring) + ) + + if [[ ${MULTIBUILD_VARIANT} == qt6 ]]; then + mycmakeargs+=( -DBUILD_WITH_QT6=ON ) + else + mycmakeargs+=( -DBUILD_WITH_QT6=OFF ) + fi + + cmake_src_configure + } + + multibuild_foreach_variant my_src_configure +} + +src_compile() { + multibuild_foreach_variant cmake_src_compile +} + +src_install() { + multibuild_foreach_variant cmake_src_install +} |