diff options
-rw-r--r-- | var/spack/repos/builtin/packages/meme/package.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/meme/package.py b/var/spack/repos/builtin/packages/meme/package.py index b4bb90bb39..8dcd186973 100644 --- a/var/spack/repos/builtin/packages/meme/package.py +++ b/var/spack/repos/builtin/packages/meme/package.py @@ -4,6 +4,7 @@ # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * +from spack.version import Version class Meme(AutotoolsPackage): @@ -12,8 +13,9 @@ class Meme(AutotoolsPackage): wide variety of other motif-based analyses.""" homepage = "http://meme-suite.org" - url = "http://meme-suite.org/meme-software/4.11.4/meme_4.11.4.tar.gz" + url = "http://meme-suite.org/meme-software/5.1.1/meme-5.1.1.tar.gz" + version('5.1.1', sha256='38d73d256d431ad4eb7da2c817ce56ff2b4e26c39387ff0d6ada088938b38eb5') version('4.12.0', sha256='49ff80f842b59d328588acfcd1d15bf94c55fed661d22b0f95f37430cc363a06') version('4.11.4', sha256='3e869ff57e327a9c8615dbef784e3f1095f7f7a0120cecd55efe10c3f2ee8eb3') @@ -28,6 +30,11 @@ class Meme(AutotoolsPackage): depends_on('imagemagick', type=('build', 'run'), when='+image-magick') depends_on('perl-xml-parser', type=('build', 'run')) + def url_for_version(self, version): + url = 'http://meme-suite.org/meme-software/{0}/meme{1}{2}.tar.gz' + sep = '-' if version >= Version('5.0.2') else '_' + return url.format(version.up_to(3), sep, version) + def configure_args(self): spec = self.spec # have meme build its own versions of libxml2/libxslt, see #6736 |