summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorGeoffrey Oxberry <goxberry@gmail.com>2018-01-31 04:49:17 -0800
committerMassimiliano Culpo <massimiliano.culpo@gmail.com>2018-01-31 13:49:17 +0100
commitebaa106d7adfa0ee40d5dbf783093e45cdc66010 (patch)
tree4ef6db52ef817569940efb00e4143807977c1c1c /var
parente8b4de7b4ce82da2fcc54bbae52b5649caa62e4e (diff)
downloadspack-ebaa106d7adfa0ee40d5dbf783093e45cdc66010.tar.gz
spack-ebaa106d7adfa0ee40d5dbf783093e45cdc66010.tar.bz2
spack-ebaa106d7adfa0ee40d5dbf783093e45cdc66010.tar.xz
spack-ebaa106d7adfa0ee40d5dbf783093e45cdc66010.zip
ocaml@4.06.0: new version (#7078)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/ocaml/package.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/ocaml/package.py b/var/spack/repos/builtin/packages/ocaml/package.py
index e93d811f06..a01949ce2e 100644
--- a/var/spack/repos/builtin/packages/ocaml/package.py
+++ b/var/spack/repos/builtin/packages/ocaml/package.py
@@ -32,12 +32,17 @@ class Ocaml(Package):
homepage = "http://ocaml.org/"
url = "http://caml.inria.fr/pub/distrib/ocaml-4.03/ocaml-4.03.0.tar.gz"
+ version('4.06.0', '66e5439eb63dbb8b8224cba5d1b20947')
version('4.03.0', '43812739ea1b4641cf480f57f977c149')
depends_on('ncurses')
+ def url_for_version(self, version):
+ url = "http://caml.inria.fr/pub/distrib/ocaml-{0}/ocaml-{1}.tar.gz"
+ return url.format(version.up_to(2), version)
+
def install(self, spec, prefix):
configure('-prefix', '{0}'.format(prefix))
make('world.opt')
- make('install')
+ make('install', 'PREFIX={0}'.format(prefix))