diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-java/gradle-bin/gradle-bin-3.3.ebuild |
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-java/gradle-bin/gradle-bin-3.3.ebuild')
-rw-r--r-- | dev-java/gradle-bin/gradle-bin-3.3.ebuild | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/dev-java/gradle-bin/gradle-bin-3.3.ebuild b/dev-java/gradle-bin/gradle-bin-3.3.ebuild new file mode 100644 index 000000000000..31bf0e3ac6a9 --- /dev/null +++ b/dev-java/gradle-bin/gradle-bin-3.3.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="6" + +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="http://services.gradle.org/distributions/${MY_P}-all.zip" +HOMEPAGE="http://www.gradle.org/" +LICENSE="Apache-2.0" +SLOT="${PV}" +KEYWORDS="~x86 ~amd64" + +DEPEND="app-arch/zip" +RDEPEND=">=virtual/jdk-1.6" + +IUSE="source doc examples" + +S="${WORKDIR}/${MY_P}" + +src_install() { + local gradle_dir="${EPREFIX}/usr/share/${PN}-${SLOT}" + + dodoc docs/release-notes.html getting-started.html + + insinto "${gradle_dir}" + + # source + if use source ; then + java-pkg_dosrc src/* + fi + + # docs + if use doc ; then + java-pkg_dojavadoc docs/javadoc + fi + + # examples + if use examples ; then + java-pkg_doexamples samples + fi + + insinto "${gradle_dir}" + doins -r bin/ lib/ + fperms 755 "${gradle_dir}/bin/gradle" + dosym "${gradle_dir}/bin/gradle" "/usr/bin/${MY_PN}" +} |