perl-bioperl: fixed version 1.007002 (#16826)
* [perl-bioperl] fixed url for version 1.007002 * [perl-bioperl] fixed conditional method directives
This commit is contained in:
parent
857d2c9150
commit
3a66d0773c
@ -38,7 +38,8 @@ class PerlBioperl(PerlPackage):
|
||||
version('1.7.6',
|
||||
sha256='df2a3efc991b9b5d7cc9d038a1452c6dac910c9ad2a0e47e408dd692c111688d',
|
||||
preferred=True)
|
||||
version('1.007002', sha256='17aa3aaab2f381bbcaffdc370002eaf28f2c341b538068d6586b2276a76464a1')
|
||||
version('1.007002', sha256='17aa3aaab2f381bbcaffdc370002eaf28f2c341b538068d6586b2276a76464a1',
|
||||
url='https://cpan.metacpan.org/authors/id/C/CJ/CJFIELDS/BioPerl-1.007002.tar.gz')
|
||||
|
||||
# According to cpandeps.grinnz.com Module-Build is both a build and run
|
||||
# time dependency for BioPerl
|
||||
@ -67,7 +68,7 @@ class PerlBioperl(PerlPackage):
|
||||
depends_on('perl-libwww-perl', when='@1.7.6:', type=('build', 'run'))
|
||||
depends_on('perl-libxml-perl', when='@1.7.6:', type=('build', 'run'))
|
||||
|
||||
@when('@1.7.2')
|
||||
@when('@1.007002')
|
||||
def configure(self, spec, prefix):
|
||||
# Overriding default configure method in order to cater to interactive
|
||||
# Build.pl
|
||||
@ -102,10 +103,10 @@ def configure(self, spec, prefix):
|
||||
# Build script is run through perl and not use the shebang, as it might be
|
||||
# too long. This is needed because this does not pick up the
|
||||
# `@run_after(configure)` step defined in `PerlPackage`.
|
||||
@when('@1.7.2')
|
||||
@when('@1.007002')
|
||||
def build(self, spec, prefix):
|
||||
inspect.getmodule(self).perl('Build')
|
||||
|
||||
@when('@1.7.2')
|
||||
@when('@1.007002')
|
||||
def install(self, spec, prefix):
|
||||
inspect.getmodule(self).perl('Build', 'install')
|
||||
|
Loading…
Reference in New Issue
Block a user