summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPetteri Räty <betelgeuse@gentoo.org>2007-03-01 10:47:21 +0000
committerPetteri Räty <betelgeuse@gentoo.org>2007-03-01 10:47:21 +0000
commit8bfdc88c2de0589951415aaeaac85d66ec3b26af (patch)
treed41fa4d4c43cfa685a24f8f02c8af354275806c4 /dev-java/jline
parentAdd the doc use flag. (diff)
downloadgentoo-2-8bfdc88c2de0589951415aaeaac85d66ec3b26af.tar.gz
gentoo-2-8bfdc88c2de0589951415aaeaac85d66ec3b26af.tar.bz2
gentoo-2-8bfdc88c2de0589951415aaeaac85d66ec3b26af.zip
Migrate to split ant. Revision bump because -r1 is going stable but split ant still needs more testing.
(Portage version: 2.1.2-r12)
Diffstat (limited to 'dev-java/jline')
-rw-r--r--dev-java/jline/ChangeLog8
-rw-r--r--dev-java/jline/files/digest-jline-0.9.9-r23
-rw-r--r--dev-java/jline/jline-0.9.9-r2.ebuild56
3 files changed, 66 insertions, 1 deletions
diff --git a/dev-java/jline/ChangeLog b/dev-java/jline/ChangeLog
index ca06c5857317..f4fffc54e8b6 100644
--- a/dev-java/jline/ChangeLog
+++ b/dev-java/jline/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-java/jline
# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-java/jline/ChangeLog,v 1.8 2007/03/01 10:29:18 betelgeuse Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-java/jline/ChangeLog,v 1.9 2007/03/01 10:47:21 betelgeuse Exp $
+
+*jline-0.9.9-r2 (01 Mar 2007)
+
+ 01 Mar 2007; Petteri Räty <betelgeuse@gentoo.org> +jline-0.9.9-r2.ebuild:
+ Migrate to split ant. Revision bump because -r1 is going stable but split
+ ant still needs more testing.
01 Mar 2007; Petteri Räty <betelgeuse@gentoo.org> jline-0.9.9-r1.ebuild:
Add the doc use flag.
diff --git a/dev-java/jline/files/digest-jline-0.9.9-r2 b/dev-java/jline/files/digest-jline-0.9.9-r2
new file mode 100644
index 000000000000..f5517e92a160
--- /dev/null
+++ b/dev-java/jline/files/digest-jline-0.9.9-r2
@@ -0,0 +1,3 @@
+MD5 c5164fb17d33315fa2c1ad10ab84aef7 jline-0.9.9.zip 692022
+RMD160 62e45ddadf1eb175cf0271df5f8f8d6075f62f07 jline-0.9.9.zip 692022
+SHA256 f1ac3b06fbb9b81c03555874ab748c3e674644736f0003ac3ed81d6201332e9b jline-0.9.9.zip 692022
diff --git a/dev-java/jline/jline-0.9.9-r2.ebuild b/dev-java/jline/jline-0.9.9-r2.ebuild
new file mode 100644
index 000000000000..f00d315f5639
--- /dev/null
+++ b/dev-java/jline/jline-0.9.9-r2.ebuild
@@ -0,0 +1,56 @@
+# 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-r2.ebuild,v 1.1 2007/03/01 10:47:21 betelgeuse Exp $
+
+JAVA_PKG_IUSE="doc source test"
+
+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"
+
+DEPEND=">=virtual/jdk-1.4
+ app-arch/unzip
+ test? ( dev-java/ant-junit )"
+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() {
+ ANT_TASKS="ant-junit" eant test -Djunit.present=true
+}