From f166f57f0958db6dad07d261a3517279795db813 Mon Sep 17 00:00:00 2001 From: Mark Olesen Date: Fri, 7 Apr 2017 20:06:09 +0200 Subject: remove mxml CFLAGS option that was breaking configure (fixes #3700) (#3706) - provide urls for versions 2.7, 2.6, 2.5 (archive copies) --- var/spack/repos/builtin/packages/mxml/package.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/var/spack/repos/builtin/packages/mxml/package.py b/var/spack/repos/builtin/packages/mxml/package.py index 435fd748b3..ef05b85da0 100644 --- a/var/spack/repos/builtin/packages/mxml/package.py +++ b/var/spack/repos/builtin/packages/mxml/package.py @@ -41,9 +41,12 @@ class Mxml(AutotoolsPackage): version('2.6', '68977789ae64985dddbd1a1a1652642e') version('2.5', 'f706377fba630b39fa02fd63642b17e5') - # module swap PrgEnv-intel PrgEnv-$COMP - # (Can use whatever compiler you want to use) - # Case statement to change CC and CXX flags + def url_for_version(self, version): + if version <= Version('2.7'): + return 'https://github.com/michaelrsweet/mxml/archive/release-{0}.tar.gz'.format(version) + else: + return 'https://github.com/michaelrsweet/mxml/releases/download/release-{0}/mxml-{0}.tar.gz'.format(version) def configure_args(self): - return ['--disable-shared', 'CFLAGS=-static'] + # Default is non-shared, but avoid any future surprises + return ['--disable-shared'] -- cgit v1.2.3-70-g09d2