# Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: $ S="${WORKDIR}/henplus-${PV}" 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://www.sourceforge.net/projects/henplus" SRC_URI="mirror://sourceforge/henplus/${PN}-${PV}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="x86" IUSE="jikes" RDEPEND=">=virtual/jdk-1.3" DEPEND="${RDEPEND} >=dev-java/ant-1.4.1 >=sys-libs/readline-4.3 jikes? ( >=dev-java/jikes-1.17 )" src_compile() { local antflags export CLASSPATH="$CLASSPATH:/usr/share/java/libreadline-java.jar" antflags="" if [ `use jikes` ] ; then einfo "Please ignore the following compiler warnings." einfo "Jikes is just too pedantic..." antflags="${antflags} -Dbuild.compiler=jikes" fi ant ${antflags} jar || die "compile problem" } src_install () { dodir /usr/share/henplus dodir /usr/bin cd ${S} pwd cp build/henplus.jar ${D}/usr/share/henplus cp bin/henplus ${D}/usr/bin/henplus cd ${D}/usr/share/henplus chmod -R u+r,ug-s,go+u,go-w \ henplus.jar chmod 755 ${D}/usr/bin/henplus } pkg_postinst() { touch /usr/share/henplus/.keep einfo "The system directory for Henplus plugins is" einfo "/usr/share/helplus/" } pkg_postrm() { einfo "Henplus plugins installed into /usr/share/henplus" einfo "(after installation of Henplus itself) haven't been" einfo "removed. To get rid of Henplus completely, you may" einfo "want to run" einfo "" einfo "\trm -r /usr/share/henplus" }