From: "Florian Schmaus" <flow@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/java:master commit in: eclass/
Date: Wed, 28 Jun 2023 07:38:57 +0000 (UTC) [thread overview]
Message-ID: <1687937156.405da11dfd1d79f8766dcae6ecbba9397c0ee799.flow@gentoo> (raw)
commit: 405da11dfd1d79f8766dcae6ecbba9397c0ee799
Author: Florian Schmaus <flow <AT> gentoo <DOT> org>
AuthorDate: Wed Jun 28 07:24:23 2023 +0000
Commit: Florian Schmaus <flow <AT> gentoo <DOT> org>
CommitDate: Wed Jun 28 07:25:56 2023 +0000
URL: https://gitweb.gentoo.org/proj/java.git/commit/?id=405da11d
gradle.eclass: add gradle-src_unpack
Signed-off-by: Florian Schmaus <flow <AT> gentoo.org>
eclass/gradle.eclass | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/eclass/gradle.eclass b/eclass/gradle.eclass
index 7595923d..91c8299d 100644
--- a/eclass/gradle.eclass
+++ b/eclass/gradle.eclass
@@ -32,6 +32,10 @@
# ...
# $(gradle_src_uri)
# "
+# src_unpack() {
+# default
+# gradle-src_unpack
+# }
# @CODE
#
# Afterwards, use egradle to invoke gradle.
@@ -160,6 +164,18 @@ gradle-src_uri() {
echo "https://services.gradle.org/distributions/gradle-${EGRADLE_BUNDLED_VER}-bin.zip"
}
+# @FUNCTION: gradle-src_unpack
+# @DESCRIPTION:
+# Unpack the "bundled" gradle version. You must have
+# EGRADLE_BUNDLED_VER set when calling this function.
+gradle-src_unpack() {
+ if [[ -z ${EGRADLE_BUNDLED_VER} ]]; then
+ die "Must set EGRADLE_BUNDLED_VER when calling gradle-src_unpack"
+ fi
+
+ unpack "gradle-${EGRADLE_BUNDLED_VER}-bin.zip"
+}
+
# @FUNCTION: egradle
# @USAGE: [gradle-args]
# @DESCRIPTION:
next reply other threads:[~2023-06-28 7:39 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-06-28 7:38 Florian Schmaus [this message]
-- strict thread matches above, loose matches on Subject: below --
2023-06-28 7:38 [gentoo-commits] proj/java:master commit in: eclass/ Florian Schmaus
2023-03-16 13:40 Florian Schmaus
2023-03-16 10:49 Florian Schmaus
2023-03-16 10:45 Florian Schmaus
2023-01-08 10:53 Florian Schmaus
2023-01-08 10:52 Florian Schmaus
2023-01-08 10:51 Florian Schmaus
2023-01-08 10:29 Florian Schmaus
2023-01-06 17:11 Florian Schmaus
2023-01-06 17:10 Florian Schmaus
2023-01-06 14:53 Florian Schmaus
2023-01-06 13:32 Florian Schmaus
2022-07-23 10:41 Florian Schmaus
2021-06-30 7:22 Florian Schmaus
2015-07-22 18:37 James Le Cuirot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1687937156.405da11dfd1d79f8766dcae6ecbba9397c0ee799.flow@gentoo \
--to=flow@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox