# Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/dev-java/jettison/jettison-1.0.ebuild,v 1.10 2010/04/24 17:49:22 grobian Exp $ EAPI=2 JAVA_PKG_IUSE="doc source" inherit java-pkg-2 java-ant-2 DESCRIPTION="A JSON StAX implementation" HOMEPAGE="http://jettison.codehaus.org/" SRC_URI="http://repository.codehaus.org/org/codehaus/${PN}/${PN}/${PV}/${P}-sources.jar" LICENSE="Apache-2.0" SLOT="0" KEYWORDS="amd64 ppc ppc64 x86 ~amd64-linux ~x86-linux ~ppc-macos ~sparc-solaris ~x86-solaris" IUSE="" COMMON_DEP="java-virtuals/jaxp-virtual" RDEPEND=">=virtual/jre-1.4 ${COMMON_DEP}" DEPEND=">=virtual/jdk-1.4 app-arch/unzip ${COMMON_DEP}" #Don't need to make one S="${WORKDIR}" src_prepare(){ #no supplied Build file cp -v "${FILESDIR}"/build.xml "${S}/build.xml" || die } EANT_GENTOO_CLASSPATH="jaxp-virtual" src_install() { java-pkg_dojar dist/"${PN}.jar" use doc && java-pkg_dojavadoc docs use source && java-pkg_dosrc org }