Commit ca8bf5d3 authored by Christian Tacke's avatar Christian Tacke
Browse files

[molflow] Initial Packaging

This adds a really simple first attempt at packaging
molflow with spack.
It only targets molflowCLI and does only install the
binary. I have not yet investigated, whether more needs to
be installed.
parent c7a6c8ab
# Copyright 2013-2022 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 Molflow(CMakePackage):
"""A Monte-Carlo Simulator package developed at CERN"""
homepage = "https://molflow.web.cern.ch/"
git = "https://gitlab.cern.ch/molflow_synrad/molflow.git/"
maintainers = ['ChristianTackeGSI']
version('2.9.3_beta', commit='26599088db87ddda2e3d1c5f6f9f2f93907873b9', submodules=True, no_cache=True)
depends_on('cmake@3.12.2:', type='build')
def cmake_args(self):
return [
self.define('NO_INTERFACE', True)
]
def install(self, spec, prefix):
mkdirp(prefix.bin)
install(join_path(self.build_directory, 'bin', 'molflowCLI'),
prefix.bin)
Supports Markdown
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