racket packages: fix typo after multiple build systems support (#40088)

This commit is contained in:
Thomas Dickerson 2023-10-09 08:21:13 -04:00 committed by GitHub
parent 3108036533
commit c0f1072dc7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 22 additions and 1 deletions

View File

@ -64,7 +64,7 @@ class RacketBuilder(spack.builder.Builder):
@property
def subdirectory(self):
if self.racket_name:
if self.pkg.racket_name:
return "pkgs/{0}".format(self.pkg.racket_name)
return None

View File

@ -0,0 +1,20 @@
# 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 RktRacketLib(RacketPackage):
"""Stub package for packages which are currently part of core
racket installation (but which may change in the future)."""
git = "ssh://git@github.com/racket/racket.git"
maintainers = ["elfprince13"]
version("8.3", commit="cab83438422bfea0e4bd74bc3e8305e6517cf25f") # tag="v8.3"
depends_on("racket@8.3", type=("build", "run"), when="@8.3")
racket_name = "racket-lib"

View File

@ -17,3 +17,4 @@ class RktSchemeLib(RacketPackage):
depends_on("rkt-base@8.3", type=("build", "run"), when="@8.3")
racket_name = "scheme-lib"
subdirectory = None