# Copyright 2013-2018 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 Clp(AutotoolsPackage):
    """Clp (Coin-or linear programming) is an open-source
      linear programming solver written in C++."""

    homepage = "https://projects.coin-or.org/Clp"
    url      = "https://www.coin-or.org/download/source/Clp/Clp-1.16.11.tgz"

    version('1.16.11', sha256='b525451423a9a09a043e6a13d9436e13e3ee7a7049f558ad41a110742fa65f39')

    def configure_args(self):
        return [
            '--with-clp-datadir={0}/Data'.format(self.build_directory),
        ]

# Copyright 2013-2018 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 Clp(AutotoolsPackage):
    """Clp (Coin-or linear programming) is an open-source
      linear programming solver written in C++."""

    homepage = "https://projects.coin-or.org/Clp"
    url      = "https://www.coin-or.org/download/source/Clp/Clp-1.16.11.tgz"

    version('1.16.11', sha256='b525451423a9a09a043e6a13d9436e13e3ee7a7049f558ad41a110742fa65f39')

    build_directory = 'spack-build'

add build_directory, remove old hack (#10112)