summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorSinan <sbulutw@gmail.com>2019-10-27 19:53:38 -0700
committerAdam J. Stewart <ajstewart426@gmail.com>2019-10-27 21:53:38 -0500
commit57f040753daec48f7252d966f83f0b8d8df97035 (patch)
tree028e7e4904138c4d647dfc27eb34bd11241e1e0d /var
parent59a6226f746614b09570c6a37213b3f8bb649f38 (diff)
downloadspack-57f040753daec48f7252d966f83f0b8d8df97035.tar.gz
spack-57f040753daec48f7252d966f83f0b8d8df97035.tar.bz2
spack-57f040753daec48f7252d966f83f0b8d8df97035.tar.xz
spack-57f040753daec48f7252d966f83f0b8d8df97035.zip
new package: ecos (#13453)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/ecos/package.py30
1 files changed, 30 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/ecos/package.py b/var/spack/repos/builtin/packages/ecos/package.py
new file mode 100644
index 0000000000..61facbfffe
--- /dev/null
+++ b/var/spack/repos/builtin/packages/ecos/package.py
@@ -0,0 +1,30 @@
+# 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 Ecos(MakefilePackage):
+ """A lightweight conic solver for second-order cone programming."""
+
+ homepage = "https://github.com/embotech/ecos"
+ url = "https://github.com/embotech/ecos/archive/2.0.7.tar.gz"
+
+ version('2.0.7', sha256='bdb6a84f7d150820459bd0a796cb64ffbb019afb95dc456d22acc2dafb2e70e0')
+
+ build_targets = ['all', 'shared']
+
+ def install(self, spec, prefix):
+ install_tree('include', prefix.include)
+
+ mkdir(prefix.lib)
+ install('libecos.a', prefix.lib)
+ install('libecos_bb.a', prefix.lib)
+ install('libecos.so', prefix.lib)
+
+ mkdir(prefix.bin)
+ install('runecos', prefix.bin)
+ install('runecosexp', prefix.bin)