1 |
commit: 2f9364ff1df6d73f6012a94ebf90fe98ff7279cd |
2 |
Author: Alec Ten Harmsel <alec <AT> alectenharmsel <DOT> com> |
3 |
AuthorDate: Tue Sep 7 16:20:06 2021 +0000 |
4 |
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Sep 21 07:03:03 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2f9364ff |
7 |
|
8 |
sys-cluster/spark-bin: Add version 3.1.2 |
9 |
|
10 |
Package-Manager: Portage-3.0.20, Repoman-3.0.3 |
11 |
Signed-off-by: Alec Ten Harmsel <alec <AT> alectenharmsel.com> |
12 |
Closes: https://github.com/gentoo/gentoo/pull/22238 |
13 |
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org> |
14 |
|
15 |
sys-cluster/spark-bin/Manifest | 1 + |
16 |
sys-cluster/spark-bin/spark-bin-3.1.2.ebuild | 70 ++++++++++++++++++++++++++++ |
17 |
2 files changed, 71 insertions(+) |
18 |
|
19 |
diff --git a/sys-cluster/spark-bin/Manifest b/sys-cluster/spark-bin/Manifest |
20 |
index 92ebba20e9a..34d3a6ebefb 100644 |
21 |
--- a/sys-cluster/spark-bin/Manifest |
22 |
+++ b/sys-cluster/spark-bin/Manifest |
23 |
@@ -3,3 +3,4 @@ DIST spark-bin-2.4.3-nohadoop-scala212.tgz 141465231 BLAKE2B e29b534076b981e3408 |
24 |
DIST spark-bin-2.4.7-nohadoop-scala211.tgz 168360525 BLAKE2B 9a8728a1c7450166d4d9635ff1be6a65d57df1832945672e92044e0fc88ef152e7e870d02ec590378ea97a47d4a68568da73e6a1e92f8eaaaa06f495ed9939ad SHA512 ff75e6db3c4ca5cece2a8a26ad7bd8a2c1c46b4f93e8f2922a31e6a8d98274bedc66bef3e469e862d249c5439355ccca83687a20d536a8400f2c058be553df57 |
25 |
DIST spark-bin-2.4.7-nohadoop-scala212.tgz 146775712 BLAKE2B f0381e6aebeae90990d5ad19d8db923efd01e9b215ddfe34e34a8272942e57fe7ec6a53208146006ba5c4e76f8e44d202e0715f63b559cc8749b523710b92a5f SHA512 708a702af5c754dba0137c88e3c7055d7759593f013798755468638b6fdc583a707aae4c2a4e14648f91c16b963f9bba9f8c44d28341c08c4512590a425f70a8 |
26 |
DIST spark-bin-3.0.1-nohadoop.tgz 156390722 BLAKE2B 9ac4645759ca0ec6d1501dfa79d149b9cbf49dee1c4b9dcf38f62490d3ad91db01ad61d9d6b1ef4dd7bcb81a868cb58b9251575dded823c8415801d10571afee SHA512 07fc6df224f303ef53189e6082004400d51cd6c2244d1851d90eabbe58404a69ff980bffe147a5259a34190e1e1c974c72d02470d10a783d2d87f43a8da0850b |
27 |
+DIST spark-bin-3.1.2-hadoop.tgz 228834641 BLAKE2B 7b0191a15414146a96394abc489940a5e572cea66749b6201f234878935c6591ff809f551dae7d6c7c996baefd551cd27c5c967e2f06184ffe2bf972f901f1ba SHA512 2385cb772f21b014ce2abd6b8f5e815721580d6e8bc42a26d70bbcdda8d303d886a6f12b36d40f6971b5547b70fae62b5a96146f0421cb93d4e51491308ef5d5 |
28 |
|
29 |
diff --git a/sys-cluster/spark-bin/spark-bin-3.1.2.ebuild b/sys-cluster/spark-bin/spark-bin-3.1.2.ebuild |
30 |
new file mode 100644 |
31 |
index 00000000000..63d7f5bbac0 |
32 |
--- /dev/null |
33 |
+++ b/sys-cluster/spark-bin/spark-bin-3.1.2.ebuild |
34 |
@@ -0,0 +1,70 @@ |
35 |
+# Copyright 1999-2021 Gentoo Authors |
36 |
+# Distributed under the terms of the GNU General Public License v2 |
37 |
+ |
38 |
+EAPI=7 |
39 |
+ |
40 |
+inherit java-pkg-2 |
41 |
+ |
42 |
+DESCRIPTION="Lightning-fast unified analytics engine" |
43 |
+HOMEPAGE="https://spark.apache.org" |
44 |
+SRC_URI="mirror://apache/spark/spark-${PV}/spark-${PV}-bin-hadoop3.2.tgz -> ${P}-hadoop.tgz" |
45 |
+ |
46 |
+LICENSE="Apache-2.0" |
47 |
+SLOT="3" |
48 |
+KEYWORDS="~amd64" |
49 |
+ |
50 |
+RDEPEND=" |
51 |
+ >=virtual/jre-1.8" |
52 |
+ |
53 |
+DEPEND=" |
54 |
+ >=virtual/jdk-1.8" |
55 |
+ |
56 |
+S="${WORKDIR}/spark-${PV}-bin-hadoop3.2" |
57 |
+ |
58 |
+DOCS=( LICENSE NOTICE README.md RELEASE ) |
59 |
+ |
60 |
+# Nothing to compile here. |
61 |
+src_compile() { :; } |
62 |
+ |
63 |
+src_install() { |
64 |
+ dodir usr/lib/spark-${SLOT} |
65 |
+ into usr/lib/spark-${SLOT} |
66 |
+ |
67 |
+ local spark_scripts=( |
68 |
+ bin/beeline |
69 |
+ bin/find-spark-home |
70 |
+ bin/load-spark-env.sh |
71 |
+ bin/pyspark |
72 |
+ bin/spark-class |
73 |
+ bin/spark-shell |
74 |
+ bin/spark-sql |
75 |
+ bin/spark-submit |
76 |
+ ) |
77 |
+ |
78 |
+ local s |
79 |
+ for s in "${spark_scripts[@]}"; do |
80 |
+ dobin "${s}" |
81 |
+ done |
82 |
+ |
83 |
+ insinto usr/lib/spark-${SLOT} |
84 |
+ |
85 |
+ local spark_dirs=( conf jars python sbin yarn ) |
86 |
+ |
87 |
+ local d |
88 |
+ for d in "${spark_dirs[@]}"; do |
89 |
+ doins -r "${d}" |
90 |
+ done |
91 |
+ |
92 |
+ newenvd - "50${PN}${SLOT}" <<-_EOF_ |
93 |
+ PATH="/usr/lib/spark-${SLOT}/bin:/usr/lib/spark-${SLOT}/sbin" |
94 |
+ SPARK_HOME="/usr/lib/spark-${SLOT}" |
95 |
+ _EOF_ |
96 |
+ |
97 |
+ einstalldocs |
98 |
+} |
99 |
+ |
100 |
+pkg_postinst() { |
101 |
+ einfo |
102 |
+ einfo "Spark is now slotted. You have installed Spark ${SLOT}." |
103 |
+ einfo |
104 |
+} |