aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Schmaus <flo@geekplace.eu>2021-04-12 14:28:17 +0200
committerFlorian Schmaus <flo@geekplace.eu>2021-04-12 14:28:17 +0200
commitb494c4f6b5366490d98ed3a76cdfc8dcac72bebc (patch)
tree56df7754f0ee9675c145f33a2ea44239a3b200f6
parentdev-java/gradle-bin: fix dependencies (diff)
downloadjava-master.tar.gz
java-master.tar.bz2
java-master.zip
dev-java/gradle-bin: add 7.0HEADmaster
Signed-off-by: Florian Schmaus <flo@geekplace.eu>
-rw-r--r--dev-java/gradle-bin/Manifest1
-rw-r--r--dev-java/gradle-bin/gradle-bin-7.0.ebuild58
2 files changed, 59 insertions, 0 deletions
diff --git a/dev-java/gradle-bin/Manifest b/dev-java/gradle-bin/Manifest
index db901b46..d5041699 100644
--- a/dev-java/gradle-bin/Manifest
+++ b/dev-java/gradle-bin/Manifest
@@ -10,3 +10,4 @@ DIST gradle-6.4.1-all.zip 145723302 BLAKE2B a1a42a672d117365a8c89d7e68da295ac33e
DIST gradle-6.6.1-all.zip 145214952 BLAKE2B ad3afde7f47a4aa1b618b2a4bb0ef8178a4fc4f08dfeb0957b29a92fa5eb7601074a41631becfd8e8a5bc35bcf03ee95b324ed47da068c43e6568c7f7d8b20fc SHA512 42d438d614fb9cbc5cd8a240eca940fc3d384dfa234f7146eb1dbb53059be7d1ce87504ddfa56bf2e60cba1f9ed28030d8332893e2bee56a71be15aba8805a4c
DIST gradle-6.7.1-all.zip 146321962 BLAKE2B 9127ce5bc05d672930c00efb645ce11bfccb50c55f8a6248337fa3ac5417e1fff6581ef7647c2eb8faad94d5c9b1108bea6d971b0ef5d603bb90bf43f62a2aec SHA512 9cc4e349b4ecfdd327930787ce2d26976eb3d9fb83f224efc40cd38ba078e88883851c4b167eea5d176e935764572ecfb795984724f6abd2140da7b9cff66935
DIST gradle-6.8.3-all.zip 150631445 BLAKE2B 935a6631167481e289ac5a468b822ffeec204519edf42c8a0f05a911ef716715b706e3c22637763b4a7a0c7cbfa89f163673ef5631c115c025c5634b353fcee6 SHA512 fdd5c347142c2a8e2a1455d8886ddb103531de6e69d41f20d199a488d10165600924876761b452da213759a1dc6d47ed00a069f1a9f8af99fdbf1af3bb2e0564
+DIST gradle-7.0-all.zip 154770448 BLAKE2B 8658dd3d8cfcf724612035ac6e5b8d019b3ba9d14202d0a16a0206350327d358d7ad527f94266cb646104ebe161ffe6bfb228ffde8bba73bb1dc66c57a10ada8 SHA512 0d1f11b5382960c5262e8013dabfd7ec885a5f056f43cb44e55670ff63c2218e7be86f9f8de73fda74842b8b7e4d07c268159ba0a18b8d4dc73e01d28eab66e9
diff --git a/dev-java/gradle-bin/gradle-bin-7.0.ebuild b/dev-java/gradle-bin/gradle-bin-7.0.ebuild
new file mode 100644
index 00000000..d20aec89
--- /dev/null
+++ b/dev-java/gradle-bin/gradle-bin-7.0.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+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"
+HOMEPAGE="https://www.gradle.org/"
+LICENSE="Apache-2.0"
+SLOT="${PV}"
+KEYWORDS="~amd64 ~x86"
+
+DEPEND="app-eselect/eselect-gradle"
+BDEPEND="app-arch/unzip"
+RDEPEND="
+ ${DEPEND}
+ virtual/jre
+"
+
+IUSE="source doc"
+
+S="${WORKDIR}/${MY_P}"
+
+src_install() {
+ local gradle_dir="${EPREFIX}/usr/share/${PN}-${SLOT}"
+
+ dodoc docs/release-notes.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
+
+ insinto "${gradle_dir}"
+ doins -r bin/ lib/
+ fperms 755 "${gradle_dir}/bin/gradle"
+ dosym "${gradle_dir}/bin/gradle" "/usr/bin/${PN}-${SLOT}"
+}
+
+pkg_postinst() {
+ eselect gradle update ifunset
+}
+
+pkg_postrm() {
+ eselect gradle update ifunset
+}