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 51AF51395E2 for ; Mon, 21 Nov 2016 23:10:54 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6D714E0A6C; Mon, 21 Nov 2016 23:10:53 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 40FFCE09FF for ; Mon, 21 Nov 2016 23:10:53 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id E6F46340F2A for ; Mon, 21 Nov 2016 23:10:51 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 200C54A0 for ; Mon, 21 Nov 2016 23:10:50 +0000 (UTC) From: "James Le Cuirot" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "James Le Cuirot" Message-ID: <1479768819.ec860f9c8470f66833c41fbcdabe2d0d674fe601.chewi@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-java/commons-cli/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-java/commons-cli/Manifest dev-java/commons-cli/commons-cli-1.3.1.ebuild X-VCS-Directories: dev-java/commons-cli/ X-VCS-Committer: chewi X-VCS-Committer-Name: James Le Cuirot X-VCS-Revision: ec860f9c8470f66833c41fbcdabe2d0d674fe601 X-VCS-Branch: master Date: Mon, 21 Nov 2016 23:10:50 +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-Archives-Salt: 8fd20c98-37c5-4cbe-80a0-f2de73d90c27 X-Archives-Hash: 493f45a2f0be6fa6fffe18e7ef1dae13 commit: ec860f9c8470f66833c41fbcdabe2d0d674fe601 Author: James Le Cuirot gentoo org> AuthorDate: Sun Nov 6 23:23:58 2016 +0000 Commit: James Le Cuirot gentoo org> CommitDate: Mon Nov 21 22:53:39 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ec860f9c dev-java/commons-cli: Bump to 1.3.1, EAPI bump to 6 Package-Manager: portage-2.3.2 dev-java/commons-cli/Manifest | 1 + dev-java/commons-cli/commons-cli-1.3.1.ebuild | 42 +++++++++++++++++++++++++++ 2 files changed, 43 insertions(+) diff --git a/dev-java/commons-cli/Manifest b/dev-java/commons-cli/Manifest index 3e0b5bc..02a2658 100644 --- a/dev-java/commons-cli/Manifest +++ b/dev-java/commons-cli/Manifest @@ -1 +1,2 @@ DIST commons-cli-1.2-src.tar.gz 68594 SHA256 b589cd675866aec12a068e0717f2bd52ead6128c43ba1612a8815db1df7f6e67 SHA512 61759cf0c791c4308b4df6a6c163b4abbb5e07909ba4904ad6565f6453ecad2ecbdc2d2df3e113b469f0d621866dfd7de07b857949ca7607c02c8ec75740eb80 WHIRLPOOL f89a34ca0f66b83643f54a976793f08d8d77b90f886fdc991e091495186050fb6424d04da10affb072367bbffb96faaf763cebf782d7fd11366c84678e826019 +DIST commons-cli-1.3.1-src.tar.gz 145886 SHA256 d4f7eedf6def7cd574ff9b0050a5a7203a702ed13c88d9fbb85b84284ab172ba SHA512 b5c569bea3c213a1959ae698894f2234477a7a5ed246f8e81142041173f668802959be018011bce6aa2a5631081378e67d69eeba9136fa19c96193dbdf2a7d15 WHIRLPOOL 2e589f5644c5d7cead5bb88364cd982a717b7eab33c50c9ff0dc14d562d5eb92e6f76f7e80c2b356d08cf1e80b6943d81d7f98f554b4de54fc394916c9e4c56e diff --git a/dev-java/commons-cli/commons-cli-1.3.1.ebuild b/dev-java/commons-cli/commons-cli-1.3.1.ebuild new file mode 100644 index 00000000..430008ac --- /dev/null +++ b/dev-java/commons-cli/commons-cli-1.3.1.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +JAVA_PKG_IUSE="doc source" + +inherit java-pkg-2 java-pkg-simple + +DESCRIPTION="A Java library for working with the command line arguments and options" +HOMEPAGE="http://commons.apache.org/cli/" +SRC_URI="mirror://apache/commons/cli/source/${P}-src.tar.gz" +LICENSE="Apache-2.0" +SLOT="1" +KEYWORDS="~amd64 ~ppc64 ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos" +IUSE="test" + +RDEPEND=">=virtual/jre-1.7" + +DEPEND=">=virtual/jdk-1.7 + test? ( dev-java/junit:4 )" + +S="${WORKDIR}/${P}-src" +JAVA_SRC_DIR="src/main/java" + +src_install() { + java-pkg-simple_src_install + dodoc CONTRIBUTING.md NOTICE.txt README.md RELEASE-NOTES.txt +} + +src_test() { + cd src/test/java || die + + local CP=".:${S}/${PN}.jar:$(java-pkg_getjars junit-4)" + local TESTS=$(find * -name "*Test.java") + TESTS="${TESTS//.java}" + TESTS="${TESTS//\//.}" + + ejavac -cp "${CP}" -d . $(find * -name "*.java") + ejunit4 -classpath "${CP}" ${TESTS} +}