New package: lp-solve (#22876)
This commit is contained in:
parent
7960c05922
commit
dca4893c11
1 changed files with 32 additions and 0 deletions
32
var/spack/repos/builtin/packages/lp-solve/package.py
Normal file
32
var/spack/repos/builtin/packages/lp-solve/package.py
Normal file
|
@ -0,0 +1,32 @@
|
|||
# Copyright 2013-2021 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 LpSolve(Package):
|
||||
"""lp_solve is a Mixed Integer Linear Programming (MILP) solver."""
|
||||
|
||||
homepage = "https://sourceforge.net/projects/lpsolve/"
|
||||
url = "https://sourceforge.net/projects/lpsolve/files/lpsolve/5.5.2.11/lp_solve_5.5.2.11_source.tar.gz"
|
||||
|
||||
version('5.5.2.11', sha256='6d4abff5cc6aaa933ae8e6c17a226df0fc0b671c438f69715d41d09fe81f902f')
|
||||
|
||||
def install(self, spec, prefix):
|
||||
with working_dir('lpsolve55'):
|
||||
mkdir(prefix.lib)
|
||||
sh = which('sh')
|
||||
sh('-x', 'ccc')
|
||||
install_tree('bin/ux64', prefix.lib)
|
||||
with working_dir('lp_solve'):
|
||||
mkdir(prefix.bin)
|
||||
sh = which('sh')
|
||||
sh('-x', 'ccc')
|
||||
install_tree('bin/ux64', prefix.bin)
|
||||
|
||||
mkdirp(prefix.include.lpsolve)
|
||||
headers = find('.', '*.h', recursive=False)
|
||||
for header in headers:
|
||||
install(header, prefix.include.lpsolve)
|
Loading…
Reference in a new issue