Gentoo Archives: gentoo-commits

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