a project to simplify installation of open source software
on Mac OS X and Darwin
# $Id: Portfile 21728 2007-02-04 00:00:33Z markd@macports.org $
PortSystem 1.0
name gnupg
version 1.4.6
categories mail security
maintainers waqar@macports.org
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 RFC2440 (OpenPGP) \
compliant application.
homepage http://www.gnupg.org
platforms darwin freebsd sunos
master_sites http://ftp.gnupg.org/gcrypt/gnupg/ \
ftp://ftp.gnupg.org/gcrypt/gnupg/ \
ftp://ftp.planetmirror.com/pub/gnupg/ \
ftp://gd.tuwien.ac.at/privacy/gnupg/gnupg/ \
ftp://ftp.jyu.fi/pub/crypt/gcrypt/gnupg/ \
ftp://ftp.freenet.de/pub/ftp.gnupg.org/gcrypt/gnupg/
use_bzip2 yes
checksums ${distfiles} md5 ec8dc6df1bd83c1d7e1a1ea10653f9f4 \
${distfiles} sha1 9cbbef5c94f793867ff3ae4941816962311a0563
configure.args --mandir=${prefix}/share/man \
--infodir=${prefix}/share/info \
--disable-asm --disable-dynload \
--with-libiconv-prefix=${prefix} \
--with-libintl-prefix=${prefix} \
--with-zlib=${prefix} \
--with-bzip2=${prefix}
depends_lib port:libiconv \
port:gettext \
port:zlib \
port:bzip2
test.run yes
test.dir ${worksrcpath}/checks
test.target check
variant idea {
patch_sites-append http://www.gnupg.dk/contrib-dk
patchfiles idea.c.gz
checksums-append \
idea.c.gz md5 9dc3bc086824a8c7a331f35e09a3e57f
patch.dir ${worksrcpath}/cipher
patch.cmd cat
patch.pre_args > idea.c
}
platform darwin 7 {
depends_lib-append port:gnutar
configure.args-append --with-tar=${prefix}/bin/gnutar
}
platform sunos {
configure.args-delete --disable-asm --disable-dynload
}
post-destroot {
file delete -force ${destroot}${prefix}/share/info/dir \
${destroot}${prefix}/share/locale/locale.alias \
${destroot}${prefix}/lib/charset.alias
}