# Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit java-pkg S=${WORKDIR}/${PN}-0.9b4 DESCRIPTION="PureTLS is a free Java-only implementation of the SSLv3 and TLSv1 (RFC2246) protocols" HOMEPAGE="http://www.rtfm.com/puretls/" SRC_URI="http://www.rtfm.com/cgi-bin/distrib.cgi?puretls-0.9b4.tar.gz http://www.rtfm.com/cgi-bin/distrib.cgi?Cryptix-asn1-20011119.tar.gz http://www.cryptix.org/dist/cryptix32-20001002-r3.2.0.zip" LICENSE="Claymore-puretls" SLOT= KEYWORDS="~x86" IUSE="doc" DEPEND=">=virtual/jdk-1.4" RDEPEND=">=virtual/jdk-1.4" src_unpack() { unpack "distrib.cgi?puretls-0.9b4.tar.gz" mkdir ${S}/cryptix cd ${S}/cryptix unpack "cryptix32-20001002-r3.2.0.zip" unpack "distrib.cgi?Cryptix-asn1-20011119.tar.gz" ls cd "${S}" echo "jdk.version=1.4" >> build.properties echo "cryptix.jar=${S}/cryptix/cryptix32.jar" >> build.properties echo "cryptix-asn1.jar=${S}/cryptix/Cryptix-asn1-20011119/cryptix-asn1.jar" >> build.properties } src_compile() { ant || die "Unable to compile" } src_install () { java-pkg_dojar ${S}/build/${PN}.jar dodoc ChangeLog CREDITS INSTALL LICENSE README use doc && dohtml -r ${S}/build/doc/* }