Magellan Linux

Contents of /trunk/extras/gnupg/gnupg-2.1.3-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 24793 - (show annotations) (download)
Sat Apr 18 10:15:25 2015 UTC (9 years, 1 month ago) by niro
File size: 1814 byte(s)
-fixed build without ldap
1 # $Id$
2
3 PNAME="gnupg"
4 PVER="2.1.3"
5 PBUILD="r1"
6
7 PCAT="app-crypt"
8
9 DESCRIPTION="GnuPG is a complete and free replacement for PGP."
10 HOMEPAGE="http://www.gnupg.org/"
11
12 DEPEND=">= virtual/glibc
13 >= virtual/mta
14 >= sys-libs/readline-6.3
15 >= app-arch/bzip2-1.0.6
16 >= net-misc/curl-7.21
17 >= dev-libs/pth-2
18 >= app-crypt/libgpg-error-1.12
19 >= app-crypt/libgcrypt-1.6
20 >= app-crypt/libksba-1.3
21 >= app-crypt/libassuan-2
22 >= app-crypt/pinentry-0.9
23 >= app-crypt/npth-1.1"
24
25 SDEPEND=">= sys-dev/gettext-0.18
26 >= sys-apps/texinfo-5"
27
28 SRCFILE="${PNAME}-${PVER}.tar.bz2"
29 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
30
31 sminclude mbuild mtools
32 msetfeature "!check"
33
34 SRC_URI=(
35 #ftp://ftp.gnupg.org/gcrypt/${PNAME}/${SRCFILE}
36 ftp://ftp.franken.de/pub/crypt/mirror/ftp.gnupg.org/gcrypt/${PNAME}/${SRCFILE}
37 mirror://${PNAME}/${SRCFILE}
38 mirror://${PNAME}/${PNAME}-${PVER}-dirmngr-no-ldap.patch
39 )
40
41 UP2DATE="updatecmd http://www.gnupg.org/download/index.en.html | grep ${PNAME}-2 |lasttarball"
42
43 src_prepare()
44 {
45 munpack ${SRCFILE} || die
46 cd ${SRCDIR}
47
48 # fix ldap deps
49 mpatch ${PNAME}-${PVER}-dirmngr-no-ldap.patch || die
50 }
51
52 src_compile()
53 {
54 cd ${SRCDIR}
55
56 mconfigure \
57 --libexecdir=/usr/$(mlibdir)/${PNAME} \
58 --enable-nls \
59 --enable-symcryptrun \
60 --enable-gpg \
61 --enable-gpgsm \
62 --enable-agent \
63 --enable-bzip2 \
64 --enable-scdaemon \
65 --disable-ldap \
66 --disable-capabilities \
67 --without-ldap \
68 || die
69
70 mmake || die
71 }
72
73 src_install()
74 {
75 cd ${SRCDIR}
76 mmake DESTDIR=${BINDIR} install || die
77
78 # fix missing symlinks and man-pages
79 mlink gpg2 /usr/bin/gpg || die
80 mlink gpgv2 /usr/bin/gpgv || die
81 echo ".so man1/gpg2.1" > ${BINDIR}/usr/share/man/man1/gpg.1 || die
82 echo ".so man1/gpgv2.1" > ${BINDIR}/usr/share/man/man1/gpgv.1 || die
83
84 minstalldocs ABOUT-NLS AUTHORS ChangeLog COPYING NEWS README* TODO VERSION || die
85 }