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: Thu, 24 Sep 2015 20:47:46
Message-Id: 1443127481.9bdee70407a6f7ffeebad92d06b8ad5c8e1066e4.k_f@gentoo
1 commit: 9bdee70407a6f7ffeebad92d06b8ad5c8e1066e4
2 Author: Kristian Fiskerstrand <k_f <AT> gentoo <DOT> org>
3 AuthorDate: Thu Sep 24 20:44:27 2015 +0000
4 Commit: Kristian Fiskerstrand <k_f <AT> gentoo <DOT> org>
5 CommitDate: Thu Sep 24 20:44:41 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9bdee704
7
8 app-crypt/pinentry: Restructure dependencies in 0.9.6-r4
9
10 Package-Manager: portage-2.2.20.1
11
12 app-crypt/pinentry/pinentry-0.9.6-r4.ebuild | 101 ++++++++++++++++++++++++++++
13 1 file changed, 101 insertions(+)
14
15 diff --git a/app-crypt/pinentry/pinentry-0.9.6-r4.ebuild b/app-crypt/pinentry/pinentry-0.9.6-r4.ebuild
16 new file mode 100644
17 index 0000000..20fc85f
18 --- /dev/null
19 +++ b/app-crypt/pinentry/pinentry-0.9.6-r4.ebuild
20 @@ -0,0 +1,101 @@
21 +# Copyright 1999-2015 Gentoo Foundation
22 +# Distributed under the terms of the GNU General Public License v2
23 +# $Id$
24 +
25 +EAPI=5
26 +
27 +inherit autotools qmake-utils multilib eutils flag-o-matic toolchain-funcs
28 +
29 +DESCRIPTION="Collection of simple PIN or passphrase entry dialogs which utilize the Assuan protocol"
30 +HOMEPAGE="http://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 ~amd64-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~x86-interix ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
36 +IUSE="emacs gtk ncurses qt4 caps gnome-keyring static"
37 +
38 +CDEPEND="
39 + >=dev-libs/libgpg-error-1.17
40 + >=dev-libs/libassuan-2
41 + >=dev-libs/libgcrypt-1.6.3
42 + ncurses? ( sys-libs/ncurses:0= )
43 + gtk? ( x11-libs/gtk+:2 )
44 + qt4? ( >=dev-qt/qtgui-4.4.1:4 )
45 + caps? ( sys-libs/libcap )
46 + static? ( >=sys-libs/ncurses-5.7-r5:0=[static-libs,-gpm] )
47 + app-eselect/eselect-pinentry
48 + gnome-keyring? ( app-crypt/libsecret )
49 +"
50 +
51 +DEPEND="${CDEPEND}
52 + sys-devel/gettext
53 + virtual/pkgconfig
54 +"
55 +
56 +RDEPEND="
57 + ${CDEPEND}
58 + gnome-keyring? ( app-crypt/gcr )
59 +"
60 +
61 +REQUIRED_USE="
62 + || ( ncurses gtk qt4 )
63 + gtk? ( !static )
64 + qt4? ( !static )
65 + static? ( ncurses )
66 +"
67 +
68 +DOCS=( AUTHORS ChangeLog NEWS README THANKS TODO )
69 +
70 +src_prepare() {
71 + epatch "${FILESDIR}/${PN}-0.8.2-ncurses.patch"
72 + epatch "${FILESDIR}/${P}-Remove-detection-of-Qt5.patch"
73 + eautoreconf
74 +}
75 +
76 +src_configure() {
77 + use static && append-ldflags -static
78 + [[ "$(gcc-major-version)" -ge 5 ]] && append-cxxflags -std=gnu++11
79 +
80 + # Issues finding qt on multilib systems
81 + export QTLIB="${QTDIR}/$(get_libdir)"
82 +
83 + econf \
84 + --enable-pinentry-tty \
85 + $(use_enable emacs pinentry-emacs) \
86 + $(use_enable gtk pinentry-gtk2) \
87 + $(use_enable ncurses pinentry-curses) \
88 + $(use_enable ncurses fallback-curses) \
89 + $(use_enable qt4 pinentry-qt) \
90 + $(use_with caps libcap) \
91 + $(use_enable gnome-keyring libsecret) \
92 + $(use_enable gnome-keyring pinentry-gnome3) \
93 + MOC="$(qt4_get_bindir)"/moc
94 +}
95 +
96 +src_install() {
97 + default
98 + rm -f "${ED}"/usr/bin/pinentry || die
99 +
100 + if use_enable qt4; then
101 + dosym pinentry-qt /usr/bin/pinentry-qt4
102 + fi
103 +}
104 +
105 +pkg_postinst() {
106 + if ! has_version 'app-crypt/pinentry' || has_version '<app-crypt/pinentry-0.7.3'; then
107 + elog "We no longer install pinentry-curses and pinentry-qt SUID root by default."
108 + elog "Linux kernels >=2.6.9 support memory locking for unprivileged processes."
109 + elog "The soft resource limit for memory locking specifies the limit an"
110 + elog "unprivileged process may lock into memory. You can also use POSIX"
111 + elog "capabilities to allow pinentry to lock memory. To do so activate the caps"
112 + elog "USE flag and add the CAP_IPC_LOCK capability to the permitted set of"
113 + elog "your users."
114 + fi
115 +
116 + eselect pinentry update ifunset
117 +}
118 +
119 +pkg_postrm() {
120 + eselect pinentry update ifunset
121 +}