From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id A754515810F for ; Sat, 10 Jun 2023 19:04:44 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E5A4DE089F; Sat, 10 Jun 2023 19:04:43 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id C8169E089F for ; Sat, 10 Jun 2023 19:04:43 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id A53BB3411E7 for ; Sat, 10 Jun 2023 19:04:42 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 1F047A53 for ; Sat, 10 Jun 2023 19:04:41 +0000 (UTC) From: "Andreas Sturmlechner" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andreas Sturmlechner" Message-ID: <1686423846.045afc9e78ff51d206d2fc18a7f95a40a3707337.asturm@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/qtkeychain/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-libs/qtkeychain/qtkeychain-0.14.1-r1.ebuild X-VCS-Directories: dev-libs/qtkeychain/ X-VCS-Committer: asturm X-VCS-Committer-Name: Andreas Sturmlechner X-VCS-Revision: 045afc9e78ff51d206d2fc18a7f95a40a3707337 X-VCS-Branch: master Date: Sat, 10 Jun 2023 19:04:41 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: a7f054a9-5cac-4ef4-8bcd-4785bb138bd2 X-Archives-Hash: f52eb4f3cef2d5544e6a08d32c310ef9 commit: 045afc9e78ff51d206d2fc18a7f95a40a3707337 Author: Anna Vyalkova sysrq in> AuthorDate: Wed May 31 08:30:43 2023 +0000 Commit: Andreas Sturmlechner gentoo org> CommitDate: Sat Jun 10 19:04:06 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=045afc9e dev-libs/qtkeychain: add Qt6 support fix homepage in source uri Closes: https://github.com/gentoo/gentoo/pull/27728 Signed-off-by: Anna Vyalkova sysrq.in> Signed-off-by: Andreas Sturmlechner gentoo.org> dev-libs/qtkeychain/qtkeychain-0.14.1-r1.ebuild | 74 +++++++++++++++++++++++++ 1 file changed, 74 insertions(+) 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 +}