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.
This commit is contained in:
George Hartzell 2017-02-03 14:22:50 -08:00 committed by Todd Gamblin
parent 10d36ee343
commit 6c1b19f394

View file

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