# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/app-misc/colordiff/colordiff-1.0.5-r2.ebuild,v 1.7 2005/08/17 18:08:02 grobian Exp $ inherit java-pkg-2 java-ant-2 MY_P="${PN}.${PV}" DESCRIPTION="An interactive system for 3D graphics (primarily molecular)" HOMEPAGE="http://kinemage.biochem.duke.edu/software/king.php" SRC_URI="http://kinemage.biochem.duke.edu/ftpsite/pub/software/${PN}/${MY_P}.src.zip" LICENSE="GPL-2" SLOT="0" KEYWORDS="~ppc ~x86" IUSE="" RDEPEND=">=virtual/jre-1.3 sci-chemistry/prekin" # dev-java/jogl is in the java-migration overlay, we can't add this to the tree # until jogl is DEPEND="${RDEPEND} dev-java/ant-core >=virtual/jdk-1.3 dev-java/gnu-regexp dev-java/itext dev-java/jogl" S="${WORKDIR}/${PN}" src_unpack() { unpack ${A} cd "${WORKDIR}" for i in king chiropraxis driftwood; do mv ${i}* ${i} done # Fix up ant to look in the right spots epatch "${FILESDIR}"/${PV}-build-fixes.patch cd "${WORKDIR}"/lib pushd gnu/regexp rm *.class java-pkg_jar-from gnu-regexp-1 popd pushd iText rm *.jar java-pkg_jar-from itext iText.jar popd pushd jogl rm *.jar java-pkg_jar-from jogl popd } src_compile() { ant build || die "ant build failed" } src_install() { java-pkg_dojar king.jar || die "dojar failed" echo 'java -cp /usr/share/gnu-regexp-1/lib/gnu-regexp.jar:/usr/share/king/lib/king.jar king.KingMain' \ > king dobin king || die "dobin failed" dodoc doc/* || die "dodoc failed" dohtml *.html || die "dohtml failed" }