structure: fixing build errors with gcc10+ removing unused dep (#28097)

This commit is contained in:
snehring 2021-12-21 11:39:26 -06:00 committed by GitHub
parent 8ebad6963b
commit 389beaef97
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)