source: trunk/dports/mail/gnupg2/Portfile

Last change on this file was 149373, checked in by ionic@…, 17 months ago

gnupg{,2,21}: fix description. Fixes: #51593.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.1 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 149373 2016-06-15 19:55:22Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6# When updating gnupg2, update gpg-agent also if applicable.
7name                gnupg2
8version             2.0.30
9revision            0
10categories          mail security
11maintainers         ionic openmaintainer
12license             GPL-3+
13installs_libs       no
14
15description         GNU Privacy Guard version 2.0
16long_description    GnuPG is a complete and free replacement for PGP. Because       \
17                    it does not use the patented IDEA algorithm, it can be used     \
18                    without any restrictions. GnuPG is a RFC4880 (OpenPGP)          \
19                    compliant application.
20homepage            http://www.gnupg.org
21platforms           darwin freebsd sunos
22use_bzip2           yes
23distname            gnupg-${version}
24master_sites        gnupg:gnupg
25conflicts           gnupg21
26
27use_bzip2           yes
28
29checksums           rmd160  7d682c3e0e1c188d026519b0511ecde6a0cc6bd7 \
30                    sha256  e329785a4f366ba5d72c2c678a7e388b0892ac8440c2f4e6810042123c235d71
31
32# gpg-agent is built separately from the rest of gnupg2 to enable gnupg 1.x
33# users to use gpg-agent as well.
34# gnupg2, however, requires gpg-agent to run, and so gnupg2 depends on gpg-agent.
35configure.args      --disable-agent \
36                    --without-adns
37
38depends_lib         port:libiconv           \
39                    port:gettext            \
40                    port:zlib               \
41                    port:bzip2              \
42                    port:bison              \
43                    port:gpg-agent          \
44                    port:libassuan          \
45                    port:libksba            \
46                    port:libgcrypt          \
47                    port:libgpg-error       \
48                    port:openldap           \
49                    port:pth                \
50                    port:readline           \
51                    port:curl               \
52                    port:libusb-compat
53
54patchfiles          patch-common-homedir.c.diff \
55                    patch-configure.diff \
56                    patch-tests__openpgp__Makefile.in.diff
57
58# Recent clang versions include the system stdint.h header
59# and we don't need quirks for "esoteric" systems, so
60# we simply include the system header.
61patchfiles-append   patch-gl_stdint__h.diff
62
63platform darwin {
64    patchfiles-append   patch-gpg_agent-launchd.diff
65}
66
67post-patch {
68    reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/common/homedir.c
69}
70
71post-destroot {
72    delete ${destroot}${prefix}/share/man/man1/gpg-zip.1
73}
74
75test.run            yes
76test.dir            ${worksrcpath}/tests
77test.target         check
78
79# See also the post-patch above.
80# Apparently we have no way of forcing gnupg2 to build without DirMngr support,
81# so we have to just hope we don't run into any problems.
82variant dirmngr description {Enable the use of DirMngr by gpgsm} {
83    depends_lib-append  port:dirmngr
84}
85
86livecheck.type      regex
87livecheck.url       ftp://ftp.gnupg.org/gcrypt/gnupg/
88livecheck.regex     gnupg-(2\\.0\\.\\d+)
Note: See TracBrowser for help on using the repository browser.