summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlec Scott <hi@alecbcs.com>2024-10-02 14:18:20 -0700
committerGitHub <noreply@github.com>2024-10-02 14:18:20 -0700
commitdfb0f58254c0b6ff07ccc9db39fa22518710c35a (patch)
tree4d0c72acd19e3931d9fcc9a0d4cf0cafea661657
parent31f0905f3f7b122eaf8ae5bd5dc2bcc2637ebabd (diff)
downloadspack-dfb0f58254c0b6ff07ccc9db39fa22518710c35a.tar.gz
spack-dfb0f58254c0b6ff07ccc9db39fa22518710c35a.tar.bz2
spack-dfb0f58254c0b6ff07ccc9db39fa22518710c35a.tar.xz
spack-dfb0f58254c0b6ff07ccc9db39fa22518710c35a.zip
direnv: convert to GoPackage (#46724)
-rw-r--r--var/spack/repos/builtin/packages/direnv/package.py15
1 files changed, 1 insertions, 14 deletions
diff --git a/var/spack/repos/builtin/packages/direnv/package.py b/var/spack/repos/builtin/packages/direnv/package.py
index b5ed1495b2..e091d1242f 100644
--- a/var/spack/repos/builtin/packages/direnv/package.py
+++ b/var/spack/repos/builtin/packages/direnv/package.py
@@ -6,7 +6,7 @@
from spack.package import *
-class Direnv(Package):
+class Direnv(GoPackage):
"""direnv is an environment switcher for the shell."""
homepage = "https://direnv.net/"
@@ -26,18 +26,5 @@ class Direnv(Package):
version("2.20.0", sha256="cc72525b0a5b3c2ab9a52a3696e95562913cd431f923bcc967591e75b7541bff")
version("2.11.3", sha256="2d34103a7f9645059270763a0cfe82085f6d9fe61b2a85aca558689df0e7b006")
- depends_on("go", type="build")
depends_on("go@1.16:", type="build", when="@2.28:")
depends_on("go@1.20:", type="build", when="@2.33:")
-
- phases = ["build", "install"]
-
- def setup_build_environment(self, env):
- # Point GOPATH at the top of the staging dir for the build step.
- env.prepend_path("GOPATH", self.stage.path)
-
- def build(self, spec, prefix):
- make()
-
- def install(self, spec, prefix):
- make("install", "PREFIX=%s" % prefix)