summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/xplor-nih/package.py
blob: c86a8a3becaf40ed226491cb357b56669717dc38 (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
25
26
27
28
29
30
31
# 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)

import os

from spack.package import *


class XplorNih(Package):
    """XPLOR-NIH is a structure determination program.

    Note: A manual download is required for XPLOR-NIH.
    Spack will search your current directory for the download file.
    Alternatively, add this file to a mirror so that Spack can find it.
    For instructions on how to set up a mirror, see
    https://spack.readthedocs.io/en/latest/mirrors.html"""

    homepage = "https://nmr.cit.nih.gov/xplor-nih/"
    manual_download = True

    version("2.45", md5="ab3e046604beb0effc89a1adb7bab438")

    depends_on("python", type=("build", "run"))

    def url_for_version(self, version):
        return "file://{0}/xplor-nih-{1}-Linux_x86_64.tar.gz".format(os.getcwd(), version)

    def install(self, spec, prefix):
        install_tree(self.stage.source_path, prefix.bin)