# $Id: $ PortSystem 1.0 name gnupg12 version 1.2.7 platforms darwin categories mail description GNU Privacy Guard 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 \ RFC2440 (OpenPGP) compliant application. PGP, on which \ OpenPGP is based, was originally developed by Philip \ Zimmermann in the early 1990s. homepage http://www.gnupg.org/ maintainers dms@freeshell.org master_sites ftp://ftp.gnupg.org/gcrypt/gnupg/:gnupg distname gnupg-${version} use_bzip2 yes distfiles [suffix ${distname}]:gnupg checksums [suffix ${distname}] \ md5 26f19692a9b8a870e3f156d7281f662c \ sha1 c8e47066e5bb61d74f4001b51117bf3a56a7dd3b patch { reinplace s/PACKAGE='gnupg/&12/ \ ${worksrcpath}/configure } configure.args --infodir=${prefix}/share/info \ --mandir=${prefix}/share/man \ --program-transform-name='s/pg/&12/' \ --enable-static-rnd=linux \ --disable-nls \ --with-libiconv-prefix=${prefix} \ --with-zlib=${prefix} \ --without-bzip2 test.run yes test.dir ${worksrcpath}/checks test.target check post-destroot { file rename ${destroot}${prefix}/share/info/gpg.info \ ${destroot}${prefix}/share/info/gpg12.info file rename \ ${destroot}${prefix}/share/info/gpgv.info \ ${destroot}${prefix}/share/info/gpg12v.info } variant nls { post-patch { file rename ${worksrcpath}/po/gnupg.pot \ ${worksrcpath}/po/gnupg12.pot } configure.args-delete --disable-nls configure.args-append --enable-nls \ --with-libintl-prefix=${prefix} post-destroot { file delete ${destroot}${prefix}/lib/charset.alias \ ${destroot}${prefix}/share/locale/locale.alias } } variant bzip2 { depends_lib-append lib:libbz2.:bzip2 configure.args-delete --without-bzip2 configure.args-append --with-bzip2=${prefix} } variant tiger { configure.args-append --enable-tiger } variant newtiger { configure.args-append --enable-new-tiger } variant sha512 { configure.args-append --enable-sha512 } variant memoryguard { configure.args-append --enable-m-guard } variant idea { master_sites-append http://www.gnupg.dk/contrib-dk/:idea distfiles-append idea.c.gz:idea checksums-append idea.c.gz md5 9dc3bc086824a8c7a331f35e09a3e57f \ sha1 82fded4ec31b97b3b2dd22741880b67cfee40f84 extract.only [suffix ${distname}] post-extract { system "gzip -cd ${distpath}/idea.c.gz \ > ${worksrcpath}/cipher/idea.c" } }