Gentoo Archives: gentoo-commits

From: Kristian Fiskerstrand <k_f@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-crypt/pinentry/
Date: Sat, 12 May 2018 15:54:34
Message-Id: 1526140418.199d422073087221672c976e3774bb265ea3bcab.k_f@gentoo
1 commit: 199d422073087221672c976e3774bb265ea3bcab
2 Author: Kristian Fiskerstrand <k_f <AT> gentoo <DOT> org>
3 AuthorDate: Sat May 12 15:53:26 2018 +0000
4 Commit: Kristian Fiskerstrand <k_f <AT> gentoo <DOT> org>
5 CommitDate: Sat May 12 15:53:38 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=199d4220
7
8 app-crypt/pinentry: Remove automagic dependency for fltk
9
10 Closes: https://bugs.gentoo.org/655290
11 Package-Manager: Portage-2.3.24, Repoman-2.3.6
12
13 app-crypt/pinentry/pinentry-1.1.0-r2.ebuild | 102 ++++++++++++++++++++++++++++
14 1 file changed, 102 insertions(+)
15
16 diff --git a/app-crypt/pinentry/pinentry-1.1.0-r2.ebuild b/app-crypt/pinentry/pinentry-1.1.0-r2.ebuild
17 new file mode 100644
18 index 00000000000..5b9da6b3a47
19 --- /dev/null
20 +++ b/app-crypt/pinentry/pinentry-1.1.0-r2.ebuild
21 @@ -0,0 +1,102 @@
22 +# Copyright 1999-2018 Gentoo Foundation
23 +# Distributed under the terms of the GNU General Public License v2
24 +
25 +EAPI=6
26 +
27 +inherit autotools flag-o-matic qmake-utils toolchain-funcs
28 +
29 +DESCRIPTION="Simple passphrase entry dialogs which utilize the Assuan protocol"
30 +HOMEPAGE="https://gnupg.org/aegypten2/index.html"
31 +SRC_URI="mirror://gnupg/${PN}/${P}.tar.bz2"
32 +
33 +LICENSE="GPL-2"
34 +SLOT="0"
35 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
36 +IUSE="caps emacs gnome-keyring fltk gtk ncurses qt5 static"
37 +
38 +CDEPEND="
39 + app-eselect/eselect-pinentry
40 + >=dev-libs/libassuan-2.1
41 + >=dev-libs/libgcrypt-1.6.3
42 + >=dev-libs/libgpg-error-1.17
43 + caps? ( sys-libs/libcap )
44 + fltk? ( x11-libs/fltk )
45 + gnome-keyring? ( app-crypt/libsecret )
46 + gtk? ( x11-libs/gtk+:2 )
47 + ncurses? ( sys-libs/ncurses:0= )
48 + qt5? (
49 + dev-qt/qtcore:5
50 + dev-qt/qtgui:5
51 + dev-qt/qtwidgets:5
52 + )
53 + static? ( >=sys-libs/ncurses-5.7-r5:0=[static-libs,-gpm] )
54 +"
55 +DEPEND="${CDEPEND}
56 + sys-devel/gettext
57 + virtual/pkgconfig
58 +"
59 +RDEPEND="${CDEPEND}
60 + gnome-keyring? ( app-crypt/gcr )
61 +"
62 +
63 +REQUIRED_USE="
64 + gtk? ( !static )
65 + qt5? ( !static )
66 +"
67 +
68 +DOCS=( AUTHORS ChangeLog NEWS README THANKS TODO )
69 +
70 +PATCHES=(
71 + "${FILESDIR}/${PN}-1.0.0-make-icon-work-under-Plasma-Wayland.patch"
72 + "${FILESDIR}/${PN}-0.8.2-ncurses.patch"
73 +)
74 +
75 +src_prepare() {
76 + default
77 + eautoreconf
78 +}
79 +
80 +src_configure() {
81 + use static && append-ldflags -static
82 + [[ "$(gcc-major-version)" -ge 5 ]] && append-cxxflags -std=gnu++11
83 +
84 + export QTLIB="$(qt5_get_libdir)"
85 +
86 + econf \
87 + --enable-pinentry-tty \
88 + $(use_with caps libcap) \
89 + $(use_enable emacs pinentry-emacs) \
90 + $(use_enable fltk pinentry-fltk) \
91 + $(use_enable gnome-keyring libsecret) \
92 + $(use_enable gnome-keyring pinentry-gnome3) \
93 + $(use_enable gtk pinentry-gtk2) \
94 + $(use_enable ncurses pinentry-curses) \
95 + $(use_enable ncurses fallback-curses) \
96 + $(use_enable qt5 pinentry-qt) \
97 + MOC="$(qt5_get_bindir)"/moc
98 +}
99 +
100 +src_install() {
101 + default
102 + rm -f "${ED}"/usr/bin/pinentry || die
103 +
104 + use qt5 && dosym pinentry-qt /usr/bin/pinentry-qt4
105 +}
106 +
107 +pkg_postinst() {
108 + if ! has_version 'app-crypt/pinentry' || has_version '<app-crypt/pinentry-0.7.3'; then
109 + elog "We no longer install pinentry-curses and pinentry-qt SUID root by default."
110 + elog "Linux kernels >=2.6.9 support memory locking for unprivileged processes."
111 + elog "The soft resource limit for memory locking specifies the limit an"
112 + elog "unprivileged process may lock into memory. You can also use POSIX"
113 + elog "capabilities to allow pinentry to lock memory. To do so activate the caps"
114 + elog "USE flag and add the CAP_IPC_LOCK capability to the permitted set of"
115 + elog "your users."
116 + fi
117 +
118 + eselect pinentry update ifunset
119 +}
120 +
121 +pkg_postrm() {
122 + eselect pinentry update ifunset
123 +}