# $Id: Portfile,v 1.6 2005/11/05 13:32:30 yeled Exp $

PortSystem	1.0
name		gpg-agent
version		1.9.10
revision	1
categories	security
maintainers	yeled@opendarwin.org
description	GPG key agent
long_description	gpg-agent is a key management agent similar \
			in function to ssh-agent.
homepage	http://www.gnupg.org/
platforms	darwin
distname	gnupg-${version}
master_sites	ftp://ftp.gnupg.org/gcrypt/alpha/gnupg/ \
		ftp://ftp.freenet.de/pub/ftp.gnupg.org/gcrypt/alpha/gnupg/
checksums	md5 d923cfe0921898fbeb66374a0e32ddc6

configure.args	--mandir=${prefix}/share/man \
		--infodir=${prefix}/share/info \
		--with-pinentry-pgm=${prefix}/bin/pinentry \
		--enable-agent-only

depends_lib	port:gettext port:libiconv port:zlib port:bison \
	port:libgpg-error port:libassuan port:libgcrypt port:libksba \
	port:pth port:pinentry 

destroot.dir	${worksrcpath}/agent

test.run	yes
test.dir	${worksrcpath}/checks
test.target 	check

variant darwin {
	configure.args-append --disable-asm --disable-dynload
}

variant sunos {
	configure.args-append --disable-asm --disable-dynload
}

post-destroot   {
	file delete -force ${destroot}${prefix}/share/info/dir
}
