From b7e0fec5f09752ea892ace1ca41b347f60310530 Mon Sep 17 00:00:00 2001
From: darmac <xiaojun2@hisilicon.com>
Date: Sat, 1 Aug 2020 02:25:22 +0800
Subject: [PATCH] Alluxio (package): update url, add versions (#17805)

* Add versions 2.2.1 and 2.2.0
* Remove version 2.1.0
* Add dependency on Java
---
 .../repos/builtin/packages/alluxio/package.py   | 17 ++++++++++-------
 1 file changed, 10 insertions(+), 7 deletions(-)

diff --git a/var/spack/repos/builtin/packages/alluxio/package.py b/var/spack/repos/builtin/packages/alluxio/package.py
index d608af7a05..a0c9be78b0 100644
--- a/var/spack/repos/builtin/packages/alluxio/package.py
+++ b/var/spack/repos/builtin/packages/alluxio/package.py
@@ -7,17 +7,20 @@
 
 
 class Alluxio(Package):
-    """
-    Alluxio (formerly known as Tachyon) is a virtual distributed storage
+    """Alluxio (formerly known as Tachyon) is a virtual distributed storage
     system. It bridges the gap between computation frameworks and storage
     systems, enabling computation applications to connect to numerous
-    storage systems through a common interface.
-    """
+    storage systems through a common interface."""
 
-    homepage = "https://github.com/Alluxio/alluxio"
-    url      = "https://github.com/Alluxio/alluxio/archive/v2.1.0.tar.gz"
+    homepage = "https://www.alluxio.io"
+    url      = "https://downloads.alluxio.io/downloads/files/2.2.1/alluxio-2.2.1-bin.tar.gz"
+    list_url = "https://downloads.alluxio.io/downloads/files"
+    list_depth = 1
 
-    version('2.1.0', sha256='c8b5b7848488e0ac10b093eea02ef05fa822250669d184291cc51b2f8aac253e')
+    version('2.2.1', sha256='0c6b0afcc4013437afb8113e1dfda9777561512269ea349c7fbf353dc0efd28a')
+    version('2.2.0', sha256='635847ea1a0f8ad04c99518620de035d4962fbfa9e5920bb0911ccf8e5ea82fc')
+
+    depends_on('java@8', type='run')
 
     def install(self, spec, prefix):
         install_tree('.', prefix)
-- 
GitLab