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>
This commit is contained in:
Levi Baber 2020-08-22 14:01:00 -05:00 committed by GitHub
parent b53b9fd17e
commit d65b9ad195
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)