# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/dev-java/toolbar/toolbar-1.1.0.ebuild,v 1.1 2005/12/10 20:04:55 compnerd Exp $ inherit java-pkg DESCRIPTION="An improved version of JToolBar" HOMEPAGE="http://toolbar.tigris.org" SRC_URI="http://toolbar.tigris.org/files/documents/869/25285/toolbar-${PV}-src.zip" LICENSE="Apache-2.0" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="jikes source" DEPEND=">=virtual/jdk-1.4 dev-java/ant-core jikes? ( dev-java/jikes ) app-arch/unzip source? ( app-arch/zip )" RDEPEND=">=virtual/jre-1.4" src_unpack() { unpack ${A} # Remove the CVS directories find . -name 'CVS' -exec rmdir \{\} \; # Make the work environment mkdir ${S} # Setup the structure mv src ${S} rm -rf test # Copy over the build.xml cp ${FILESDIR}/build.xml ${S} || die "Unable to copy the build file!" cat > ${S}/build.properties <<- EOF src=src dest=dest build=build version=${PV} EOF } src_compile() { local antflags="-Dversion=${PV}" use jikes && antflags="${antflags} -Dbuild.compiler=jikes" ant ${antflags} || die "Compile failed!" } src_install() { java-pkg_newjar dest/toolbar-${PV}.jar ${PN}.jar use source && java-pkg_dosrc ${S}/src/org/ }