From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 512AB138334 for ; Sat, 16 Mar 2019 19:24:14 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id AC6CEE08F0; Sat, 16 Mar 2019 19:24:12 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 824E7E08F0 for ; Sat, 16 Mar 2019 19:24:12 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 63A12335D13 for ; Sat, 16 Mar 2019 19:24:11 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 75AF156E for ; Sat, 16 Mar 2019 19:24:08 +0000 (UTC) From: "Patrice Clement" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Patrice Clement" Message-ID: <1552764232.a412d43674d07ea0d6f6f489536f3937a97f21e5.monsieurp@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-java/jline/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-java/jline/jline-1.0-r1.ebuild X-VCS-Directories: dev-java/jline/ X-VCS-Committer: monsieurp X-VCS-Committer-Name: Patrice Clement X-VCS-Revision: a412d43674d07ea0d6f6f489536f3937a97f21e5 X-VCS-Branch: master Date: Sat, 16 Mar 2019 19:24:08 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 0e35ebbf-f866-4ada-b90d-90382532f743 X-Archives-Hash: a13825653be3b1a804a0dda90b4f128a commit: a412d43674d07ea0d6f6f489536f3937a97f21e5 Author: Patrice Clement gentoo org> AuthorDate: Tue Mar 5 08:21:52 2019 +0000 Commit: Patrice Clement gentoo org> CommitDate: Sat Mar 16 19:23:52 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a412d436 dev-java/jline: EAPI 6 bump. Signed-off-by: Patrice Clement gentoo.org> Package-Manager: Portage-2.3.51, Repoman-2.3.11 dev-java/jline/jline-1.0-r1.ebuild | 70 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) diff --git a/dev-java/jline/jline-1.0-r1.ebuild b/dev-java/jline/jline-1.0-r1.ebuild new file mode 100644 index 00000000000..95b69b972b4 --- /dev/null +++ b/dev-java/jline/jline-1.0-r1.ebuild @@ -0,0 +1,70 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +JAVA_PKG_IUSE="source test" + +inherit java-pkg-2 java-ant-2 + +DESCRIPTION="Handle console input in Java" +HOMEPAGE="http://jline.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}.zip" +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos" + +DEPEND=" + >=virtual/jdk-1.6 + app-arch/unzip + test? ( + dev-java/ant-junit:0 + dev-java/junit:0 + )" + +RDEPEND=" + >=virtual/jre-1.6" + +S="${WORKDIR}/${P}/src" + +src_prepare() { + default + java-pkg_clean + + # 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 + cp "${FILESDIR}/maven-build.properties" . || die + java-ant_ignore-system-classes + + if use test; then + mkdir lib || die + cd lib || die + java-pkg_jar-from --build-only junit + fi +} + +src_compile() { + # precompiled javadocs (needs maven to generate) + # -Dmaven.build.finalName is needed to override the one defined in the + # build.xml, which because it was generated with 0.9.9, defaults to + # jline-0.9.9 -nichoj + eant package -Dmaven.build.finalName=${P} +} + +src_test() { + ANT_TASKS="ant-junit" eant test -Djunit.present=true +} + +src_install() { + java-pkg_newjar target/${P}.jar + # no api docs in this release + # use doc && java-pkg_dojavadoc ../apidocs + use source && java-pkg_dosrc src/main/java +}