spack/var/spack/repos/builtin/packages/macfuse/package.py
Massimiliano Culpo f242e0fd0c
remove platform=cray (#43796)
Remove support for `cray` as a separate platform.

Any platform previously detected as `cray` is now detected as `linux`.

Users who still need platform=cray have to stick to Spack 0.22
2024-05-30 14:21:32 +02:00

46 lines
1.3 KiB
Python

# 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 *
class Macfuse(Package):
"""FUSE for macOS allows you to extend macOS via third party file systems."""
homepage = "https://osxfuse.github.io/"
git = "https://github.com/osxfuse/osxfuse.git"
has_code = False # only distributed in binary form
version("4.1.2")
provides("fuse")
conflicts("platform=linux", msg="macfuse does not support linux, use libfuse instead")
def install(self, spec, prefix):
msg = """
macFUSE is only distributed in binary form.
To use macFUSE with Spack, manually download the .dmg from:
https://github.com/osxfuse/osxfuse/releases
and double-click to install. Once macFUSE is installed,
add it as an external package by running:
$ spack config edit packages
and add an entry like so:
packages:
macfuse:
buildable: false
externals:
- spec: macfuse@4.1.2
prefix: /Library/Frameworks/macFUSE.framework"""
raise InstallError(msg)
def setup_dependent_run_environment(self, env, dependent_spec):
env.set("FUSE_LIBRARY_PATH", self.prefix.macFUSE)