summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorcarlabguillen <carla.guillen@lrz.de>2019-10-23 16:31:06 +0200
committerAdam J. Stewart <ajstewart426@gmail.com>2019-10-23 09:31:06 -0500
commit44f859849baa679652eedb7bbd10f471ddf4935a (patch)
tree2ba081ce55277527d74dfd0ba7c3f6fedab85904 /var
parent464ce2795a6790f67ef65bb6f921855b43bd3305 (diff)
downloadspack-44f859849baa679652eedb7bbd10f471ddf4935a.tar.gz
spack-44f859849baa679652eedb7bbd10f471ddf4935a.tar.bz2
spack-44f859849baa679652eedb7bbd10f471ddf4935a.tar.xz
spack-44f859849baa679652eedb7bbd10f471ddf4935a.zip
Ace package. Initial commit (#13211)
* Ace package. Initial commit * Correcting header now with licence. * Using sha256 * Making requested changes:removing import line, urls and checksums in one line, and making it an MakefilePackage. * Removing extra line
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/ace/package.py44
1 files changed, 44 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/ace/package.py b/var/spack/repos/builtin/packages/ace/package.py
new file mode 100644
index 0000000000..0c57bb6dbf
--- /dev/null
+++ b/var/spack/repos/builtin/packages/ace/package.py
@@ -0,0 +1,44 @@
+# Copyright 2013-2019 Lawrence Livermore National Security, LLC and other
+# Spack Project Developers. See the top-level COPYRIGHT file for details.
+#
+# SPDX-License-Identifier: (Apache-2.0 OR MIT)
+
+from spack import *
+
+
+class Ace(MakefilePackage):
+ """ACE is an open-source framework that provides many components and
+ patterns for developing high-performance, distributed real-time and
+ embedded systems. ACE provides powerful, yet efficient abstractions
+ for sockets, demultiplexing loops, threads, synchronization
+ primitives."""
+
+ homepage = "http://www.dre.vanderbilt.edu/~schmidt/ACE.html"
+ url = "http://download.dre.vanderbilt.edu/previous_versions/ACE-6.5.1.tar.gz"
+
+ version('6.5.6', '7717cad84d4a9c3d6b2c47963eb555d96de0be657870bcab6fcef4c0423af0de')
+ version('6.5.1', '1f318adadb19da23c9be570a9c600a330056b18950fe0bf0eb1cf5cac8b72a32')
+ version('6.5.0', 'b6f9ec922fbdcecb4348e16d851d0d1f135df1836dfe77d2e0b64295ddb83066')
+
+ def edit(self, spec, prefix):
+
+ # Dictionary mapping: compiler-name : ACE config-label
+ supported = {'intel': '_icc', 'gcc': ''}
+
+ if not(self.compiler.name in supported):
+ raise Exception('compiler ' + self.compiler.name +
+ ' not supported in ace spack-package')
+
+ env['ACE_ROOT'] = self.stage.source_path
+
+ with working_dir('./ace'):
+ with open('config.h', 'w') as f:
+ f.write('#include "ace/config-linux.h"\n')
+
+ with working_dir(join_path(self.stage.source_path,
+ 'include/makeinclude')):
+ with open('platform_macros.GNU', 'w') as f:
+ f.write("include $(ACE_ROOT)/include/makeinclude/"
+ "platform_linux" + supported[self.compiler.name]
+ + ".GNU\n")
+ f.write("INSTALL_PREFIX=%s" % prefix)