spack/var/spack/repos/builtin/packages/meraculous/package.py
Axel Huebl abbc47823d
SourceForge: Mirror Mixin (#16112)
* SourceForge: Mirror Mixin

Add a mixing class for direct `CNAME`s to sourceforge mirrors.
Since the main gateway servers are often down, this could reduce
timeouts and fetch errors for sourceforge.net hosted software.

* SourceForge: unspectacular mirror replacement

add mirrors to all sourceforge packages with trivial
download logic.

tested fetch of latest version of each of these packages
with various mirrors before committing.

* SourceForge: xz

the author homepage is chronocially overrun and this is the offical
upload with many mirrors.
2020-04-16 21:35:30 -07:00

34 lines
1.2 KiB
Python

# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
class Meraculous(CMakePackage, SourceforgePackage):
"""Meraculous is a while genome assembler for Next Generation Sequencing
data geared for large genomes."""
homepage = "http://jgi.doe.gov/data-and-tools/meraculous/"
sourceforge_mirror_path = "meraculous20/Meraculous-v2.2.4.tar.gz"
git = "https://bitbucket.org/berkeleylab/genomics-meraculous2.git"
version('2.2.5.1', branch='release-2.2.5.1')
version('2.2.4', sha256='3b4b8848232be902af9ebc77b38b83bcc531f12120115be089bdd6371ad2bf5b')
depends_on('perl', type=('build', 'run'))
depends_on('boost@1.5.0:')
depends_on('gnuplot@3.7:')
depends_on('perl-log-log4perl', type=('build', 'run'))
conflicts('%gcc@6.0.0:', when='@2.2.4')
def patch(self):
edit = FileFilter('CMakeLists.txt')
edit.filter(r"-static-libstdc\+\+", "")
def setup_run_environment(self, env):
env.set('MERACULOUS_ROOT', self.prefix)
env.prepend_path('PERL5LIB', self.prefix.lib)