Magellan Linux

Annotation of /trunk/extras/pinentry/pinentry-0.8.1-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 7508 - (hide annotations) (download)
Mon Mar 28 18:33:58 2011 UTC (13 years, 1 month ago) by niro
File size: 1461 byte(s)
auto added: ver bump to 0.8.1-r1
1 niro 7505 # $Id$
2    
3     PNAME="pinentry"
4     PVER="0.8.1"
5     PBUILD="r1"
6    
7     PCATEGORIE="app-crypt"
8     STATE="unstable"
9    
10     DESCRIPTION="A collection of simple PIN or passphrase entry dialogs which utilize the Assuan protocol."
11     HOMEPAGE="http://www.gnupg.org/"
12    
13     DEPEND=">= sys-libs/ncurses-5.7
14     >= sys-libs/libcap-2.17"
15    
16 niro 7508 SDEPEND=">= x11-libs/qt4-4.6
17 niro 7505 >= x11-libs/gtk2+-2.18"
18    
19     SRCFILE="${PNAME}-${PVER}.tar.gz"
20     SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
21    
22 niro 7507 sminclude mtools qt4
23 niro 7505
24     SRC_URI=(
25     #ftp://ftp.gnupg.org/gcrypt/${PNAME}/${SRCFILE}
26     ftp://ftp.franken.de/pub/crypt/mirror/ftp.gnupg.org/gcrypt/${PNAME}/${SRCFILE}
27     mirror://${PNAME}/${SRCFILE}
28     )
29    
30     #UP2DATE="updatecmd ftp://ftp.gnupg.org/gcrypt/${PNAME}/ | lasttarball gz"
31     UP2DATE="updatecmd ftp://ftp.franken.de/pub/crypt/mirror/ftp.gnupg.org/gcrypt/${PNAME}/ | lasttarball gz"
32    
33 niro 7507 src_prepare()
34     {
35     munpack ${SRCFILE} || die
36     cd ${SRCDIR}
37    
38     local i
39     for i in qt4/*.moc
40     do
41     ${QTDIR}/bin/moc ${i/.moc/.h} > ${i} || die
42     done
43     }
44    
45 niro 7505 src_compile()
46     {
47     cd ${SRCDIR}
48    
49     mconfigure \
50     --libexecdir=/usr/$(mlibdir)/${PNAME} \
51 niro 7508 --disable-pinentry-gtk \
52 niro 7505 --enable-pinentry-gtk2 \
53 niro 7508 --disable-pinentry-qt \
54 niro 7505 --enable-pinentry-qt4 \
55     --enable-fallback-curses \
56     || die
57    
58     mmake || die
59     }
60    
61     src_install()
62     {
63     cd ${SRCDIR}
64     mmake DESTDIR=${BINDIR} install || die
65    
66     # default is the gkt2 backend
67     rm ${BINDIR}/usr/bin/pinentry || die
68     mlink pinentry-gtk-2 /usr/bin/pinentry || die
69    
70     minstalldocs ABOUT-NLS AUTHORS ChangeLog COPYING NEWS README* TODO VERSION || die
71     }