summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLevi Baber <baber@iastate.edu>2020-08-22 14:01:00 -0500
committerGitHub <noreply@github.com>2020-08-22 14:01:00 -0500
commitd65b9ad1958fdfc42da4f09b51d16390ffb85ac3 (patch)
treef9a7626d74d2c00bbd1483fb7e85edcf8853dc11
parentb53b9fd17e983bbc619f7ed3189b530eb60e1f82 (diff)
downloadspack-d65b9ad1958fdfc42da4f09b51d16390ffb85ac3.tar.gz
spack-d65b9ad1958fdfc42da4f09b51d16390ffb85ac3.tar.bz2
spack-d65b9ad1958fdfc42da4f09b51d16390ffb85ac3.tar.xz
spack-d65b9ad1958fdfc42da4f09b51d16390ffb85ac3.zip
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>
-rw-r--r--var/spack/repos/builtin/packages/mark/package.py35
1 files changed, 35 insertions, 0 deletions
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)