summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Hartzell <hartzell@alerce.com>2017-02-03 14:22:50 -0800
committerTodd Gamblin <tgamblin@llnl.gov>2017-02-03 14:22:50 -0800
commit6c1b19f394ec3ef8959deb9d63e1cdd3a3a3f2c1 (patch)
treee9544200fd9ba7034f31a751276eff3d3908df4e
parent10d36ee34339cfc3130b0959d81eb0675ecbc820 (diff)
downloadspack-6c1b19f394ec3ef8959deb9d63e1cdd3a3a3f2c1.tar.gz
spack-6c1b19f394ec3ef8959deb9d63e1cdd3a3a3f2c1.tar.bz2
spack-6c1b19f394ec3ef8959deb9d63e1cdd3a3a3f2c1.tar.xz
spack-6c1b19f394ec3ef8959deb9d63e1cdd3a3a3f2c1.zip
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.
-rw-r--r--var/spack/repos/builtin/packages/ocaml/package.py8
1 files 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')