You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/dev-java/jettison/jettison-1.0.ebuild

43 lines
927 B

# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
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
}