From d65b9ad1958fdfc42da4f09b51d16390ffb85ac3 Mon Sep 17 00:00:00 2001 From: Levi Baber Date: Sat, 22 Aug 2020 14:01:00 -0500 Subject: [PATCH] mark: added new package (#10513) * mark: Create new package. * mark: change description. * mark: change description. * mark: Delete set_up environment. * mark: replace join_path(prefix.bin, mark) with prefix.bin.mark * mark: new license and sha256 hash Co-authored-by: lingnanyuan <1297162327@qq.com> --- .../repos/builtin/packages/mark/package.py | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 var/spack/repos/builtin/packages/mark/package.py diff --git a/var/spack/repos/builtin/packages/mark/package.py b/var/spack/repos/builtin/packages/mark/package.py new file mode 100644 index 0000000000..fa51131add --- /dev/null +++ b/var/spack/repos/builtin/packages/mark/package.py @@ -0,0 +1,35 @@ +# Copyright 2013-2019 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 * +import os + + +class Mark(Package): + """Program MARK, developed and maintained by Gary White (Colorado State + University) is the most flexible, widely used application currently + available for parameter estimation using data from marked individuals. + + You will need to download the package yourself, unzip, rename it + following the guide in http://www.phidot.org/software/mark/rmark/linux/ + Step(1). 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 + http://spack.readthedocs.io/en/latest/mirrors.html""" + + homepage = "http://www.phidot.org/software/mark/index.html" + + version('1.0', sha256='5422c9444d5fa6b3b22f4a9f2ce41af2072a1a7283f6f9099dc02cc5282696bc', + expand=False) + + def url_for_version(self, version): + return "file://{0}/mark".format(os.getcwd()) + + def install(self, spec, prefix): + mkdir(prefix.bin) + install('mark', prefix.bin) + + chmod = which('chmod') + chmod('+x', prefix.bin.mark)