Commit f98b4c06 authored by Matthieu Dorier's avatar Matthieu Dorier
Browse files

added new version of REMI

parent 42845dc0
...@@ -12,6 +12,7 @@ class MochiRemi(CMakePackage): ...@@ -12,6 +12,7 @@ class MochiRemi(CMakePackage):
version('develop', branch='master') version('develop', branch='master')
version('master', branch='master') version('master', branch='master')
version('0.3', tag='v0.3')
version('0.2.3', tag='v0.2.3') version('0.2.3', tag='v0.2.3')
version('0.2.2', tag='v0.2.2') version('0.2.2', tag='v0.2.2')
version('0.2.1', tag='v0.2.1') version('0.2.1', tag='v0.2.1')
...@@ -19,18 +20,29 @@ class MochiRemi(CMakePackage): ...@@ -19,18 +20,29 @@ class MochiRemi(CMakePackage):
version('0.1.1', tag='v0.1.1') version('0.1.1', tag='v0.1.1')
version('0.1', tag='v0.1') version('0.1', tag='v0.1')
variant('bedrock', default=True, description='Enable building Bedrock module')
depends_on('libuuid') depends_on('libuuid')
depends_on('mochi-thallium@0.6.0:+cereal', when='@0.2.3:') depends_on('mochi-thallium@0.6.0:+cereal', when='@0.2.3:')
depends_on('mochi-thallium@0.4.2:', when='@0.2.2') depends_on('mochi-thallium@0.4.2:', when='@0.2.2')
depends_on('mochi-thallium@0.3:', when='@:0.2.1') depends_on('mochi-thallium@0.3:', when='@:0.2.1')
depends_on('mochi-abt-io@0.1:') depends_on('mochi-abt-io@0.1:')
depends_on('mochi-bedrock', when='@0.3: +bedrock')
# dependencies for develop version # dependencies for develop version
depends_on('mochi-thallium@develop', when='@develop') depends_on('mochi-thallium@develop', when='@develop')
depends_on('mochi-abt-io@develop', when='@develop') depends_on('mochi-abt-io@develop', when='@develop')
depends_on('mochi-bedrock@develop', when='@develop +bedrock')
patch('0001-explicitly-request-C-14.patch') patch('0001-explicitly-request-C-14.patch')
conflicts('+bedrock', when='@:0.2.3',
msg='+bedrock variant only available starting from 0.3')
def cmake_args(self): def cmake_args(self):
args = ["-DBUILD_SHARED_LIBS:BOOL=ON" ] args = ["-DBUILD_SHARED_LIBS:BOOL=ON" ]
if '+bedrock' in self.spec:
args.append('-DENABLE_BEDROCK=ON')
else:
args.append('-DENABLE_BEDROCK=OFF')
return args return args
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment