soapdenovo-trans: build on aarch64 (#18187)

* samtools: Add version 0.1.8 for OSS soapdenovo-trans.

* Add depend on zlib and samtools to build on aarch64.

* soapdenovo-trans: Change the condition of depend on zlib and samtools.
This commit is contained in:
t-nojiri 2020-08-23 12:11:19 +09:00 committed by GitHub
parent a6ca236c26
commit b721a2e54b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 1 deletions

View File

@ -23,6 +23,8 @@ class Samtools(Package):
version('1.4', sha256='9aae5bf835274981ae22d385a390b875aef34db91e6355337ca8b4dd2960e3f4')
version('1.3.1', sha256='6c3d74355e9cf2d9b2e1460273285d154107659efa36a155704b1e4358b7d67e')
version('1.2', sha256='420e7a4a107fe37619b9d300b6379452eb8eb04a4a9b65c3ec69de82ccc26daa')
version('0.1.8', sha256='343daf96f035c499c5b82dce7b4d96b10473308277e40c435942b6449853815b',
url="https://github.com/samtools/samtools/archive/0.1.8.tar.gz")
depends_on('zlib')
depends_on('ncurses')
@ -55,7 +57,10 @@ def install(self, spec, prefix):
else:
make('prefix={0}'.format(prefix),
'LIBCURSES={0}'.format(curses_lib))
make('prefix={0}'.format(prefix), 'install')
if self.spec.version == Version('0.1.8'):
make('prefix={0}'.format(prefix))
else:
make('prefix={0}'.format(prefix), 'install')
# Install dev headers and libs for legacy apps depending on them
mkdir(prefix.include)

View File

@ -16,6 +16,9 @@ class SoapdenovoTrans(MakefilePackage):
version('1.0.4', sha256='378a54cde0ebe240fb515ba67197c053cf95393645c1ae1399b3a611be2a9795')
depends_on('zlib', type='link')
depends_on('samtools@0.1.8', type='link')
build_directory = 'src'
def edit(self, spec, prefix):
@ -23,6 +26,8 @@ def edit(self, spec, prefix):
makefile = FileFilter('Makefile')
makefile.filter('CFLAGS= -O3 -fomit-frame-pointer -static',
'CFLAGS= -O3 -fomit-frame-pointer')
if spec.target.family == 'aarch64':
makefile.filter('ppc64 ia64', 'ppc64 ia64 aarch64')
def build(self, spec, prefix):
with working_dir(self.build_directory):