summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorHarry Sharma <96082317+harrysharma1@users.noreply.github.com>2024-05-24 03:43:13 +0100
committerGitHub <noreply@github.com>2024-05-23 20:43:13 -0600
commit1d670ae744e5ad849e9427d4aa4cb6ba5ba1660a (patch)
tree4e2c30531d64d392fbed64367e74a7fe56b171e4 /var
parent35ad6f52c183f2564d3b09263c7982740a733e34 (diff)
downloadspack-1d670ae744e5ad849e9427d4aa4cb6ba5ba1660a.tar.gz
spack-1d670ae744e5ad849e9427d4aa4cb6ba5ba1660a.tar.bz2
spack-1d670ae744e5ad849e9427d4aa4cb6ba5ba1660a.tar.xz
spack-1d670ae744e5ad849e9427d4aa4cb6ba5ba1660a.zip
feat: add metacarpa@1.0.1 to spack (#44339)
* feat: add metacarpa@1.0.1 to spack * fix: style issue * Update copyright year
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/metacarpa/package.py41
1 files changed, 41 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/metacarpa/package.py b/var/spack/repos/builtin/packages/metacarpa/package.py
new file mode 100644
index 0000000000..f3ceb3fdc8
--- /dev/null
+++ b/var/spack/repos/builtin/packages/metacarpa/package.py
@@ -0,0 +1,41 @@
+# Copyright 2013-2024 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.package import *
+from spack.pkg.builtin.boost import Boost
+
+
+class Metacarpa(MakefilePackage):
+ """
+ METACARPA is designed for meta-analysing genetic
+ association studies with overlapping or related samples,
+ when details of the overlap or relatedness are unknown.
+ It implements and expands a method first described by Province and Borecki.
+ """
+
+ homepage = "https://www.sanger.ac.uk/tool/metacarpa/"
+ url = "https://github.com/hmgu-itg/metacarpa/archive/refs/tags/1.0.1.tar.gz"
+
+ version("1.0.1", sha256="7d8fc774a88bf75a53ef8f74462924abba9b99fccbaa9979654c01e4379fab91")
+
+ depends_on("boost@1.60.0")
+ depends_on(Boost.with_default_variants)
+ depends_on("cmake")
+ build_system = "Makefile"
+ build_directory = "src"
+
+ def edit(self, spec, prefix):
+ makefile = FileFilter("src/Makefile")
+ makefile.filter(r"^IDIR.*", "IDIR=" + spec["boost"].prefix.include)
+ makefile.filter(r"^LDIR.*", "LDIR=" + spec["boost"].prefix.lib)
+
+ def install(self, spec, prefix):
+ mkdirp(prefix.src)
+
+ install_tree("src", prefix.src)
+
+ mkdirp(prefix.bin)
+
+ install("src/metacarpa", prefix.bin)