summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabriel Cretin <gabrielcretin@gmail.com>2023-10-13 20:30:20 +0200
committerGitHub <noreply@github.com>2023-10-13 11:30:20 -0700
commitedf4aa9f527e12a57d98abf41237b4bd54d38273 (patch)
treef06155ad0e15c380a8322e88c31727b94222eaf5
parent02c680ec3a350d09e5a8214f3bb74ca6df6137e3 (diff)
downloadspack-edf4aa9f527e12a57d98abf41237b4bd54d38273.tar.gz
spack-edf4aa9f527e12a57d98abf41237b4bd54d38273.tar.bz2
spack-edf4aa9f527e12a57d98abf41237b4bd54d38273.tar.xz
spack-edf4aa9f527e12a57d98abf41237b4bd54d38273.zip
Fpocket: fix installation (#40499)
* Fpocket: fix edit() positional args + add install() * Remove comments * Fix line too long * Fix line too long * Remove extension specification in version Co-authored-by: Alec Scott <alec@bcs.sh> * Use f-strings Co-authored-by: Alec Scott <alec@bcs.sh> * Fix styling * Use the default MakefilePackage install stage --------- Co-authored-by: Alec Scott <alec@bcs.sh>
-rw-r--r--var/spack/repos/builtin/packages/fpocket/package.py16
1 files changed, 10 insertions, 6 deletions
diff --git a/var/spack/repos/builtin/packages/fpocket/package.py b/var/spack/repos/builtin/packages/fpocket/package.py
index 831283a4ef..bf8d64aa9e 100644
--- a/var/spack/repos/builtin/packages/fpocket/package.py
+++ b/var/spack/repos/builtin/packages/fpocket/package.py
@@ -3,23 +3,27 @@
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
+
from spack.package import *
class Fpocket(MakefilePackage):
- """fpocket is a very fast open source protein pocket detection algorithm
- based on Voronoi tessellation."""
+ """The fpocket suite of programs is a very fast open source
+ protein pocket detection algorithm based on Voronoi tessellation."""
homepage = "https://github.com/Discngine/fpocket"
- version("master", branch="master", git="https://github.com/Discngine/fpocket.git")
+ url = "https://github.com/Discngine/fpocket/archive/refs/tags/4.1.tar.gz"
+
+ version("4.1", "1a2af2d3f2df42de67301996db3b93c7eaff0375f866443c0468dcf4b1750688")
depends_on("netcdf-c")
+ depends_on("netcdf-cxx")
def setup_build_environment(self, env):
if self.compiler.name == "gcc":
env.set("CXX", "g++")
- def edit(self):
+ def edit(self, spec, prefix):
makefile = FileFilter("makefile")
- makefile.filter("BINDIR .*", "BINDIR = %s/bin" % self.prefix)
- makefile.filter("MANDIR .*", "MANDIR = %s/man/man8" % self.prefix)
+ makefile.filter("BINDIR .*", f"BINDIR = {prefix}/bin")
+ makefile.filter("MANDIR .*", f"MANDIR = {prefix}/man/man8")