From 6c1b19f394ec3ef8959deb9d63e1cdd3a3a3f2c1 Mon Sep 17 00:00:00 2001 From: George Hartzell Date: Fri, 3 Feb 2017 14:22:50 -0800 Subject: Ocaml fails as an AutotoolsPackage (#2995) Switch the ocaml install bit back to being a Package with its own little install method. This fix allows me to build Unison on CentOS 7. --- var/spack/repos/builtin/packages/ocaml/package.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/var/spack/repos/builtin/packages/ocaml/package.py b/var/spack/repos/builtin/packages/ocaml/package.py index 855e2d7b3b..75c19ec7c6 100644 --- a/var/spack/repos/builtin/packages/ocaml/package.py +++ b/var/spack/repos/builtin/packages/ocaml/package.py @@ -25,7 +25,7 @@ from spack import * -class Ocaml(AutotoolsPackage): +class Ocaml(Package): """OCaml is an industrial strength programming language supporting functional, imperative and object-oriented styles""" @@ -36,4 +36,8 @@ class Ocaml(AutotoolsPackage): depends_on('ncurses') - build_targets = ['world.opt'] + def install(self, spec, prefix): + configure('-prefix', '{0}'.format(prefix)) + + make('world.opt') + make('install') -- cgit v1.2.3-60-g2f50