summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Kuhn <suraia@ikkoku.de>2017-03-31 20:41:08 +0200
committerAdam J. Stewart <ajstewart426@gmail.com>2017-03-31 13:41:08 -0500
commit0d421137f4db203250428c36518a69dec312a2ea (patch)
treea5231b98051809b1d7ff575443d745a55706022e
parent343f3b2fde46f2de34f16ed1cacbd7455b4a8498 (diff)
downloadspack-0d421137f4db203250428c36518a69dec312a2ea.tar.gz
spack-0d421137f4db203250428c36518a69dec312a2ea.tar.bz2
spack-0d421137f4db203250428c36518a69dec312a2ea.tar.xz
spack-0d421137f4db203250428c36518a69dec312a2ea.zip
Fix mxml (#3639)
mxml is now hosted on GitHub.
-rw-r--r--lib/spack/spack/url.py1
-rw-r--r--var/spack/repos/builtin/packages/mxml/package.py7
2 files changed, 6 insertions, 2 deletions
diff --git a/lib/spack/spack/url.py b/lib/spack/spack/url.py
index 65f8e12e58..89f4a16dfc 100644
--- a/lib/spack/spack/url.py
+++ b/lib/spack/spack/url.py
@@ -370,6 +370,7 @@ def parse_name_offset(path, v=None):
(r'/([^/]+)/(tarball|zipball)/', path),
(r'/([^/]+)[_.-](bin|dist|stable|src|sources)[_.-]%s' % v, path),
(r'github.com/[^/]+/([^/]+)/archive', path),
+ (r'github.com/[^/]+/([^/]+)/releases', path),
(r'[^/]+/([^/]+)/repository/archive', path), # gitlab
(r'([^/]+)/download.php', path),
diff --git a/var/spack/repos/builtin/packages/mxml/package.py b/var/spack/repos/builtin/packages/mxml/package.py
index fcb7959678..cd53c67dff 100644
--- a/var/spack/repos/builtin/packages/mxml/package.py
+++ b/var/spack/repos/builtin/packages/mxml/package.py
@@ -31,8 +31,8 @@ class Mxml(AutotoolsPackage):
non-standard libraries.
"""
- homepage = "http://www.msweet.org"
- url = "http://www.msweet.org/files/project3/mxml-2.9.tar.gz"
+ homepage = "http://michaelrsweet.github.io/mxml/"
+ url = "https://github.com/michaelrsweet/mxml/releases/download/release-2.10/mxml-2.10.tar.gz"
version('2.10', '8804c961a24500a95690ef287d150abe')
version('2.9', 'e21cad0f7aacd18f942aa0568a8dee19')
@@ -41,6 +41,9 @@ class Mxml(AutotoolsPackage):
version('2.6', '68977789ae64985dddbd1a1a1652642e')
version('2.5', 'f706377fba630b39fa02fd63642b17e5')
+ def url_for_version(self, version):
+ return "https://github.com/michaelrsweet/mxml/releases/download/release-{0}/mxml-{0}.tar.gz".format(version)
+
# module swap PrgEnv-intel PrgEnv-$COMP
# (Can use whatever compiler you want to use)
# Case statement to change CC and CXX flags