# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/dev-db/henplus/henplus-0.9.5-r2.ebuild,v 1.3 2004/10/25 11:37:43 axxo Exp $ inherit java-pkg eutils DESCRIPTION="HenPlus is a SQL shell that can handle multiple sessions in parallel. The commandline interface with the usual history functions features TAB-completion for commands, tables and columns. Database connect via JDBC." HOMEPAGE="http://henplus.sf.net" SRC_URI="mirror://sourceforge/henplus/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="x86 ~sparc ~ppc" IUSE="jikes" DEPEND=">=virtual/jdk-1.3 >=dev-java/ant-1.4.1 dev-java/libreadline-java jikes? ( >=dev-java/jikes-1.17 )" RDEPEND=">=virtual/jdk-1.3" src_unpack() { unpack ${A} cd ${S} epatch ${FILESDIR}/henplus.patch } src_compile() { local antflags="jar" use jikes && antflags="${antflags} -Dbuild.compiler=jikes" export CLASSPATH="$CLASSPATH:`java-config --classpath=libreadline-java`" ant ${antflags} || die "compile problem" } src_install () { java-pkg_dojar build/*.jar dodoc README dobin bin/henplus }