diff options
author | Patrice Clement <monsieurp@gentoo.org> | 2020-11-26 12:09:41 +0100 |
---|---|---|
committer | Patrice Clement <monsieurp@gentoo.org> | 2020-11-26 12:10:06 +0100 |
commit | cce191a13c99652d2c6a506d836dc61262cceaa0 (patch) | |
tree | a560be6f408cde3f2113175500c67d4261ec3f47 /sys-cluster | |
parent | sys-cluster/spark-bin: add spark version 2.4.7. (diff) | |
download | gentoo-cce191a13c99652d2c6a506d836dc61262cceaa0.tar.gz gentoo-cce191a13c99652d2c6a506d836dc61262cceaa0.tar.bz2 gentoo-cce191a13c99652d2c6a506d836dc61262cceaa0.zip |
sys-cluster/spark-bin: SLOT spark 3.
Package-Manager: Portage-3.0.9, Repoman-3.0.2
Signed-off-by: Patrice Clement <monsieurp@gentoo.org>
Diffstat (limited to 'sys-cluster')
-rw-r--r-- | sys-cluster/spark-bin/spark-bin-3.0.1-r1.ebuild | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/sys-cluster/spark-bin/spark-bin-3.0.1-r1.ebuild b/sys-cluster/spark-bin/spark-bin-3.0.1-r1.ebuild new file mode 100644 index 000000000000..d3c6e1123fbc --- /dev/null +++ b/sys-cluster/spark-bin/spark-bin-3.0.1-r1.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit java-pkg-2 + +DESCRIPTION="Lightning-fast unified analytics engine" +HOMEPAGE="https://spark.apache.org" +SRC_URI="mirror://apache/spark/spark-${PV}/spark-${PV}-bin-hadoop2.7.tgz -> ${P}.tgz" + +LICENSE="Apache-2.0" +SLOT="3" +KEYWORDS="~amd64" + +RDEPEND=" + >=virtual/jre-1.8" + +DEPEND=" + >=virtual/jdk-1.8" + +S="${WORKDIR}/spark-${PV}-bin-hadoop2.7" + +DOCS=( LICENSE NOTICE README.md RELEASE ) + +# Nothing to compile here. +src_compile() { :; } + +src_install() { + dodir usr/lib/spark-${SLOT} + into usr/lib/spark-${SLOT} + + dobin bin/beeline \ + bin/find-spark-home \ + bin/pyspark \ + bin/spark-class \ + bin/spark-shell \ + bin/spark-sql \ + bin/spark-submit + + insinto usr/lib/spark-${SLOT}/bin + doins bin/load-spark-env.sh + + insinto usr/lib/spark-${SLOT} + doins -r conf + doins -r jars + doins -r python + doins -r sbin + doins -r yarn + + einstalldocs +} + +pkg_postinst() { + einfo + einfo "Spark is now slotted. You have installed Spark ${SLOT}." + einfo + einfo "Make sure to add /usr/lib/spark-${SLOT}/{bin,sbin} directories" + einfo "to your PATH in order to run Spark shell scripts:" + einfo + einfo "$ export PATH=\$PATH:/usr/lib/spark-${SLOT}/bin" + einfo "$ export PATH=\$PATH:/usr/lib/spark-${SLOT}/sbin" + einfo +} |