Augustus hash (#7447)

* augustus: 3.3 package hash changed

* augustus: bamtools libraries now seem to be in lib64

* augustus: fix lib problem with older bamtools
This commit is contained in:
Levi Baber 2018-03-09 18:05:39 -06:00 committed by becker33
parent a4e75c7f0e
commit 3945b2adb4

View file

@ -49,18 +49,28 @@ def edit(self, spec, prefix):
'bamtools'].prefix) 'bamtools'].prefix)
makefile.filter('INCLUDES = *', makefile.filter('INCLUDES = *',
'INCLUDES = -I$(BAMTOOLS)/include/bamtools ') 'INCLUDES = -I$(BAMTOOLS)/include/bamtools ')
if 'bamtools@2.5:' in spec:
makefile.filter('LIBS = -lbamtools -lz', makefile.filter('LIBS = -lbamtools -lz',
'LIBS = $(BAMTOOLS)/lib64/' 'LIBS = $(BAMTOOLS)/lib64/'
'/libbamtools.a -lz') '/libbamtools.a -lz')
if 'bamtools@:2.4' in spec:
makefile.filter('LIBS = -lbamtools -lz',
'LIBS = $(BAMTOOLS)/lib/bamtools'
'/libbamtools.a -lz')
with working_dir(join_path('auxprogs', 'bam2hints')): with working_dir(join_path('auxprogs', 'bam2hints')):
makefile = FileFilter('Makefile') makefile = FileFilter('Makefile')
makefile.filter('# Variable definition', makefile.filter('# Variable definition',
'BAMTOOLS = %s' % self.spec['bamtools'].prefix) 'BAMTOOLS = %s' % self.spec['bamtools'].prefix)
makefile.filter('INCLUDES = /usr/include/bamtools', makefile.filter('INCLUDES = /usr/include/bamtools',
'INCLUDES = $(BAMTOOLS)/include/bamtools') 'INCLUDES = $(BAMTOOLS)/include/bamtools')
if 'bamtools@2.5:' in spec:
makefile.filter('LIBS = -lbamtools -lz', makefile.filter('LIBS = -lbamtools -lz',
'LIBS = $(BAMTOOLS)/lib64/' 'LIBS = $(BAMTOOLS)/lib64/'
'/libbamtools.a -lz') '/libbamtools.a -lz')
if 'bamtools@:2.4' in spec:
makefile.filter('LIBS = -lbamtools -lz',
'LIBS = $(BAMTOOLS)/lib/bamtools'
'/libbamtools.a -lz')
def install(self, spec, prefix): def install(self, spec, prefix):
install_tree('bin', join_path(self.spec.prefix, 'bin')) install_tree('bin', join_path(self.spec.prefix, 'bin'))