Random123: add versions 1.10, 1.13.2 (#17361)

This commit is contained in:
Kelly (KT) Thompson 2020-07-03 00:25:53 -06:00 committed by GitHub
parent cc0dda95c4
commit 17106a131d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15,6 +15,8 @@ class Random123(Package):
homepage = "http://www.deshawresearch.com/resources_random123.html"
url = "http://www.deshawresearch.com/downloads/download_random123.cgi/Random123-1.09.tar.gz"
version('1.13.2', sha256='74a1c6bb66b2684f03d3b1008642a2e9141909103cd09f428d2c60bcaa51cb40')
version('1.10', sha256='4afdfba4b941e33e23b5de9b7907b7e3ac326cb4d34b5fa8225edd00b5fe053b')
version('1.09', sha256='cf6abf623061bcf3d17e5e49bf3f3f0ae400ee89ae2e97c8cb8dcb918b1ebabe')
patch('ibmxl.patch', when='@1.09')
@ -25,5 +27,7 @@ def install(self, spec, prefix):
# We have to do our own install here.
install_tree('include', prefix.include)
install('./LICENSE', "%s" % prefix)
# used by some packages, e.g. quinoa
install('examples/uniform.hpp', join_path(prefix.include, 'Random123'))
if spec.satisfies('@1.09'):
# used by some packages, e.g. quinoa
install('examples/uniform.hpp',
join_path(prefix.include, 'Random123'))