summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/gnu-prolog/package.py
blob: b96e026e87d022499e3ed450d240e57cb2843c43 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# 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 GnuProlog(Package):
    """A free Prolog compiler with constraint solving over finite domains."""
    homepage = "http://www.gprolog.org/"
    url      = "http://www.gprolog.org/gprolog-1.4.4.tar.gz"

    version('1.4.4', '37009da471e5217ff637ad1c516448c8')

    parallel = False

    def install(self, spec, prefix):
        with working_dir('src'):
            configure('--with-install-dir=%s' % prefix,
                      '--without-links-dir')
            make()
            make('install')