Contents of /trunk/extras/gnupg/gnupg-2.2.12-r2.smage2
Parent Directory | Revision Log
Revision 31987 -
(show annotations)
(download)
Fri Feb 8 12:46:05 2019 UTC (5 years, 7 months ago) by niro
File size: 2169 byte(s)
Fri Feb 8 12:46:05 2019 UTC (5 years, 7 months ago) by niro
File size: 2169 byte(s)
-readline-8.0 rebuild
1 | # $Id$ |
2 | |
3 | PNAME="gnupg" |
4 | PVER="2.2.12" |
5 | PBUILD="r2" |
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-8.0 |
15 | >= app-arch/bzip2-1.0.6 |
16 | >= net-misc/curl-7.62 |
17 | >= dev-libs/pth-2 |
18 | >= app-crypt/libgpg-error-1.32 |
19 | >= app-crypt/libgcrypt-1.8 |
20 | >= app-crypt/libksba-1.3.5 |
21 | >= app-crypt/libassuan-2.5.2 |
22 | >= app-crypt/pinentry-1.1 |
23 | >= app-crypt/npth-1.6" |
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 multilib mbuild mtools systemd |
32 | msetfeature "!check" |
33 | |
34 | SRC_URI=( |
35 | https://gnupg.org/ftp/gcrypt/${PNAME}/${SRCFILE} |
36 | #ftp://ftp.gnupg.org/gcrypt/${PNAME}/${SRCFILE} |
37 | #ftp://ftp.franken.de/pub/crypt/mirror/ftp.gnupg.org/gcrypt/${PNAME}/${SRCFILE} |
38 | mirror://${PNAME}/${SRCFILE} |
39 | ) |
40 | |
41 | UP2DATE="updatecmd http://www.gnupg.org/download/index.en.html | grep ${PNAME}-2 | highesttarball" |
42 | |
43 | src_compile() |
44 | { |
45 | mconfigure \ |
46 | --libexecdir=/usr/'$(mlibdir)'/${PNAME} \ |
47 | --enable-nls \ |
48 | --enable-symcryptrun \ |
49 | --enable-gpg \ |
50 | --enable-gpgsm \ |
51 | --enable-agent \ |
52 | --enable-bzip2 \ |
53 | --enable-scdaemon \ |
54 | --disable-ldap \ |
55 | --disable-capabilities \ |
56 | --without-ldap \ |
57 | || die |
58 | |
59 | mmake || die |
60 | } |
61 | |
62 | src_install() |
63 | { |
64 | mmake DESTDIR=${BINDIR} install || die |
65 | |
66 | # fix missing symlinks and man-pages |
67 | mlink gpg /usr/bin/gpg2 || die |
68 | mlink gpgv /usr/bin/gpgv2 || die |
69 | echo ".so man1/gpg.1" > ${BINDIR}/usr/share/man/man1/gpg2.1 || die |
70 | echo ".so man1/gpgv.1" > ${BINDIR}/usr/share/man/man1/gpgv2.1 || die |
71 | |
72 | # install systemd user services |
73 | minstalldir $(mget-systemd-user-unit-dir) || die |
74 | local svc svcdir |
75 | svcdir="${SRCDIR}" |
76 | if [[ ${MULTILIB_BUILD} = true ]] |
77 | then |
78 | [[ ${ARCH} = x86_64 ]] && svcdir="${SRCDIR}-"$(MULTILIB_VERBOSE=false only-m64 echo $(mabi)) |
79 | [[ ${ARCH} = i*86 ]] && svcdir="${SRCDIR}-"$(MULTILIB_VERBOSE=false only-m32 echo $(mabi)) |
80 | fi |
81 | |
82 | for svc in ${svcdir}/doc/examples/systemd-user/*.{socket,service} |
83 | do |
84 | minstallfile ${svc} $(mget-systemd-user-unit-dir)/ || die |
85 | done |
86 | |
87 | minstalldocs ABOUT-NLS AUTHORS ChangeLog COPYING NEWS README* TODO VERSION || die |
88 | } |