# -*- 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 gnupg version 1.4.21 revision 0 categories mail security license GPL-3+ installs_libs no maintainers ionic openmaintainer description GNU Privacy Guard version 1.4 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 master_sites gnupg conflicts gnupg21 use_bzip2 yes checksums ${distname}${extract.suffix} rmd160 082b2759497ea470093bf856d72d5430711b6db9 \ sha256 6b47a3100c857dcab3c60e6152e56a997f2c7862c1b8b2b25adf3884a1ae2276 configure.args --infodir=${prefix}/share/info \ --disable-asm \ --with-libiconv-prefix=${prefix} \ --with-libintl-prefix=${prefix} \ --with-zlib=${prefix} \ --with-bzip2=${prefix} \ --with-libusb=${prefix} \ --with-ldap=${prefix} \ --with-libcurl=${prefix} depends_lib port:libiconv \ port:gettext \ port:readline \ port:zlib \ port:bzip2 \ port:libusb-compat \ port:openldap \ port:curl test.run yes test.dir ${worksrcpath}/checks test.target check # clang defaults to c99, and gnupg doesn't play nicely if {[string match *clang* ${configure.compiler}]} { configure.cflags-append -std=gnu89 } variant idea description {Add support for the patented IDEA algorithm} { depends_extract-append bin:gunzip:gzip master_sites-append http://www.gnupg.dk/contrib-dk:ideasource distfiles-append idea.c.gz:ideasource checksums-append \ idea.c.gz md5 9dc3bc086824a8c7a331f35e09a3e57f \ sha1 82fded4ec31b97b3b2dd22741880b67cfee40f84 \ rmd160 e35be5a031d10d52341ac5f029d28f811edd908d extract.only ${distname}${extract.suffix} post-extract { move ${worksrcpath}/cipher/idea.c ${worksrcpath}/cipher/idea.c.orig system -W "${worksrcpath}/cipher" "gunzip -c < ${distpath}/idea.c.gz > idea.c" } } platform darwin { patchfiles-append patch-gpg_agent-launchd.diff } platform sunos { configure.args-delete --disable-asm } livecheck.type regex livecheck.url https://www.gnupg.org/ftp/gcrypt/gnupg/ livecheck.regex ${name}-(1\\.\\d+\\.\\d+)