(Package) Add ROSE compiler package
This commit is contained in:
parent
cd9e4b5b7f
commit
3a07ec6c7d
2 changed files with 52 additions and 0 deletions
13
var/spack/packages/rose/add_spack_compiler_recognition.patch
Normal file
13
var/spack/packages/rose/add_spack_compiler_recognition.patch
Normal file
|
@ -0,0 +1,13 @@
|
|||
diff --git a/config/compiler-defs.m4 b/config/compiler-defs.m4
|
||||
index d7d85d2..780c8de 100644
|
||||
--- a/config/compiler-defs.m4
|
||||
+++ b/config/compiler-defs.m4
|
||||
@@ -28,7 +28,7 @@ dnl predefined by a specific compiler
|
||||
# g++|gcc|mpicc|mpic++|mpicxx|mpiCC)
|
||||
# TOO (2/16/2011): added support for tensilica compilers, assuming they are
|
||||
# like GCC (they use a GCC front-end)
|
||||
- g++*|gcc*|mpicc|mpic++|mpicxx|mpiCC|xt-xc++|xt-xcc)
|
||||
+ cc*|c++*|g++*|gcc*|mpicc|mpic++|mpicxx|mpiCC|xt-xc++|xt-xcc)
|
||||
BACKEND_GCC_MAJOR=`echo|$BACKEND_CXX_COMPILER -dumpversion | cut -d\. -f1`
|
||||
BACKEND_GCC_MINOR=`echo|$BACKEND_CXX_COMPILER -dumpversion | cut -d\. -f2`
|
||||
BACKEND_GCC_PATCHLEVEL=`echo|$BACKEND_CXX_COMPILER -dumpversion | cut -d\. -f3`
|
39
var/spack/packages/rose/package.py
Normal file
39
var/spack/packages/rose/package.py
Normal file
|
@ -0,0 +1,39 @@
|
|||
#------------------------------------------------------------------------------
|
||||
# Author: Justin Too <too1@llnl.gov>
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
from spack import *
|
||||
|
||||
class Rose(Package):
|
||||
"""A compiler infrastructure to build source-to-source program
|
||||
transformation and analysis tools.
|
||||
(Developed at Lawrence Livermore National Lab)"""
|
||||
|
||||
homepage = "http://rosecompiler.org/"
|
||||
url = "https://github.com/rose-compiler/edg4x-rose"
|
||||
|
||||
version('master', branch='master', git='https://github.com/rose-compiler/edg4x-rose.git')
|
||||
|
||||
patch('add_spack_compiler_recognition.patch')
|
||||
|
||||
depends_on("autoconf@2.69")
|
||||
depends_on("automake@1.14")
|
||||
depends_on("libtool@2.4")
|
||||
depends_on("boost@1.54.0")
|
||||
depends_on("jdk@8u25-linux-x64")
|
||||
|
||||
def install(self, spec, prefix):
|
||||
# Bootstrap with autotools
|
||||
bash = which('bash')
|
||||
bash('build')
|
||||
|
||||
# Configure, compile & install
|
||||
with working_dir('rose-build', create=True):
|
||||
boost = spec['boost']
|
||||
|
||||
configure = Executable('../configure')
|
||||
configure("--prefix=" + prefix,
|
||||
"--with-boost=" + boost.prefix,
|
||||
"--disable-boost-version-check")
|
||||
make("install-core")
|
||||
|
Loading…
Reference in a new issue