Gentoo Archives: gentoo-commits

From: "Christian Faulhammer (fauli)" <fauli@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-crypt/pinentry: ChangeLog pinentry-0.8.0.ebuild
Date: Mon, 26 Apr 2010 07:33:44
Message-Id: 20100426073342.4D27C2C04C@corvid.gentoo.org
1 fauli 10/04/26 07:33:42
2
3 Modified: ChangeLog
4 Added: pinentry-0.8.0.ebuild
5 Log:
6 version bump for bug 308695
7 (Portage version: 2.1.8.3/cvs/Linux i686)
8
9 Revision Changes Path
10 1.99 app-crypt/pinentry/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-crypt/pinentry/ChangeLog?rev=1.99&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-crypt/pinentry/ChangeLog?rev=1.99&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-crypt/pinentry/ChangeLog?r1=1.98&r2=1.99
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/app-crypt/pinentry/ChangeLog,v
19 retrieving revision 1.98
20 retrieving revision 1.99
21 diff -u -r1.98 -r1.99
22 --- ChangeLog 1 Apr 2010 08:32:48 -0000 1.98
23 +++ ChangeLog 26 Apr 2010 07:33:41 -0000 1.99
24 @@ -1,6 +1,12 @@
25 # ChangeLog for app-crypt/pinentry
26 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/app-crypt/pinentry/ChangeLog,v 1.98 2010/04/01 08:32:48 abcd Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/app-crypt/pinentry/ChangeLog,v 1.99 2010/04/26 07:33:41 fauli Exp $
29 +
30 +*pinentry-0.8.0 (26 Apr 2010)
31 +
32 + 26 Apr 2010; Christian Faulhammer <fauli@g.o>
33 + +pinentry-0.8.0.ebuild:
34 + version bump for bug 308695
35
36 01 Apr 2010; Jonathan Callen <abcd@g.o> pinentry-0.7.6.ebuild:
37 Bump to EAPI=3, add prefix keywords
38
39
40
41 1.1 app-crypt/pinentry/pinentry-0.8.0.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-crypt/pinentry/pinentry-0.8.0.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-crypt/pinentry/pinentry-0.8.0.ebuild?rev=1.1&content-type=text/plain
45
46 Index: pinentry-0.8.0.ebuild
47 ===================================================================
48 # Copyright 1999-2010 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/app-crypt/pinentry/pinentry-0.8.0.ebuild,v 1.1 2010/04/26 07:33:41 fauli Exp $
51
52 EAPI=3
53
54 inherit multilib eutils flag-o-matic
55
56 DESCRIPTION="Collection of simple PIN or passphrase entry dialogs which utilize the Assuan protocol"
57 HOMEPAGE="http://www.gnupg.org/aegypten/"
58 SRC_URI="mirror://gnupg/${PN}/${P}.tar.gz"
59
60 LICENSE="GPL-2"
61 SLOT="0"
62 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~x64-freebsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris"
63 IUSE="gtk ncurses qt4 caps static"
64
65 DEPEND="static? ( sys-libs/ncurses )
66 !static? (
67 gtk? ( x11-libs/gtk+:2 )
68 ncurses? ( sys-libs/ncurses )
69 qt4? ( >=x11-libs/qt-gui-4.4.1 )
70 !gtk? ( !qt4? ( !ncurses? ( sys-libs/ncurses ) ) )
71 )
72 caps? ( sys-libs/libcap )"
73 RDEPEND="${DEPEND}"
74
75 pkg_setup() {
76 use static && append-ldflags -static
77
78 if use static && { use gtk || use qt4; }; then
79 ewarn
80 ewarn "The static USE flag is only supported with the ncurses USE flags, disabling the gtk and qt4 USE flags."
81 ewarn
82 fi
83 }
84
85 src_prepare() {
86 epatch "${FILESDIR}/${PN}-0.7.5-grab.patch"
87
88 if use qt4; then
89 local file
90 for file in qt4/*.moc; do
91 "${EPREFIX}"/usr/bin/moc ${file/.moc/.h} > ${file} || die
92 done
93 fi
94 }
95
96 src_configure() {
97 local myconf=""
98
99 if ! { use qt4 || use gtk || use ncurses; }
100 then
101 myconf="--enable-pinentry-curses --enable-fallback-curses"
102 elif use static
103 then
104 myconf="--enable-pinentry-curses --enable-fallback-curses --disable-pinentry-gtk2 --disable-pinentry-qt --disable-pinentry-qt4"
105 fi
106
107 # Issues finding qt on multilib systems
108 export QTLIB="${QTDIR}/$(get_libdir)"
109
110 econf \
111 --disable-dependency-tracking \
112 --enable-maintainer-mode \
113 --disable-pinentry-gtk \
114 $(use_enable gtk pinentry-gtk2) \
115 --disable-pinentry-qt \
116 $(use_enable ncurses pinentry-curses) \
117 $(use_enable ncurses fallback-curses) \
118 $(use_enable qt4 pinentry-qt4) \
119 $(use_with caps libcap) \
120 ${myconf} || die
121 }
122
123 src_install() {
124 emake DESTDIR="${D}" install || die
125 dodoc AUTHORS ChangeLog NEWS README THANKS TODO || die
126 }
127
128 pkg_postinst() {
129 elog "We no longer install pinentry-curses and pinentry-qt SUID root by default."
130 elog "Linux kernels >=2.6.9 support memory locking for unprivileged processes."
131 elog "The soft resource limit for memory locking specifies the limit an"
132 elog "unprivileged process may lock into memory. You can also use POSIX"
133 elog "capabilities to allow pinentry to lock memory. To do so activate the caps"
134 elog "USE flag and add the CAP_IPC_LOCK capability to the permitted set of"
135 elog "your users."
136 }