structure: fixing build errors with gcc10+ removing unused dep (#28097)
This commit is contained in:
parent
8ebad6963b
commit
389beaef97
@ -15,12 +15,14 @@ class Structure(MakefilePackage):
|
||||
|
||||
version('2.3.4', sha256='f2b72b9189a514f53e921bbdc1aa3dbaca7ac34a8467af1f972c7e4fc9c0bb37')
|
||||
|
||||
depends_on('jdk', type=('build', 'run'))
|
||||
|
||||
def url_for_version(self, version):
|
||||
url = "http://web.stanford.edu/group/pritchardlab/structure_software/release_versions/v{0}/structure_kernel_source.tar.gz"
|
||||
return url.format(version)
|
||||
|
||||
@when('%gcc@10:')
|
||||
def edit(self, spec, prefix):
|
||||
filter_file(r'(CFLAGS =.*$)', '\\1 -fcommon', 'Makefile')
|
||||
|
||||
def install(self, spec, prefix):
|
||||
mkdirp(prefix.bin)
|
||||
install('structure', prefix.bin)
|
||||
|
Loading…
Reference in New Issue
Block a user