ea-utils: new version, cleanup, and newer gcc compat (#30204)
This commit is contained in:
parent
3ce8bff22e
commit
157ee3458f
@ -3,6 +3,8 @@
|
|||||||
#
|
#
|
||||||
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
|
|
||||||
|
import os
|
||||||
|
|
||||||
from spack import *
|
from spack import *
|
||||||
|
|
||||||
|
|
||||||
@ -13,20 +15,40 @@ class EaUtils(MakefilePackage):
|
|||||||
|
|
||||||
homepage = "https://expressionanalysis.github.io/ea-utils/"
|
homepage = "https://expressionanalysis.github.io/ea-utils/"
|
||||||
url = "https://github.com/ExpressionAnalysis/ea-utils/archive/1.04.807.tar.gz"
|
url = "https://github.com/ExpressionAnalysis/ea-utils/archive/1.04.807.tar.gz"
|
||||||
|
git = "https://github.com/ExpressionAnalysis/ea-utils.git"
|
||||||
|
maintainers = ['snehring']
|
||||||
|
|
||||||
version('1.04.807', sha256='aa09d25e6aa7ae71d2ce4198a98e58d563f151f8ff248e4602fa437f12b8d05f')
|
version('2021-10-20', commit='10c21926a4dce4289d5052acfd73b8e744d4fede')
|
||||||
|
version('1.04.807', sha256='aa09d25e6aa7ae71d2ce4198a98e58d563f151f8ff248e4602fa437f12b8d05f',
|
||||||
|
deprecated=True)
|
||||||
|
|
||||||
depends_on('subversion')
|
depends_on('sparsehash')
|
||||||
depends_on('zlib')
|
depends_on('zlib')
|
||||||
depends_on('gsl')
|
depends_on('gsl')
|
||||||
depends_on('bamtools')
|
depends_on('bamtools')
|
||||||
# perl module required for make check, which is included in the default
|
depends_on('perl', type=['build', 'run'])
|
||||||
# target
|
|
||||||
depends_on('perl', type='build')
|
|
||||||
|
|
||||||
build_directory = 'clipper'
|
build_directory = 'clipper'
|
||||||
|
|
||||||
def edit(self, spec, prefix):
|
def edit(self, spec, prefix):
|
||||||
with working_dir('clipper'):
|
with working_dir(self.build_directory):
|
||||||
makefile = FileFilter('Makefile')
|
filter_file('/usr', prefix, 'Makefile')
|
||||||
makefile.filter('/usr', prefix)
|
# remove tests from all rule
|
||||||
|
filter_file(r'^all:.*$', 'all: $(BIN)', 'Makefile')
|
||||||
|
# remove the vendored sparsehash
|
||||||
|
filter_file(' sparsehash', '', 'Makefile')
|
||||||
|
# replace system perl references
|
||||||
|
for f in next(os.walk(os.getcwd()))[2]:
|
||||||
|
filter_file('/usr/bin/perl', spec['perl'].prefix.bin.perl, f)
|
||||||
|
# fix up test script require path
|
||||||
|
tests = ['join.t', 'mcf.t', 'multx.t']
|
||||||
|
rep = 'require "{0}";'.format(os.path.join(os.getcwd(),
|
||||||
|
't', 'test-prep.pl'))
|
||||||
|
for f in tests:
|
||||||
|
filter_file(r'^require.*$', rep, os.path.join(os.getcwd(),
|
||||||
|
't', f))
|
||||||
|
|
||||||
|
def flag_handler(self, name, flags):
|
||||||
|
if name.lower() == 'cxxflags':
|
||||||
|
flags.append(self.compiler.cxx11_flag)
|
||||||
|
return (flags, None, None)
|
||||||
|
Loading…
Reference in New Issue
Block a user