# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/dev-util/jcvs/jcvs-5.4.2.ebuild,v 1.2 2004/11/15 02:15:53 mr_bones_ Exp $ inherit java-pkg DESCRIPTION="Java CVS client" HOMEPAGE="http://www.jcvs.org/" SRC_URI="http://www.jcvs.org/download/jcvs/jcvsii-${PV}.zip" LICENSE="LGPL-2.1" SLOT="0" KEYWORDS="~x86 ~ppc ~amd64" IUSE="doc" DEPEND=">=virtual/jdk-1.3 >=dev-java/ant-core-1.5 >=dev-java/sun-jaf-bin-1.0.2 >=dev-java/commons-logging-1.0.4 >=dev-java/j2ssh-0.2.7 >=dev-java/javahelp-bin-2 jikes? ( dev-java/jikes )" RDEPEND=">=virtual/jre-1.3 >=dev-java/sun-jaf-bin-1.0.2 >=dev-java/commons-logging-1.0.4 >=dev-java/j2ssh-0.2.7 >=dev-java/javahelp-bin-2" S="${WORKDIR}/jCVS-${PV}" src_unpack() { unpack ${A} cd ${S}/bin rm -f *.jar jars/*.jar cd jars java-pkg_jar-from sun-jaf-bin activation.jar java-pkg_jar-from commons-logging commons-logging.jar java-pkg_jar-from j2ssh j2ssh-common.jar java-pkg_jar-from j2ssh j2ssh-core.jar java-pkg_jar-from javahelp-bin jh.jar cd ${S} cp ${FILESDIR}/build.xml . cp ${FILESDIR}/MANIFEST.MF . } src_compile() { # not possible to compile the source code with jikes. ant jar || die "failed to build" } src_install() { java-pkg_dojar bin/jcvsii.jar echo "#!/bin/sh" > ${PN} echo "java -cp \$(java-config -p commons-logging,jcvs,sun-jaf-bin,j2ssh,javahelp-bin) com.ice.jcvsii.JCVS" >> ${PN} dobin ${PN} use doc && java-pkg_dohtml -r doc/api/* dodoc doc/lgpl.html doc/license.html doc/relnotes/* }