summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/linkphase3/package.py
blob: 5b0f563a9b71b13d49b45be893155454a7e0745f (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-2023 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.package import *


class Linkphase3(Package):
    """Haplotype reconstruction in pedigreed populations."""

    homepage = "https://github.com/tdruet/LINKPHASE3"
    git = "https://github.com/tdruet/LINKPHASE3.git"

    license("GPL-3.0-only")

    version("2017-06-14", commit="559913593fc818bb1adb29796a548cf5bf323827")

    def install(self, spec, prefix):
        fortran = Executable(self.compiler.fc)
        fortran("LINKPHASE3.f90", "-o", "LINKPHASE3")
        mkdirp(prefix.bin)
        install("LINKPHASE3", prefix.bin)