Gentoo Archives: gentoo-commits

From: "Tom Wijsman (tomwij)" <tomwij@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-java/jline: jline-2.11.ebuild ChangeLog
Date: Tue, 04 Jun 2013 17:48:32
Message-Id: 20130604174829.99D822171F@flycatcher.gentoo.org
1 tomwij 13/06/04 17:48:29
2
3 Modified: ChangeLog
4 Added: jline-2.11.ebuild
5 Log:
6 Version bump to 2.11.
7
8 (Portage version: 2.1.12.2/cvs/Linux x86_64, signed Manifest commit with key 6D34E57D)
9
10 Revision Changes Path
11 1.27 dev-java/jline/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/jline/ChangeLog?rev=1.27&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/jline/ChangeLog?rev=1.27&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/jline/ChangeLog?r1=1.26&r2=1.27
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-java/jline/ChangeLog,v
20 retrieving revision 1.26
21 retrieving revision 1.27
22 diff -u -r1.26 -r1.27
23 --- ChangeLog 23 Jun 2011 17:10:18 -0000 1.26
24 +++ ChangeLog 4 Jun 2013 17:48:29 -0000 1.27
25 @@ -1,6 +1,11 @@
26 # ChangeLog for dev-java/jline
27 -# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-java/jline/ChangeLog,v 1.26 2011/06/23 17:10:18 ranger Exp $
29 +# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
30 +# $Header: /var/cvsroot/gentoo-x86/dev-java/jline/ChangeLog,v 1.27 2013/06/04 17:48:29 tomwij Exp $
31 +
32 +*jline-2.11 (04 Jun 2013)
33 +
34 + 04 Jun 2013; Tom Wijsman <TomWij@g.o> +jline-2.11.ebuild:
35 + Version bump to 2.11.
36
37 23 Jun 2011; Brent Baude <ranger@g.o> jline-1.0.ebuild:
38 Marking jline-1.0 ppc for bug 368989
39 @@ -103,4 +108,3 @@
40 05 Jan 2007; Joshua Nichols <nichoj@g.o> +files/build-0.9.9.xml,
41 +metadata.xml, +jline-0.9.9.ebuild:
42 Initial commit. Added as a dependency of dev-java/jruby.
43 -
44
45
46
47 1.1 dev-java/jline/jline-2.11.ebuild
48
49 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/jline/jline-2.11.ebuild?rev=1.1&view=markup
50 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/jline/jline-2.11.ebuild?rev=1.1&content-type=text/plain
51
52 Index: jline-2.11.ebuild
53 ===================================================================
54 # Copyright 1999-2013 Gentoo Foundation
55 # Distributed under the terms of the GNU General Public License v2
56 # $Header: /var/cvsroot/gentoo-x86/dev-java/jline/jline-2.11.ebuild,v 1.1 2013/06/04 17:48:29 tomwij Exp $
57
58 EAPI="5"
59
60 JAVA_PKG_IUSE="doc source"
61
62 inherit vcs-snapshot java-pkg-2 java-pkg-simple
63
64 DESCRIPTION="A Java library for handling console input"
65 HOMEPAGE="https://github.com/jline/jline2"
66 SRC_URI="https://github.com/jline/jline2/tarball/${P} -> ${P}.tar.gz"
67
68 LICENSE="BSD"
69 SLOT="2"
70 KEYWORDS="~amd64 ~x86"
71
72 IUSE="test"
73
74 CDEPEND="dev-java/jansi:0
75 dev-java/jansi-native:0"
76
77 DEPEND="${CDEPEND}
78 >=virtual/jdk-1.5
79 test? ( dev-java/junit:4 )"
80
81 RDEPEND="${CDEPEND}
82 >=virtual/jre-1.5"
83
84 S="${WORKDIR}/${P}"
85
86 JAVA_SRC_DIR="src/main/java"
87 JAVA_GENTOO_CLASSPATH="jansi,jansi-native"
88
89 java_prepare() {
90 # Easier to use java-pkg-simple.
91 rm -v pom.xml || die
92
93 # Don't forget the resources!
94 mkdir -p target/classes || die
95 cp -r src/main/resources/* target/classes || die
96 }
97
98 src_install() {
99 java-pkg-simple_src_install
100
101 dodoc {CHANGELOG,README}.md
102 }
103
104 src_test() {
105 cd src/test/java || die
106
107 local CP=".:../resources:${S}/${PN}.jar:$(java-pkg_getjars junit-4,${JAVA_GENTOO_CLASSPATH})"
108 local TESTS=$(find * -name "*Test.java")
109 TESTS="${TESTS//.java}"
110 TESTS="${TESTS//\//.}"
111
112 ejavac -cp "${CP}" -d . $(find * -name "*.java")
113 ejunit4 -classpath "${CP}" ${TESTS}
114 }