summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordarmac <xiaojun2@hisilicon.com>2020-05-25 19:41:08 +0800
committerGitHub <noreply@github.com>2020-05-25 13:41:08 +0200
commit99d9967b8be0d50b288ce44b552f0534d46e051c (patch)
tree1509f218326f9fd4e64f63da840f4468d90bc1e5
parent995714cba52ff9f9efbd12ce438b23467a21213a (diff)
downloadspack-99d9967b8be0d50b288ce44b552f0534d46e051c.tar.gz
spack-99d9967b8be0d50b288ce44b552f0534d46e051c.tar.bz2
spack-99d9967b8be0d50b288ce44b552f0534d46e051c.tar.xz
spack-99d9967b8be0d50b288ce44b552f0534d46e051c.zip
sqoop: added new package at v1.99.7 (#16786)
-rw-r--r--var/spack/repos/builtin/packages/sqoop/package.py27
1 files changed, 27 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/sqoop/package.py b/var/spack/repos/builtin/packages/sqoop/package.py
new file mode 100644
index 0000000000..d0fcb22d1e
--- /dev/null
+++ b/var/spack/repos/builtin/packages/sqoop/package.py
@@ -0,0 +1,27 @@
+# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other
+# Spack Project Developers. See the top-level COPYRIGHT file for details.
+#
+# SPDX-License-Identifier: (Apache-2.0 OR MIT)
+
+from spack import *
+
+
+class Sqoop(Package):
+ """Apache Sqoop is a tool designed for efficiently transferring bulk
+ data between Apache Hadoop and structured datastores such as relational
+ databases."""
+
+ homepage = "http://sqoop.apache.org/"
+ url = "https://downloads.apache.org/sqoop/1.99.7/sqoop-1.99.7.tar.gz"
+ list_url = "https://downloads.apache.org/sqoop/"
+ list_depth = 1
+
+ version('1.99.7', sha256='caca533554235d9e999435be59a13b5ecae514b3c914ca3b54868fca43a3b74a')
+
+ depends_on('maven', type='build')
+ depends_on('java@8', type=('build', 'run'))
+
+ def install(self, spec, prefix):
+ mvn = which('mvn')
+ mvn('clean', 'install', '-DskipTests')
+ install_tree('.', prefix)