spack/var/spack/repos/builtin/packages/transdecoder/package.py
Glenn Johnson c56f03a3ba The perl-uri-escape package duplicates perl-uri (#12971)
* The perl-uri-escape package duplicates perl-uri

The Perl URI::Escape module is in the Perl URI package so the Spack
perl-uri-escape package is a duplicate of the perl-uri package. This PR
does the following:

- replace `depends_on('perl-uri-escape')` with `depends_on('perl-uri')`
  in packages that dependend on perl-uri-escape
- add the version from perl-uri-escape to perl-uri
- remove the unneeded dependency from perl-uri
- remove the perl-uri-escape package

* Reinstated perl-test-needs dependency

Put the perl-test-needs dependency for perl-uri back in but set it to
type='test'.

* For tests to succeed the type must be ('build', 'test')
2019-09-29 09:27:42 -05:00

35 lines
1.4 KiB
Python

# Copyright 2013-2019 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 Transdecoder(MakefilePackage):
"""TransDecoder identifies candidate coding regions within transcript
sequences, such as those generated by de novo RNA-Seq transcript
assembly using Trinity, or constructed based on RNA-Seq alignments to
the genome using Tophat and Cufflinks."""
homepage = "http://transdecoder.github.io/"
url = "https://github.com/TransDecoder/TransDecoder/archive/TransDecoder-v5.5.0.tar.gz"
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-uri', type='run')
def install(self, spec, prefix):
mkdirp(prefix.util)
install('TransDecoder.LongOrfs', prefix)
install('TransDecoder.Predict', prefix)
install_tree('PerlLib', prefix.PerlLib)
install_tree('util', prefix.util)
def setup_environment(self, spack_env, run_env):
run_env.prepend_path('PATH', prefix)
run_env.prepend_path('PATH', prefix.util)