summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Wijsman <tomwij@gentoo.org>2013-08-17 09:35:01 +0000
committerTom Wijsman <tomwij@gentoo.org>2013-08-17 09:35:01 +0000
commit1f36194debc57ea07c4aaee657dedd5c55f8bc94 (patch)
tree8968cb82f333b83d661b6e533a28f9a1b729932d /dev-java/jline
parentRevision bump. Move 1.11 to SLOT="1.11" for dev-java/jline. (diff)
downloadgentoo-2-1f36194debc57ea07c4aaee657dedd5c55f8bc94.tar.gz
gentoo-2-1f36194debc57ea07c4aaee657dedd5c55f8bc94.tar.bz2
gentoo-2-1f36194debc57ea07c4aaee657dedd5c55f8bc94.zip
Revision bump. Slot dev-java/jansi dependency. Thanks to gienah on IRC for reporting.
(Portage version: 2.2.0/cvs/Linux x86_64, signed Manifest commit with key 6D34E57D)
Diffstat (limited to 'dev-java/jline')
-rw-r--r--dev-java/jline/ChangeLog8
-rw-r--r--dev-java/jline/jline-2.11-r1.ebuild61
2 files changed, 68 insertions, 1 deletions
diff --git a/dev-java/jline/ChangeLog b/dev-java/jline/ChangeLog
index 7bc04f0ab224..b36fe6bc7268 100644
--- a/dev-java/jline/ChangeLog
+++ b/dev-java/jline/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-java/jline
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-java/jline/ChangeLog,v 1.27 2013/06/04 17:48:29 tomwij Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-java/jline/ChangeLog,v 1.28 2013/08/17 09:35:01 tomwij Exp $
+
+*jline-2.11-r1 (17 Aug 2013)
+
+ 17 Aug 2013; Tom Wijsman <TomWij@gentoo.org> +jline-2.11-r1.ebuild:
+ Revision bump. Slot dev-java/jansi dependency. Thanks to gienah on IRC for
+ reporting.
*jline-2.11 (04 Jun 2013)
diff --git a/dev-java/jline/jline-2.11-r1.ebuild b/dev-java/jline/jline-2.11-r1.ebuild
new file mode 100644
index 000000000000..2fddd0e35eca
--- /dev/null
+++ b/dev-java/jline/jline-2.11-r1.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/jline/jline-2.11-r1.ebuild,v 1.1 2013/08/17 09:35:01 tomwij Exp $
+
+EAPI="5"
+
+JAVA_PKG_IUSE="doc source"
+
+inherit vcs-snapshot java-pkg-2 java-pkg-simple
+
+DESCRIPTION="A Java library for handling console input"
+HOMEPAGE="https://github.com/jline/jline2"
+SRC_URI="https://github.com/jline/jline2/tarball/${P} -> ${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="2"
+KEYWORDS="~amd64 ~x86"
+
+IUSE="test"
+
+CDEPEND="dev-java/jansi:1.11
+ dev-java/jansi-native:0"
+
+DEPEND="${CDEPEND}
+ >=virtual/jdk-1.5
+ test? ( dev-java/junit:4 )"
+
+RDEPEND="${CDEPEND}
+ >=virtual/jre-1.5"
+
+S="${WORKDIR}/${P}"
+
+JAVA_SRC_DIR="src/main/java"
+JAVA_GENTOO_CLASSPATH="jansi-1.11,jansi-native"
+
+java_prepare() {
+ # Easier to use java-pkg-simple.
+ rm -v pom.xml || die
+
+ # Don't forget the resources!
+ mkdir -p target/classes || die
+ cp -r src/main/resources/* target/classes || die
+}
+
+src_install() {
+ java-pkg-simple_src_install
+
+ dodoc {CHANGELOG,README}.md
+}
+
+src_test() {
+ cd src/test/java || die
+
+ local CP=".:../resources:${S}/${PN}.jar:$(java-pkg_getjars junit-4,${JAVA_GENTOO_CLASSPATH})"
+ local TESTS=$(find * -name "*Test.java")
+ TESTS="${TESTS//.java}"
+ TESTS="${TESTS//\//.}"
+
+ ejavac -cp "${CP}" -d . $(find * -name "*.java")
+ ejunit4 -classpath "${CP}" ${TESTS}
+}