transdecoder package: Add version 5.5.0 and fix up url and installation paths (#10745)

* Add version 5.5.0 and fix installation locations
* URL format has changed as of version 5.5.0
* Update paths created for installation
This commit is contained in:
Eric Martin 2019-03-06 20:58:50 -06:00 committed by Peter Scheibel
parent 45856c3660
commit efdeb860d1

View file

@ -13,20 +13,22 @@ class Transdecoder(MakefilePackage):
the genome using Tophat and Cufflinks.""" the genome using Tophat and Cufflinks."""
homepage = "http://transdecoder.github.io/" homepage = "http://transdecoder.github.io/"
url = "https://github.com/TransDecoder/TransDecoder/archive/v3.0.1.tar.gz" url = "https://github.com/TransDecoder/TransDecoder/archive/TransDecoder-v5.5.0.tar.gz"
version('3.0.1', 'f62b86a15fcb78b1dada9f80cc25f300') version('5.5.0', sha256='c800d9226350817471e9f51267c91f7cab99dbc9b26c980527fc1019e7d90a76')
version('3.0.1', 'f62b86a15fcb78b1dada9f80cc25f300',
url='https://github.com/TransDecoder/TransDecoder/archive/v3.0.1.tar.gz')
depends_on('perl', type=('build', 'run')) depends_on('perl', type=('build', 'run'))
depends_on('perl-uri-escape', type='run') depends_on('perl-uri-escape', type='run')
def install(self, spec, prefix): def install(self, spec, prefix):
mkdirp(prefix.bin) mkdirp(prefix.util)
install('TransDecoder.LongOrfs', prefix) install('TransDecoder.LongOrfs', prefix)
install('TransDecoder.Predict', prefix) install('TransDecoder.Predict', prefix)
install_tree('PerlLib', prefix.PerlLib) install_tree('PerlLib', prefix.PerlLib)
install_tree('util', prefix.util) install_tree('util', prefix.util)
def setup_environment(self, spack_env, run_env): def setup_environment(self, spack_env, run_env):
run_env.prepend_path('PATH', prefix.util.bin)
run_env.prepend_path('PATH', prefix) run_env.prepend_path('PATH', prefix)
run_env.prepend_path('PATH', prefix.util)