summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Le Cuirot <chewi@gentoo.org>2020-05-01 00:37:02 +0100
committerJames Le Cuirot <chewi@gentoo.org>2020-05-01 00:38:21 +0100
commitb0c814e2c0e7b8761f63a974ffda468d6652fa6b (patch)
tree66f343f692eaf8dc6d2152de00165420c3f83333 /dev-java/gradle-bin/gradle-bin-6.3.ebuild
parentgames-puzzle/world-of-goo-gog: Fix bad usex usage on x86 (diff)
downloadgentoo-b0c814e2c0e7b8761f63a974ffda468d6652fa6b.tar.gz
gentoo-b0c814e2c0e7b8761f63a974ffda468d6652fa6b.tar.bz2
gentoo-b0c814e2c0e7b8761f63a974ffda468d6652fa6b.zip
dev-java/gradle-bin: Bump to version 6.3 and EAPI 7
Examples are no longer included but there is more documentation. Closes: https://bugs.gentoo.org/633546 Bug: https://bugs.gentoo.org/683032 Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: James Le Cuirot <chewi@gentoo.org>
Diffstat (limited to 'dev-java/gradle-bin/gradle-bin-6.3.ebuild')
-rw-r--r--dev-java/gradle-bin/gradle-bin-6.3.ebuild49
1 files changed, 49 insertions, 0 deletions
diff --git a/dev-java/gradle-bin/gradle-bin-6.3.ebuild b/dev-java/gradle-bin/gradle-bin-6.3.ebuild
new file mode 100644
index 000000000000..93eb5b8f352f
--- /dev/null
+++ b/dev-java/gradle-bin/gradle-bin-6.3.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+IUSE="doc"
+JAVA_PKG_IUSE="source"
+
+inherit java-pkg-2
+
+MY_PN=${PN%%-bin}
+MY_P="${MY_PN}-${PV/_rc/-rc-}"
+
+DESCRIPTION="A project automation and build tool with a Groovy based DSL"
+SRC_URI="https://services.gradle.org/distributions/${MY_P}-all.zip -> ${P}.zip"
+HOMEPAGE="https://www.gradle.org/"
+
+LICENSE="Apache-2.0"
+SLOT="${PV}"
+KEYWORDS="~amd64 ~x86"
+
+BDEPEND="app-arch/unzip"
+DEPEND=">=virtual/jre-1.8"
+RDEPEND=">=virtual/jdk-1.8"
+
+S="${WORKDIR}/${MY_P}"
+
+src_install() {
+ local gradle_dir="${EPREFIX}/usr/share/${PN}-${SLOT}"
+
+ insinto "${gradle_dir}"
+ doins -r lib/
+
+ exeinto "${gradle_dir}"/bin
+ doexe bin/${MY_PN}
+ dosym "../${gradle_dir##*/usr/}/bin/gradle" "/usr/bin/${MY_PN}-${SLOT}"
+
+ docinto html
+ dodoc -r docs/release-notes.html
+
+ if use doc ; then
+ dodoc -r docs/{dsl,userguide}
+ java-pkg_dojavadoc docs/javadoc
+ fi
+
+ if use source ; then
+ java-pkg_dosrc src/*
+ fi
+}