Skip to content

Commit

Permalink
adding easyconfigs: Cgl-0.60.8-foss-2023a.eb
Browse files Browse the repository at this point in the history
  • Loading branch information
pavelToman committed Jan 23, 2024
1 parent 5030f4c commit 781856a
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions easybuild/easyconfigs/c/Cgl/Cgl-0.60.8-foss-2023a.eb
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
easyblock = "ConfigureMake"

name = 'Cgl'
version = '0.60.8'

homepage = "https://github.com/coin-or/Cgl"
description = """The COIN-OR Cut Generation Library (Cgl) is a collection of cut generators that
can be used with other COIN-OR packages that make use of cuts, such as, among
others, the linear solver Clp or the mixed integer linear programming solvers
Cbc or BCP. Cgl uses the abstract class OsiSolverInterface (see Osi) to use or
communicate with a solver. It does not directly call a solver."""

toolchain = {'name': 'foss', 'version': '2023a'}
toolchainopts = {'pic': True, 'usempi': True}

source_urls = ['https://github.com/coin-or/Cgl/archive/refs/tags/releases/']
sources = ['%(version)s.tar.gz']
checksums = ['1482ba38afb783d124df8d5392337f79fdd507716e9f1fb6b98fc090acd1ad96']

builddependencies = [
('Autotools', '20220317'),
('Doxygen', '1.9.7'),
# ('pkg-config', '0.29.2'), # pkgconf should be used in preference to pkg-config
('pkgconf', '1.9.5'),
]

dependencies = [
('CoinUtils', '2.11.10'),
('Osi', '0.108.9'),
('Clp', '1.17.9'),
]

# Use CoinUtils from EB
configopts = '--with-coinutils-lib="-lCoinUtils" '
configopts += '--with-coinutils-datadir=$EBROOTCOINUTILS/share/coin/Data'
# Use Clp from EB
configopts += '--with-clp-lib="-lOsiClp -lClpSolver -lClp" '
configopts += '--with-clp-datadir=$EBROOTCLP/share/coin/Data '
# Use Osi from EB (also needs links to Clp due to OsiClpSolver)
configopts += '--with-osi-lib="-lOsiClp -lClpSolver -lClp -lOsi" '
configopts += '--with-osi-datadir=$EBROOTOSI/share/coin/Data '

sanity_check_paths = {
'files': ['lib/libCgl.%s' % SHLIB_EXT],
'dirs': ['include/coin', 'lib/pkgconfig', 'share/coin']
}

# other coin-or projects expect <header.hpp> instead of <coin/header.hpp>
modextrapaths = {'CPATH': 'include/coin'}

moduleclass = "math"

0 comments on commit 781856a

Please sign in to comment.