summaryrefslogtreecommitdiff
path: root/dev-libs/qgpgme/qgpgme-2.1.0.ebuild
blob: 56e7f9e8da68941c0756356e86e40c1fcf63b2fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/gnupg.asc
inherit cmake verify-sig

DESCRIPTION="GnuPG Made Easy is a library for making GnuPG easier to use (Qt bindings)"
HOMEPAGE="https://www.gnupg.org/related_software/gpgme"
SRC_URI="
	mirror://gnupg/${PN}/${P}.tar.xz
	verify-sig? ( mirror://gnupg/${PN}/${P}.tar.xz.sig )
"

LICENSE="GPL-2+ test? ( GPL-2 )"
# As of 2.1.0, the subslot is wrong, but fixing it would be expensive.
# It should be '15'.
SLOT="0/7"
KEYWORDS="amd64 arm arm64 ~hppa ~loong ppc ppc64 ~riscv x86 ~arm64-macos ~x64-macos ~x64-solaris"
IUSE="test"
RESTRICT="!test? ( test )"

DEPEND="
	>=app-crypt/gpgme-${PV%.*}:=
	>=dev-cpp/gpgmepp-${PV%.*}:=
	>=dev-libs/libgpg-error-1.47:=
	>=dev-qt/qtbase-6.5.0:6
"
RDEPEND="${DEPEND}
	!<app-crypt/gpgme-2[qt6(-)]
	!dev-libs/qgpgme:1
"
BDEPEND="verify-sig? ( sec-keys/openpgp-keys-gnupg )"

src_configure() {
	local mycmakeargs=(
		-DBUILD_WITH_QT5=OFF
		-DBUILD_WITH_QT6=ON
		-DBUILD_TESTING=$(usex test)
	)

	cmake_src_configure
}