Gentoo Archives: gentoo-commits

From: Mikle Kolyada <zlogene@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-crypt/pinentry/
Date: Tue, 23 Feb 2021 15:33:17
Message-Id: 1614094389.0c904c5599cc8bbeb5ff15658137a748953ffcec.zlogene@gentoo
1 commit: 0c904c5599cc8bbeb5ff15658137a748953ffcec
2 Author: Bertrand Jacquin <bertrand <AT> jacquin <DOT> bzh>
3 AuthorDate: Tue Feb 9 23:09:38 2021 +0000
4 Commit: Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
5 CommitDate: Tue Feb 23 15:33:09 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0c904c55
7
8 app-crypt/pinentry: add pinentry-fltk
9
10 As per https://git.gnupg.org/cgi-bin/gitweb.cgi?p=pinentry.git;a=blob;f=NEWS,
11 pinentry 1.1.1 adds an EFL based pinentry.
12
13 Bug: https://bugs.gentoo.org/767181
14 Bug: https://bugs.gentoo.org/771003
15 Signed-off-by: Bertrand Jacquin <bertrand <AT> jacquin.bzh>
16 Package-Manager: Portage-3.0.13, Repoman-3.0.2
17 Closes: https://github.com/gentoo/gentoo/pull/19396
18 Signed-off-by: Mikle Kolyada <zlogene <AT> gentoo.org>
19
20 app-crypt/pinentry/metadata.xml | 3 +
21 app-crypt/pinentry/pinentry-1.1.1-r1.ebuild | 90 +++++++++++++++++++++++++++++
22 2 files changed, 93 insertions(+)
23
24 diff --git a/app-crypt/pinentry/metadata.xml b/app-crypt/pinentry/metadata.xml
25 index 6698a4ab788..7aa9e9a300f 100644
26 --- a/app-crypt/pinentry/metadata.xml
27 +++ b/app-crypt/pinentry/metadata.xml
28 @@ -5,4 +5,7 @@
29 <email>zlogene@g.o</email>
30 <name>Mikle Kolyada</name>
31 </maintainer>
32 + <use>
33 + <flag name="efl">Build <pkg>dev-libs/efl</pkg> based pinentry</flag>
34 + </use>
35 </pkgmetadata>
36
37 diff --git a/app-crypt/pinentry/pinentry-1.1.1-r1.ebuild b/app-crypt/pinentry/pinentry-1.1.1-r1.ebuild
38 new file mode 100644
39 index 00000000000..c44afad0666
40 --- /dev/null
41 +++ b/app-crypt/pinentry/pinentry-1.1.1-r1.ebuild
42 @@ -0,0 +1,90 @@
43 +# Copyright 1999-2021 Gentoo Authors
44 +# Distributed under the terms of the GNU General Public License v2
45 +
46 +EAPI=7
47 +
48 +inherit autotools flag-o-matic qmake-utils toolchain-funcs
49 +
50 +DESCRIPTION="Simple passphrase entry dialogs which utilize the Assuan protocol"
51 +HOMEPAGE="https://gnupg.org/aegypten2"
52 +SRC_URI="mirror://gnupg/${PN}/${P}.tar.bz2"
53 +
54 +LICENSE="GPL-2"
55 +SLOT="0"
56 +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~mips ~ppc ~ppc64 ~s390 ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris ~x86-solaris"
57 +IUSE="caps efl emacs gnome-keyring gtk ncurses qt5"
58 +
59 +DEPEND="
60 + >=app-eselect/eselect-pinentry-0.7.2
61 + >=dev-libs/libassuan-2.1
62 + >=dev-libs/libgcrypt-1.6.3
63 + >=dev-libs/libgpg-error-1.17
64 + caps? ( sys-libs/libcap )
65 + efl? ( dev-libs/efl[X] )
66 + gnome-keyring? ( app-crypt/libsecret )
67 + ncurses? ( sys-libs/ncurses:0= )
68 + qt5? (
69 + dev-qt/qtcore:5
70 + dev-qt/qtgui:5
71 + dev-qt/qtwidgets:5
72 + )
73 +"
74 +RDEPEND="${DEPEND}
75 + gtk? ( app-crypt/gcr )
76 +"
77 +BDEPEND="
78 + sys-devel/gettext
79 + virtual/pkgconfig
80 +"
81 +
82 +DOCS=( AUTHORS ChangeLog NEWS README THANKS TODO )
83 +
84 +PATCHES=(
85 + "${FILESDIR}/${PN}-1.0.0-make-icon-work-under-Plasma-Wayland.patch"
86 + "${FILESDIR}/${PN}-0.8.2-ncurses.patch"
87 + "${FILESDIR}/${PN}-1.0.0-AR.patch"
88 +)
89 +
90 +src_prepare() {
91 + default
92 + unset FLTK_CONFIG
93 + eautoreconf
94 +}
95 +
96 +src_configure() {
97 + [[ "$(gcc-major-version)" -ge 5 ]] && append-cxxflags -std=gnu++11
98 +
99 + export QTLIB="$(qt5_get_libdir)"
100 +
101 + econf \
102 + $(use_enable efl pinentry-efl) \
103 + $(use_enable emacs pinentry-emacs) \
104 + $(use_enable gnome-keyring libsecret) \
105 + $(use_enable gtk pinentry-gnome3) \
106 + $(use_enable ncurses fallback-curses) \
107 + $(use_enable ncurses pinentry-curses) \
108 + $(use_enable qt5 pinentry-qt) \
109 + $(use_with caps libcap) \
110 + --enable-pinentry-tty \
111 + --disable-pinentry-fltk \
112 + --disable-pinentry-gtk2 \
113 + MOC="$(qt5_get_bindir)"/moc \
114 + GPG_ERROR_CONFIG="${ESYSROOT}/usr/bin/${CHOST}-gpg-error-config" \
115 + LIBASSUAN_CONFIG="${ESYSROOT}/usr/bin/libassuan-config" \
116 + $("${S}/configure" --help | grep -- '--without-.*-prefix' | sed -e 's/^ *\([^ ]*\) .*/\1/g')
117 +}
118 +
119 +src_install() {
120 + default
121 + rm "${ED}"/usr/bin/pinentry || die
122 +
123 + use qt5 && dosym pinentry-qt /usr/bin/pinentry-qt5
124 +}
125 +
126 +pkg_postinst() {
127 + eselect pinentry update ifunset
128 +}
129 +
130 +pkg_postrm() {
131 + eselect pinentry update ifunset
132 +}