summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--var/spack/repos/builtin/packages/mxml/package.py11
1 files 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']