From d8efeabf779616c8fcc29b4b051a42347893a5bc Mon Sep 17 00:00:00 2001
From: George Hartzell <hartzell@alerce.com>
Date: Mon, 19 Dec 2016 14:26:16 -0800
Subject: [PATCH] Update digest for vim@8.0 tarball. (#2600)

* Update digest for vim@8.0 tarball.

The digest appears to have changed.

The new digest value matches the value in their
[MD5SUMS](ftp://ftp.vim.org/pub/vim/unix/MD5SUMS)
file.

* Change ftp.vim.org -> github.com/vim/vim/archive

Vim seems to do weekly releases, but the name of the tarball on
ftp.vim.org doesn't change so we have to regularly play 'update the
digest' (aka Internet whack-a-mole).

This commit changes the url so that we are now downloading particular
versions from the Vim project's github archive.

I didn't walk back through of time to get all of the versions that
used to be explicit.  I grabbed the final `7.4` and the current `8.0`
releases.  If people need more we can add them.
---
 .../repos/builtin/packages/vim/package.py     | 21 +++++--------------
 1 file changed, 5 insertions(+), 16 deletions(-)

diff --git a/var/spack/repos/builtin/packages/vim/package.py b/var/spack/repos/builtin/packages/vim/package.py
index 26aeb4aad9..e2542c3f56 100644
--- a/var/spack/repos/builtin/packages/vim/package.py
+++ b/var/spack/repos/builtin/packages/vim/package.py
@@ -35,21 +35,10 @@ class Vim(Package):
     """
 
     homepage = "http://www.vim.org"
-    url      = "ftp://ftp.vim.org/pub/vim/unix/vim-7.4.tar.bz2"
-    list_url = "http://ftp.vim.org/pub/vim/unix/"
-
-    version('8.0',     '808d2ebdab521e18bc5e0eaede0db867')
-    version('7.4',     '607e135c559be642f210094ad023dc65')
-    version('7.3',     '5b9510a17074e2b37d8bb38ae09edbf2')
-    version('7.2',     'f0901284b338e448bfd79ccca0041254')
-    version('7.1',     '44c6b4914f38d6f9aa959640b89da329')
-    version('7.0',     '4ca69757678272f718b1041c810d82d8')
-    version('6.4',     '774c14d93ce58674b3b2c880edd12d77')
-    version('6.3',     '821fda8f14d674346b87e3ef9cb96389')
-    version('6.2',     'c49d360bbd069d00e2a57804f2a123d9')
-    version('6.1.405', 'd220ff58f2c72ed606e6d0297c2f2a7c')
-    version('6.1',     '7fd0f915adc7c0dab89772884268b030')
-    version('6.0',     '9d9ca84d489af6b3f54639dd97af3774')
+    url      = "https://github.com/vim/vim/archive/v8.0.0134.tar.gz"
+
+    version('8.0.0134', 'c74668d25c2acc85d655430dd60886cd')
+    version('7.4.2367', 'a0a7bc394f7ab1d95571fe6ab05da3ea')
 
     feature_sets = ('huge', 'big', 'normal', 'small', 'tiny')
     for fs in feature_sets:
@@ -67,7 +56,7 @@ class Vim(Package):
     variant('gui', default=False, description="build with gui (gvim)")
     # virtual dependency?
 
-    depends_on('ncurses', when="@8.0:")
+    depends_on('ncurses', when="@7.4:")
 
     def install(self, spec, prefix):
         feature_set = None
-- 
GitLab