# Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ JAVA_PKG_IUSE="source examples" inherit java-pkg-2 java-ant-2 DESCRIPTION="JOrbis is a pure Java Ogg Vorbis decoder" HOMEPAGE="http://www.jcraft.com/jorbis/" SRC_URI="http://www.jcraft.com/jorbis/${P}.zip" LICENSE="LGPL-2.1" SLOT="0" KEYWORDS="~amd64 ~x86" DEPEND=">=virtual/jdk-1.6" RDEPEND=">=virtual/jre-1.6" IUSE="" src_unpack() { unpack ${A} cd ${S} mkdir src mv com src/ || die [[ -f build.xml ]] && die "Upstream has build.xml! Things have changed." cp "${FILESDIR}/build.xml" . || die } EANT_BUILD_TARGET="dist" src_install() { java-pkg_dojar dist/lib/${PN}.jar dodoc COPYING.LIB ChangeLog README if use examples; then docinto examples/comment_editor dodoc comment_editor/* docinto examples/player dodoc player/* fi use source && java-pkg_dosrc src/ }