summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/fl/package.py
blob: f314ca6cdca3b80302bdfe9f586ef8ddceec9212 (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
24
# Copyright 2013-2020 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 Fl(Package):
    """Fawlty Language is an IDL8
    (Interactive Data Language) compatible compiler."""

    homepage = "https://www.flxpert.hu/fl/"
    url      = "https://www.flxpert.hu/fl/fl_0.79.47-amd64-linux.tar.gz"

    version('0.79.47', sha256='b8a4a74118c1a024313bf912261fbc016a53f2d15adb1226217f2a10a9f7ca9a')

    def install(self, spec, prefix):
        if (self.spec.satisfies('platform=linux') and
           self.spec.satisfies('target=x86_64')):
            with working_dir('fl_{0}'.format(spec.version)):
                install_tree('.', prefix)
        else:
            raise InstallError('fl is built for Linux x86_64 platform only.')