# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 inherit eutils java-pkg-2 java-ant-2 DESCRIPTION="Sun J3D: 3D vector math package" HOMEPAGE="https://vecmath.dev.java.net/" SRC_URI="http://download.java.net/media/java3d/builds/stable/j3d-core-utils-1.5.0.tar.gz http://download.java.net/media/java3d/builds/stable/j3d-core-1.5.0.tar.gz http://download.java.net/media/java3d/builds/stable/j3d-examples-1.5.0.tar.gz" KEYWORDS="~amd64 x86 -*" SLOT="0" LICENSE="sun-jrl sun-jdl" IUSE="doc source" DEPEND="app-arch/tar >=dev-java/vecmath-1.5.0 >=virtual/jdk-1.5 >=dev-java/ant-1.6.1 source? ( app-arch/zip ) test? ( dev-java/junit )" RDEPEND=">=virtual/jre-1.5" src_unpack() { unpack ${A} } src_compile() { cd ${WORKDIR}/${PN} local antflags="jar" use doc && antflags="${antflags} docs" eant ${antflags} || die "failed to compile" } src_install() { cd ${WORKDIR}/${PN} java-pkg_dojar build/opt/lib/ext/${PN}.jar if use source; then java-pkg_dosrc ${WORKDIR}/${PN} fi if use doc; then dodoc *.txt docs/*.txt java-pkg_dohtml -r *.html fi }