spack/var/spack/repos/builtin/packages/bbmap/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

26 lines
885 B
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 Bbmap(Package, SourceforgePackage):
"""Short read aligner for DNA and RNA-seq data."""
homepage = "http://sourceforge.net/projects/bbmap/"
sourceforge_mirror_path = "bbmap/BBMap_38.63.tar.gz"
version('38.63', sha256='089064104526c8d696164aefa067f935b888bc71ef95527c72a98c17ee90a01f')
version('37.36', sha256='befe76d7d6f3d0f0cd79b8a01004a2283bdc0b5ab21b0743e9dbde7c7d79e8a9')
depends_on('java')
def install(self, spec, prefix):
install_tree('.', prefix.bin)
def setup_run_environment(self, env):
env.set('BBMAP_CONFIG', self.prefix.bin.config)
env.set('BBMAP_RESOURCES', self.prefix.bin.resources)