From 7ac6f7fed913eac67efd56e13e0edbb7d3e31463 Mon Sep 17 00:00:00 2001 From: asmaahassan90 <31959389+asmaahassan90@users.noreply.github.com> Date: Thu, 16 Apr 2020 15:24:35 +0200 Subject: Add Cubist (#16069) * Add Cubist * enhance recipe * Not using OS module anymore * remove white space * Fix build shell * make Flake8 happy * use bash shell for build * Convert it To MakefilePackage as per peer-review --- var/spack/repos/builtin/packages/cubist/package.py | 32 ++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 var/spack/repos/builtin/packages/cubist/package.py (limited to 'var') diff --git a/var/spack/repos/builtin/packages/cubist/package.py b/var/spack/repos/builtin/packages/cubist/package.py new file mode 100644 index 0000000000..70e851520d --- /dev/null +++ b/var/spack/repos/builtin/packages/cubist/package.py @@ -0,0 +1,32 @@ +# Copyright 2013-2020 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 Cubist(MakefilePackage): + """Cubist is a powerful tool for generating rule-based models that + balance the need for accurate prediction against the requirements of + intelligibility. + + Cubist models generally give better results than those + produced by simple techniques such as multivariate linear regression, + while also being easier to understand than neural networks.""" + + homepage = "https://www.rulequest.com" + url = "https://www.rulequest.com/GPL/Cubist.tgz" + + version('2.07', 'f2b20807cd3275e775c42263a4efd3f50df6e495a8b6dc8989ea2d41b973ac1a') + + def edit(self, spec, prefix): + makefile = FileFilter('Makefile') + makefile.filter("SHELL .*", "SHELL = /bin/bash") + + def install(self, spec, prefix): + mkdirp(self.prefix.bin) + install('cubist', prefix.bin) + install('summary', prefix.bin) + install('xval', prefix.bin) -- cgit v1.2.3-70-g09d2