1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
12 MY_P="${MY_PN}-${PV/_rc/-rc-}"
14 DESCRIPTION="A project automation and build tool with a Groovy based DSL"
15 SRC_URI="https://services.gradle.org/distributions/${MY_P}-all.zip -> ${P}.zip"
16 HOMEPAGE="https://www.gradle.org/"
20 KEYWORDS="~amd64 ~x86"
22 BDEPEND="app-arch/unzip"
23 DEPEND=">=virtual/jre-1.8"
24 RDEPEND=">=virtual/jdk-1.8"
26 S="${WORKDIR}/${MY_P}"
29 local gradle_dir="${EPREFIX}/usr/share/${PN}-${SLOT}"
31 insinto "${gradle_dir}"
34 exeinto "${gradle_dir}"/bin
36 dosym "../${gradle_dir##*/usr/}/bin/gradle" "/usr/bin/${MY_PN}-${SLOT}"
39 dodoc -r docs/release-notes.html
42 dodoc -r docs/{dsl,userguide}
43 java-pkg_dojavadoc docs/javadoc