diff options
author | Patrice Clement <monsieurp@gentoo.org> | 2019-03-05 09:21:52 +0100 |
---|---|---|
committer | Patrice Clement <monsieurp@gentoo.org> | 2019-03-16 20:23:52 +0100 |
commit | a412d43674d07ea0d6f6f489536f3937a97f21e5 (patch) | |
tree | 59f7448e982810c73e964dd27302f5d67d1f8279 | |
parent | dev-java/libreadline-java: clean up old. (diff) | |
download | gentoo-a412d43674d07ea0d6f6f489536f3937a97f21e5.tar.gz gentoo-a412d43674d07ea0d6f6f489536f3937a97f21e5.tar.bz2 gentoo-a412d43674d07ea0d6f6f489536f3937a97f21e5.zip |
dev-java/jline: EAPI 6 bump.
Signed-off-by: Patrice Clement <monsieurp@gentoo.org>
Package-Manager: Portage-2.3.51, Repoman-2.3.11
-rw-r--r-- | dev-java/jline/jline-1.0-r1.ebuild | 70 |
1 files changed, 70 insertions, 0 deletions
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 000000000000..95b69b972b4b --- /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 +} |