mirror of
https://github.com/gromgit/homebrew-fuse.git
synced 2025-12-08 09:11:37 +00:00
fusehfs-mac 0.1.5 (new formula)
Closes #83. Signed-off-by: Adrian Ho <215702+gromgit@users.noreply.github.com>
This commit is contained in:
parent
eafb545b81
commit
410180525e
1 changed files with 41 additions and 0 deletions
41
Formula/fusehfs-mac.rb
Normal file
41
Formula/fusehfs-mac.rb
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
require_relative "../require/macfuse"
|
||||
|
||||
class FusehfsMac < Formula
|
||||
desc "FUSE driver for HFS filesystems"
|
||||
homepage "https://thejoelpatrol.github.io/fusehfs/"
|
||||
url "https://github.com/thejoelpatrol/fusehfs/archive/refs/tags/v0.1.5.tar.gz"
|
||||
sha256 "0f37b0cf31d38665af279b7b5bde0a185da55d7e8e6ccdb0de9133c3740143e8"
|
||||
license "GPL-2.0-or-later"
|
||||
head "https://github.com/thejoelpatrol/fusehfs.git", branch: "master"
|
||||
|
||||
depends_on xcode: :build
|
||||
depends_on MacfuseRequirement
|
||||
depends_on :macos
|
||||
|
||||
def install
|
||||
setup_fuse
|
||||
xcodebuild "-arch", Hardware::CPU.arch,
|
||||
"-target", "FS Bundle",
|
||||
"-configuration", "Release",
|
||||
"CODE_SIGN_IDENTITY=-",
|
||||
"SYMROOT=build",
|
||||
"MACOSX_DEPLOYMENT_TARGET=#{MacOS.version}"
|
||||
bin.install "build/Release/hfsck"
|
||||
bin.install "build/Release/mount_fusefs_hfs"
|
||||
pkgshare.install "build/Release/fusefs_hfs.fs"
|
||||
end
|
||||
|
||||
def caveats
|
||||
<<~EOS
|
||||
To add support for mounting HFS-formatted disk images via double-click,
|
||||
install and re-sign the filesystem bundle with:
|
||||
|
||||
codesign -f -s - $(brew --prefix)/share/fusehfs-mac/fusefs_hfs.fs
|
||||
sudo ln -s $(brew --prefix)/share/fusehfs-mac/fusefs_hfs.fs /Library/Filesystems
|
||||
EOS
|
||||
end
|
||||
|
||||
test do
|
||||
assert_match version.to_s, shell_output("#{bin}/mount_fusefs_hfs --version 2>&1", 1)
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue