From 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 14 Jul 2018 21:03:06 +0100 Subject: gentoo resync : 14.07.2018 --- dev-java/jline/Manifest | 7 + dev-java/jline/files/maven-build.properties | 13 ++ dev-java/jline/files/maven-build.xml | 199 ++++++++++++++++++++++++++++ dev-java/jline/jline-1.0.ebuild | 57 ++++++++ dev-java/jline/jline-2.12.1-r1.ebuild | 65 +++++++++ dev-java/jline/metadata.xml | 12 ++ 6 files changed, 353 insertions(+) create mode 100644 dev-java/jline/Manifest create mode 100644 dev-java/jline/files/maven-build.properties create mode 100644 dev-java/jline/files/maven-build.xml create mode 100644 dev-java/jline/jline-1.0.ebuild create mode 100644 dev-java/jline/jline-2.12.1-r1.ebuild create mode 100644 dev-java/jline/metadata.xml (limited to 'dev-java/jline') diff --git a/dev-java/jline/Manifest b/dev-java/jline/Manifest new file mode 100644 index 000000000000..beff0e251d2b --- /dev/null +++ b/dev-java/jline/Manifest @@ -0,0 +1,7 @@ +AUX maven-build.properties 501 BLAKE2B aaaaeb13e4e23588d6fe8c5e990b1e95edade85a7af30b4c9df3edf795b394c85a9baba202c8887cc46d7be1114b05637b486915ace8f51d25b31ee8c5e29012 SHA512 2e3347c2b53266c7d41cd9f73e79bdfecd28e41e78208b360533414ed551f101d04e4a76d416f061e56bbce43baf96c4c52fdba65ded3c0be18533c2c226ef6f +AUX maven-build.xml 8634 BLAKE2B 4d1078e1201baf11da35772d0e48304522cad6b606a6d601c449bf1d97b2a43725ddcf703dea154ac923955aac5489d164686fb042fcb7c1753d0e9ef619a283 SHA512 45648b88f3df01e0623483c6c409ce1fb57b6b73e62775064b4bc7762d1dc3a3ead3a4925efe987986081ed34c26195827f3f34a1b631fdf4e7ce227376c2936 +DIST jline-1.0.zip 463082 BLAKE2B 4f4eec5a2674bf97ed9fe83c60d339fce54dcd556aca6e95db74438e87253fd4e36e4eef26b3ac14ed84fff3d2fe1b58ba3a6fe13f33d96fe50a34f7bb34f541 SHA512 2957e19a3536d89aeaf8f27afb1f8eb4eb8bcc99560244c7f1ba14693a84a2f5e677a6c21d5f85ec519674cc4cd6cb3c9e4725cb4797144168d2f6df3954aba9 +DIST jline-2.12.1.tar.gz 97289 BLAKE2B 375711ad78cba26c0b4702dd739a18dd4db2fd1e8b16ce817dd1f567c405b7b0f96c72a6c6b7fabff1520617cf9149a29040e132d0b61e2d57149bb83b404c8d SHA512 368492fa0b28e6aa3827db05d266b332935d9a03c2f6645d039941c61a698e85fd57accfac444503de4cb2f2dae5787496924b8d258faad1c18b6cafe787f99d +EBUILD jline-1.0.ebuild 1644 BLAKE2B 4069f204bdcd09f156112ca33c12fbdc91da13f6a3ec124104ef54cbabb3b0acd9be65a81fa2e639d3f91f155b21eb8d0afb53abc9d74bcac22a1acedfac761b SHA512 195e08810e2e05ab6c3b2009ae407d3040505dfb12c303164e22110a9695e471d030e513c7cdfeb7bdcf0374e3f2fed3c1330138db0d119ac667e5a25e7ce26b +EBUILD jline-2.12.1-r1.ebuild 1262 BLAKE2B 21b4efdf0413e9af3693154de0e7259f098b31bda663edb5ca40ba3f7ce46c03f7f98924ef0b4cc40a0ecbcca8ecfe6a7a40065fe81bcb0f0558187d6a3d485a SHA512 47891ca0a85a3e3414bab175e9cfd95b037f855effb069f682335042de102a622e16dc7bb8236481347d5e7493c1186ee9dff690c3ac72cc447b8542288e3ced +MISC metadata.xml 375 BLAKE2B 6ac502feb83c678011ccf4b923c31184399f1feafdf3dbd8703d0c3c69900c1460da474eeb304d48590cb19ab7d128c8d8c0db48982e1283b527a0dfaf1668c2 SHA512 17a44da075005f0417e99ae638ba547800d799b98375f73c4bf7fc418b12e33e916952812850b63c623234bce98ebfd6eb525f7015e67cdaee16c38ad5f4b684 diff --git a/dev-java/jline/files/maven-build.properties b/dev-java/jline/files/maven-build.properties new file mode 100644 index 000000000000..66ef7cf2840e --- /dev/null +++ b/dev-java/jline/files/maven-build.properties @@ -0,0 +1,13 @@ +#Generated by Maven Ant Plugin - DO NOT EDIT THIS FILE! +#Sun Jan 21 15:31:06 EET 2007 +maven.build.finalName=jline-0.9.9 +maven.build.outputDir=${maven.build.dir}/classes +maven.build.resourceDir.0=src/main/resources +maven.build.testResourceDir.0=src/test/resources +maven.build.testOutputDir=${maven.build.dir}/test-classes +maven.repo.local=lib +maven.settings.offline=false +maven.build.dir=target +maven.settings.interactiveMode=true +maven.build.srcDir.0=src/main/java +maven.build.testDir.0=src/test/java diff --git a/dev-java/jline/files/maven-build.xml b/dev-java/jline/files/maven-build.xml new file mode 100644 index 000000000000..7be70998ddcc --- /dev/null +++ b/dev-java/jline/files/maven-build.xml @@ -0,0 +1,199 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + =================================== WARNING =================================== + Junit isn't present in your $ANT_HOME/lib directory. Tests not executed. + =============================================================================== + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/dev-java/jline/jline-1.0.ebuild b/dev-java/jline/jline-1.0.ebuild new file mode 100644 index 000000000000..5d846154e3f4 --- /dev/null +++ b/dev-java/jline/jline-1.0.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=2 +JAVA_PKG_IUSE="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 x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos" +IUSE="" + +DEPEND=">=virtual/jdk-1.4 + app-arch/unzip + test? ( dev-java/ant-junit )" +RDEPEND=">=virtual/jre-1.4" + +S="${WORKDIR}/${P}/src" + +java_prepare() { + rm -fv "${WORKDIR}"/${P}/*.jar || die + + # 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 + + mkdir lib && cd lib || die + use test && java-pkg_jar-from --build-only junit +} + +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 +} diff --git a/dev-java/jline/jline-2.12.1-r1.ebuild b/dev-java/jline/jline-2.12.1-r1.ebuild new file mode 100644 index 000000000000..2cf20f9d9991 --- /dev/null +++ b/dev-java/jline/jline-2.12.1-r1.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +JAVA_PKG_IUSE="doc source" + +inherit 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/${PN}2/archive/${P}.tar.gz" + +LICENSE="BSD" +SLOT="2" +KEYWORDS="amd64 ~arm64 x86" +IUSE="test" + +CDEPEND=" + dev-java/jansi:0 + dev-java/jansi-native:0" + +DEPEND=" + test? ( + dev-java/junit:4 + ) + ${CDEPEND} + >=virtual/jdk-1.6" + +RDEPEND=" + ${CDEPEND} + >=virtual/jre-1.6" + +S="${WORKDIR}/${PN}2-${P}" + +JAVA_SRC_DIR="src/main/java" + +JAVA_GENTOO_CLASSPATH="jansi,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} +} diff --git a/dev-java/jline/metadata.xml b/dev-java/jline/metadata.xml new file mode 100644 index 000000000000..cb172808c6ff --- /dev/null +++ b/dev-java/jline/metadata.xml @@ -0,0 +1,12 @@ + + + + + java@gentoo.org + Java + + + jline/jline2 + jline + + -- cgit v1.2.3