summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorKevin Huck <khuck@cs.uoregon.edu>2015-10-21 19:35:31 -0700
committerKevin Huck <khuck@cs.uoregon.edu>2015-10-21 19:35:31 -0700
commitfb9eca4226e1026b3dae1c43c2190bf6ea2c56ec (patch)
tree5cfe67162db515c36be7ce6c97e5ddaebc9aefc5 /var
parentc082abfb6574c1bd2610990aeb799ff6d7c853a0 (diff)
downloadspack-fb9eca4226e1026b3dae1c43c2190bf6ea2c56ec.tar.gz
spack-fb9eca4226e1026b3dae1c43c2190bf6ea2c56ec.tar.bz2
spack-fb9eca4226e1026b3dae1c43c2190bf6ea2c56ec.tar.xz
spack-fb9eca4226e1026b3dae1c43c2190bf6ea2c56ec.zip
Added an APEX package, but it is still using the git master instead
of a release.
Diffstat (limited to 'var')
-rw-r--r--var/spack/packages/apex/package.py30
1 files changed, 30 insertions, 0 deletions
diff --git a/var/spack/packages/apex/package.py b/var/spack/packages/apex/package.py
new file mode 100644
index 0000000000..086694044e
--- /dev/null
+++ b/var/spack/packages/apex/package.py
@@ -0,0 +1,30 @@
+from spack import *
+from spack.util.environment import *
+
+class Apex(Package):
+ homepage = "http://github.com/khuck/xpress-apex"
+ #url = "http://github.com/khuck/xpress-apex/archive/v0.1-release-candidate.tar.gz"
+ url = "http://github.com/khuck/xpress-apex"
+
+ #version('0.1', '6e039c224387348296739f6bf360d081')
+ version('master', branch='master', git='https://github.com/khuck/xpress-apex.git')
+
+ depends_on("binutils+libiberty")
+ depends_on("boost@1.54:")
+ depends_on("cmake@2.8.12:")
+ depends_on("activeharmony@4.5:")
+
+ def install(self, spec, prefix):
+
+ path=get_path("PATH")
+ path.remove(spec["binutils"].prefix.bin)
+ path_set("PATH", path)
+ with working_dir("build", create=True):
+ cmake('-DBOOST_ROOT=%s' % spec['boost'].prefix,
+ '-DUSE_BFD=TRUE',
+ '-DBFD_ROOT=%s' % spec['binutils'].prefix,
+ '-DUSE_ACTIVEHARMONY=TRUE',
+ '-DACTIVEHARMONY_ROOT=%s' % spec['activeharmony'].prefix,
+ '..', *std_cmake_args)
+ make()
+ make("install")