# -*- 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 # $Id: Portfile 149373 2016-06-15 19:55:22Z ionic@macports.org $ PortSystem 1.0 # When updating gnupg2, update gpg-agent also if applicable. name gnupg2 version 2.0.30 revision 0 categories mail security maintainers ionic openmaintainer license GPL-3+ installs_libs no description GNU Privacy Guard version 2.0 long_description GnuPG is a complete and free replacement for PGP. Because \ it does not use the patented IDEA algorithm, it can be used \ without any restrictions. GnuPG is a RFC4880 (OpenPGP) \ compliant application. homepage http://www.gnupg.org platforms darwin freebsd sunos use_bzip2 yes distname gnupg-${version} master_sites gnupg:gnupg conflicts gnupg21 use_bzip2 yes checksums rmd160 7d682c3e0e1c188d026519b0511ecde6a0cc6bd7 \ sha256 e329785a4f366ba5d72c2c678a7e388b0892ac8440c2f4e6810042123c235d71 # gpg-agent is built separately from the rest of gnupg2 to enable gnupg 1.x # users to use gpg-agent as well. # gnupg2, however, requires gpg-agent to run, and so gnupg2 depends on gpg-agent. configure.args --disable-agent \ --without-adns depends_lib port:libiconv \ port:gettext \ port:zlib \ port:bzip2 \ port:bison \ port:gpg-agent \ port:libassuan \ port:libksba \ port:libgcrypt \ port:libgpg-error \ port:openldap \ port:pth \ port:readline \ port:curl \ port:libusb-compat patchfiles patch-common-homedir.c.diff \ patch-configure.diff \ patch-tests__openpgp__Makefile.in.diff # Recent clang versions include the system stdint.h header # and we don't need quirks for "esoteric" systems, so # we simply include the system header. patchfiles-append patch-gl_stdint__h.diff platform darwin { patchfiles-append patch-gpg_agent-launchd.diff } post-patch { reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/common/homedir.c } post-destroot { delete ${destroot}${prefix}/share/man/man1/gpg-zip.1 } test.run yes test.dir ${worksrcpath}/tests test.target check # See also the post-patch above. # Apparently we have no way of forcing gnupg2 to build without DirMngr support, # so we have to just hope we don't run into any problems. variant dirmngr description {Enable the use of DirMngr by gpgsm} { depends_lib-append port:dirmngr } livecheck.type regex livecheck.url ftp://ftp.gnupg.org/gcrypt/gnupg/ livecheck.regex gnupg-(2\\.0\\.\\d+)