blob: 29a268c20f97271daac6877011e06cc95fd02876 (
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-java/jline/jline-0.9.9-r1.ebuild,v 1.7 2007/03/01 10:29:18 betelgeuse Exp $
inherit java-pkg-2 java-ant-2
DESCRIPTION="A Java library for handling console input"
HOMEPAGE="http://jline.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${P}.zip"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE="doc source test"
DEPEND=">=virtual/jdk-1.4
dev-java/ant-core
app-arch/unzip
test? ( dev-java/junit dev-java/ant-tasks )
source? ( app-arch/zip )"
RDEPEND=">=virtual/jre-1.4"
S="${WORKDIR}/${P}/src"
src_unpack() {
unpack ${A}
rm -v "${P}"/*.jar
cd "${S}"
# we don't support maven for building yet. this build.xml was generated by:
# - mvn ant:ant
# - tweak build.xml to not load properties from home dir
# - tweak the test target to match the test cases
# - change maven.repo.local from ~/.maven to "lib" in .properties
# - change classpath definitions to "*.jar"
cp ${FILESDIR}/maven-build.xml build.xml || die "failed to copy build.xml"
cp ${FILESDIR}/maven-build.properties . || die
java-ant_ignore-system-classes
mkdir lib
cd lib
use test && java-pkg_jar-from --build-only junit
}
src_compile() {
#precompiled javadocs (needs maven to generate)
eant package
}
src_install() {
java-pkg_newjar target/${P}.jar
use doc && java-pkg_dojavadoc ../apidocs
use source && java-pkg_dosrc src/main/java
}
src_test() {
eant test -Djunit.present=true
}
|