spack/var/spack/repos/builtin/packages/mpest/package.py
Todd Gamblin eea786f4e8 relicense: replace LGPL headers with Apache-2.0/MIT SPDX headers
- remove the old LGPL license headers from all files in Spack
- add SPDX headers to all files
  - core and most packages are (Apache-2.0 OR MIT)
  - a very small number of remaining packages are LGPL-2.1-only
2018-10-17 14:42:06 -07:00

32 lines
1.1 KiB
Python

# Copyright 2013-2018 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 *
class Mpest(MakefilePackage):
"""MP-EST estimates species trees from a set of gene trees by maximizing
a pseudo-likelihood function."""
homepage = "http://faculty.franklin.uga.edu/lliu/content/mp-est"
url = "https://faculty.franklin.uga.edu/lliu/sites/faculty.franklin.uga.edu.lliu/files/mpest_1.5.zip"
version('1.5', 'f176d5301aa26567918664e5e30027d1')
@property
def build_directory(self):
return join_path('mpest_{0}'.format(self.version), 'src')
def install(self, spec, prefix):
with working_dir(self.build_directory):
mkdirp(prefix.bin)
install('mpest', prefix.bin)
def setup_environment(self, spack_env, run_env):
if self.spec.satisfies('platform=darwin'):
spack_env.set('ARCHITECTURE', 'mac')
else:
spack_env.set('ARCHITECTURE', 'unix')