# -*- 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$ PortSystem 1.0 name gnupg21 version 2.1.6 categories mail security maintainers jann ionic openmaintainer license GPL-3+ installs_libs no description GNU pretty-good-privacy package 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 conflicts gnupg2 gnupg gpg-agent dirmngr distname gnupg-${version} master_sites gnupg:gnupg use_bzip2 yes checksums rmd160 42db712fe0669caf246dbf46aca429b392614e2b \ sha256 5e599ad542199f3bd733eed2b88a539d1b4c3beda2dbab0ff69f1896f52e92fd \ sha1 9e8157b3386da04760657ce3117fc4dc570c57c5 notes "GPG 2.1 uses a new format for its key files. Therefore you cannot\ use it together with any earlier version of GPG. Neither can you easily go\ back to an older version as the old version cannot read the new format." # Prevent opportunistic linking configure.args --without-adns platform darwin { if {![variant_isset pinentry] && ![variant_isset pinentry_mac]} { # Automatically switch between pinentry and pinentry-mac, with pinentry-mac being # preferred. # 10.7 and below are not supported by pinentry-mac, though, and will default to # pinentry. Just like pure darwin without OS X will. if {${os.subplatform} ne "macosx" || ${xcodeversion} eq "none" || [vercmp ${xcodeversion} {5.0}] < 0 || ${os.major} < 12 || ([catch {registry_active pinentry}] && ![catch {registry_active pinentry-mac}])} { default_variants-append +pinentry } else { default_variants-append +pinentry_mac } } } depends_lib port:libiconv \ port:gettext \ port:zlib \ port:bzip2 \ port:bison \ port:libassuan \ port:libksba \ port:libgcrypt \ port:libgpg-error \ port:openldap \ port:readline \ port:curl \ port:libusb-compat \ port:npth variant pinentry conflicts pinentry_mac description {Handle user input via pinentry.} { depends_lib-append port:pinentry configure.args-append --with-pinentry-pgm=${prefix}/bin/pinentry } variant pinentry_mac conflicts pinentry description {Handle user input via pinentry-mac. Only compatible with OS X 10.8+.} { depends_lib-append port:pinentry-mac configure.args-append --with-pinentry-pgm=${applications_dir}/pinentry-mac.app/Contents/MacOS/pinentry-mac } test.run yes test.dir ${worksrcpath}/tests test.target check livecheck.type regex livecheck.url ftp://ftp.gnupg.org/gcrypt/gnupg/ livecheck.regex gnupg-(2\\.1\\.\\d+)