summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorGeorge Young <A-N-Other@users.noreply.github.com>2023-10-09 17:54:44 +0100
committerGitHub <noreply@github.com>2023-10-09 09:54:44 -0700
commitd846664165a1d78d5fa7549b42f939613c54ccfa (patch)
tree2c289564a44809e65236cec87a775c9d4b36d234 /var
parent31b3e4898bc4730fa981efc80fbb68217e31b5a3 (diff)
downloadspack-d846664165a1d78d5fa7549b42f939613c54ccfa.tar.gz
spack-d846664165a1d78d5fa7549b42f939613c54ccfa.tar.bz2
spack-d846664165a1d78d5fa7549b42f939613c54ccfa.tar.xz
spack-d846664165a1d78d5fa7549b42f939613c54ccfa.zip
paintor: new package @3.0 (#40359)
* paintor: new package @3.0 * Update var/spack/repos/builtin/packages/paintor/package.py --------- Co-authored-by: LMS Bioinformatics <bioinformatics@lms.mrc.ac.uk> Co-authored-by: Tamara Dahlgren <35777542+tldahlgren@users.noreply.github.com>
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/paintor/package.py37
1 files changed, 37 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/paintor/package.py b/var/spack/repos/builtin/packages/paintor/package.py
new file mode 100644
index 0000000000..421a92cb11
--- /dev/null
+++ b/var/spack/repos/builtin/packages/paintor/package.py
@@ -0,0 +1,37 @@
+# Copyright 2013-2023 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 *
+
+
+class Paintor(MakefilePackage):
+ """Probabilistic Annotation integrator. Fast, integrative fine mapping with functional
+ data"""
+
+ homepage = "https://github.com/gkichaev/PAINTOR_V3.0"
+ url = "https://github.com/gkichaev/PAINTOR_V3.0/archive/refs/tags/3.0.tar.gz"
+
+ version("3.0", sha256="cc39d3c334cc6d787e4f04847192c9d0185025a2ca46910bd38901b6679d198f")
+
+ depends_on("nlopt")
+ depends_on("eigen")
+
+ def edit(self, spec, prefix):
+ makefile = FileFilter("Makefile")
+ makefile.filter("CC = g\\+\\+", f"CC = {spack_cxx}")
+ makefile.filter(
+ r"(.*)-I/\$\(curr\)/eigen/Eigen(.*)",
+ r"\1-I{}/eigen3/Eigen\2".format(spec["eigen"].prefix.include),
+ )
+ makefile.filter(r"(.*)-L/\$\{curr}/lib(.*)", r"\1-L{}\2".format(spec["nlopt"].prefix.lib))
+ makefile.filter(
+ r"(.*)-I/\${curr}/include(.*)", r"\1-I{}\2".format(spec["nlopt"].prefix.include)
+ )
+
+ @run_after("install")
+ def mv_binary(self):
+ mkdirp(self.prefix.bin)
+ with working_dir(self.build_directory):
+ install("PAINTOR", self.prefix.bin)