# $Id: Portfile 57375 2009-09-10 08:16:41Z ryandesign@macports.org $

PortSystem 1.0

name			gnu-crypto
version			2.0.1
categories		java security
platforms		darwin
maintainers		mww
description		cryptographic primitives and tools for Java
long_description	GNU Crypto, part of the GNU project, released under the \
				aegis of GNU, aims at providing free, versatile, high-quality, \
				and provably correct implementations of cryptographic \
				primitives and tools in the Java programming language for use \
				by programmers and end-users.

homepage		http://www.gnu.org/software/gnu-crypto/
master_sites	gnupg
checksums		md5 39ac686b8f7ecfb95de7d58c85b8935b
use_bzip2		yes

depends_build	port:jikes
depends_lib		port:gnu-classpath

configure.env	BOOTCLASSPATH=${prefix}/share/java/glibj.jar
configure.args	--infodir=${prefix}/share/info \
				--datadir=${prefix}/share/java \
				--with-jce=yes
#JAVAC=${prefix}/bin/jikes \
build.env       ${configure.env}

livecheck.type  regex
livecheck.url   http://mirrors.rootmode.com/ftp.gnupg.org/${name}/?O=D
livecheck.regex ${name}-(\\d+\\.\\d+\\.\\d+)${extract.suffix}
