blob: 79f6bb27b69b4fcc58a65c5cf744e6184064b3d4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
# 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.9 2010/01/15 20:31:53 abcd 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"
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
}
|