blob: a136f66d00458a91198c3519a634c312edb353d7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=5
inherit multilib eutils flag-o-matic
MY_PN=${PN/-qt4}
MY_P=${P/-qt4}
DESCRIPTION="Qt4 frontend for pinentry"
HOMEPAGE="http://gnupg.org/aegypten2/index.html"
SRC_URI="mirror://gnupg/${MY_PN}/${MY_P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~arm ~amd64 ~x86"
IUSE="caps"
RDEPEND="
~app-crypt/pinentry-base-${PV}
!app-crypt/pinentry-base[static]
caps? ( sys-libs/libcap )
>=dev-qt/qtgui-4.4.1:4
"
DEPEND="${RDEPEND}
virtual/pkgconfig
"
S=${WORKDIR}/${MY_P}
src_prepare() {
#if use qt4; then
local f
for f in qt4/*.moc; do
"${EPREFIX}"/usr/bin/moc ${f/.moc/.h} > ${f} || die
done
#fi
}
src_configure() {
# Issues finding qt on multilib systems
export QTLIB="${QTDIR}/$(get_libdir)"
econf \
--disable-pinentry-tty \
--disable-pinentry-gtk2 \
--disable-pinentry-curses \
--disable-fallback-curses \
--enable-pinentry-qt4 \
$(use_with caps libcap)
}
src_compile() {
emake AR="$(tc-getAR)"
}
src_install() {
cd qt4 && emake DESTDIR="${D}" install
}
pkg_postinst() {
eselect pinentry set pinentry-qt4
# eselect pinentry update ifunset
}
pkg_postrm() {
eselect pinentry update ifunset
}
|