brew style mandated fixes

This commit is contained in:
Adrian Ho 2025-02-10 20:21:16 +08:00
parent d5e4d7d89f
commit 5f8d764deb
16 changed files with 29 additions and 33 deletions

View file

@ -11,13 +11,12 @@ cask "mounty" do
version "2.1" version "2.1"
sha256 "2aeeb012ebaf1d60767d268e48c8b90726e3f05b2e35945f4293c11fbad84381" sha256 "2aeeb012ebaf1d60767d268e48c8b90726e3f05b2e35945f4293c11fbad84381"
depends_on cask: "macfuse"
depends_on formula: "gromgit/fuse/ntfs-3g-mac"
livecheck do livecheck do
url :homepage url :homepage
regex(/Latest\s+version:\s*(\d+(?:\.\d+)+)/i) regex(/Latest\s+version:\s*(\d+(?:\.\d+)+)/i)
end end
depends_on cask: "macfuse"
depends_on formula: "gromgit/fuse/ntfs-3g-mac"
end end
url "https://mounty.app/releases/Mounty-#{version}.dmg" url "https://mounty.app/releases/Mounty-#{version}.dmg"

View file

@ -3,7 +3,7 @@ require_relative "../require/macfuse"
class BtfsMac < Formula class BtfsMac < Formula
desc "BitTorrent filesystem based on FUSE" desc "BitTorrent filesystem based on FUSE"
homepage "https://github.com/johang/btfs" homepage "https://github.com/johang/btfs"
url "https://github.com/johang/btfs/archive/v2.24.tar.gz" url "https://github.com/johang/btfs/archive/refs/tags/v2.24.tar.gz"
sha256 "d71ddefe3c572e05362542a0d9fd0240d8d4e1578ace55a8b3245176e7fd8935" sha256 "d71ddefe3c572e05362542a0d9fd0240d8d4e1578ace55a8b3245176e7fd8935"
license "GPL-3.0-only" license "GPL-3.0-only"
head "https://github.com/johang/btfs.git" head "https://github.com/johang/btfs.git"

View file

@ -7,6 +7,8 @@ class CryfsMac < Formula
sha256 "18f68e0defdcb7985f4add17cc199b6653d5f2abc6c4d237a0d48ae91a6c81c0" sha256 "18f68e0defdcb7985f4add17cc199b6653d5f2abc6c4d237a0d48ae91a6c81c0"
license "LGPL-3.0-only" license "LGPL-3.0-only"
head "https://github.com/cryfs/cryfs.git", branch: "develop", shallow: false
bottle do bottle do
root_url "https://github.com/gromgit/homebrew-fuse/releases/download/cryfs-mac-0.11.3" root_url "https://github.com/gromgit/homebrew-fuse/releases/download/cryfs-mac-0.11.3"
sha256 cellar: :any, arm64_monterey: "225fae9b8f7deff22021f8246b0c5cfcb7ed2148a203db913129f51fd2127e70" sha256 cellar: :any, arm64_monterey: "225fae9b8f7deff22021f8246b0c5cfcb7ed2148a203db913129f51fd2127e70"
@ -15,10 +17,6 @@ class CryfsMac < Formula
sha256 cellar: :any, catalina: "2bb057bb09d92948c76f563fa2347b0260b2c00872655b30dc83b4a54ca4bd74" sha256 cellar: :any, catalina: "2bb057bb09d92948c76f563fa2347b0260b2c00872655b30dc83b4a54ca4bd74"
end end
head do
url "https://github.com/cryfs/cryfs.git", branch: "develop", shallow: false
end
depends_on "cmake" => :build depends_on "cmake" => :build
depends_on "conan" => :build depends_on "conan" => :build
depends_on "ninja" => :build depends_on "ninja" => :build

View file

@ -3,7 +3,7 @@ require_relative "../require/macfuse"
class DislockerMac < Formula class DislockerMac < Formula
desc "FUSE driver to read/write Windows' BitLocker-ed volumes" desc "FUSE driver to read/write Windows' BitLocker-ed volumes"
homepage "https://github.com/Aorimn/dislocker" homepage "https://github.com/Aorimn/dislocker"
url "https://github.com/Aorimn/dislocker/archive/v0.7.3.tar.gz" url "https://github.com/Aorimn/dislocker/archive/refs/tags/v0.7.3.tar.gz"
sha256 "8d5275577c44f2bd87f6e05dd61971a71c0e56a9cbedf000bd38deadd8b6c1e6" sha256 "8d5275577c44f2bd87f6e05dd61971a71c0e56a9cbedf000bd38deadd8b6c1e6"
license "GPL-2.0-or-later" license "GPL-2.0-or-later"
revision 1 revision 1

View file

@ -3,7 +3,7 @@ require_relative "../require/macfuse"
class EncfsMac < Formula class EncfsMac < Formula
desc "Encrypted pass-through FUSE file system" desc "Encrypted pass-through FUSE file system"
homepage "https://vgough.github.io/encfs/" homepage "https://vgough.github.io/encfs/"
url "https://github.com/vgough/encfs/archive/v1.9.5.tar.gz" url "https://github.com/vgough/encfs/archive/refs/tags/v1.9.5.tar.gz"
sha256 "4709f05395ccbad6c0a5b40a4619d60aafe3473b1a79bafb3aa700b1f756fd63" sha256 "4709f05395ccbad6c0a5b40a4619d60aafe3473b1a79bafb3aa700b1f756fd63"
# The code comprising the EncFS library (libencfs) is licensed under the LGPL. # The code comprising the EncFS library (libencfs) is licensed under the LGPL.
# The main programs (encfs, encfsctl, etc) are licensed under the GPL. # The main programs (encfs, encfsctl, etc) are licensed under the GPL.

View file

@ -3,7 +3,7 @@ require_relative "../require/macfuse"
class Ext4fuseMac < Formula class Ext4fuseMac < Formula
desc "Read-only implementation of ext4 for FUSE" desc "Read-only implementation of ext4 for FUSE"
homepage "https://github.com/gerard/ext4fuse" homepage "https://github.com/gerard/ext4fuse"
url "https://github.com/gerard/ext4fuse/archive/v0.1.3.tar.gz" url "https://github.com/gerard/ext4fuse/archive/refs/tags/v0.1.3.tar.gz"
sha256 "550f1e152c4de7d4ea517ee1c708f57bfebb0856281c508511419db45aa3ca9f" sha256 "550f1e152c4de7d4ea517ee1c708f57bfebb0856281c508511419db45aa3ca9f"
license "GPL-2.0-only" license "GPL-2.0-only"
head "https://github.com/gerard/ext4fuse.git" head "https://github.com/gerard/ext4fuse.git"

View file

@ -3,7 +3,7 @@ require_relative "../require/macfuse"
class GcsfuseMac < Formula class GcsfuseMac < Formula
desc "User-space file system for interacting with Google Cloud" desc "User-space file system for interacting with Google Cloud"
homepage "https://github.com/googlecloudplatform/gcsfuse" homepage "https://github.com/googlecloudplatform/gcsfuse"
url "https://github.com/GoogleCloudPlatform/gcsfuse/archive/v0.42.5.tar.gz" url "https://github.com/GoogleCloudPlatform/gcsfuse/archive/refs/tags/v0.42.5.tar.gz"
sha256 "272ad522ebbbfe3da87ee00aeff5fe347d25a4a49499c254e482a59bbed5c692" sha256 "272ad522ebbbfe3da87ee00aeff5fe347d25a4a49499c254e482a59bbed5c692"
license "Apache-2.0" license "Apache-2.0"
head "https://github.com/GoogleCloudPlatform/gcsfuse.git" head "https://github.com/GoogleCloudPlatform/gcsfuse.git"

View file

@ -5,7 +5,7 @@ class GitfsMac < Formula
desc "Version controlled file system" desc "Version controlled file system"
homepage "https://www.presslabs.com/gitfs" homepage "https://www.presslabs.com/gitfs"
url "https://github.com/presslabs/gitfs/archive/0.5.2.tar.gz" url "https://github.com/presslabs/gitfs/archive/refs/tags/0.5.2.tar.gz"
sha256 "921e24311e3b8ea3a5448d698a11a747618ee8dd62d5d43a85801de0b111cbf3" sha256 "921e24311e3b8ea3a5448d698a11a747618ee8dd62d5d43a85801de0b111cbf3"
license "Apache-2.0" license "Apache-2.0"
revision 1 revision 1

View file

@ -3,7 +3,7 @@ require_relative "../require/macfuse"
class IfuseMac < Formula class IfuseMac < Formula
desc "FUSE module for iOS devices" desc "FUSE module for iOS devices"
homepage "https://www.libimobiledevice.org/" homepage "https://www.libimobiledevice.org/"
url "https://github.com/libimobiledevice/ifuse/archive/1.1.4.tar.gz" url "https://github.com/libimobiledevice/ifuse/archive/refs/tags/1.1.4.tar.gz"
sha256 "2a00769e8f1d8bad50898b9d00baf12c8ae1cda2d19ff49eaa9bf580e5dbe78c" sha256 "2a00769e8f1d8bad50898b9d00baf12c8ae1cda2d19ff49eaa9bf580e5dbe78c"
license "LGPL-2.1-or-later" license "LGPL-2.1-or-later"
head "https://cgit.sukimashita.com/ifuse.git" head "https://cgit.sukimashita.com/ifuse.git"

View file

@ -3,7 +3,7 @@ require_relative "../require/macfuse"
class RcloneMac < Formula class RcloneMac < Formula
desc "Rsync for cloud storage (with macOS FUSE mount support)" desc "Rsync for cloud storage (with macOS FUSE mount support)"
homepage "https://rclone.org/" homepage "https://rclone.org/"
url "https://github.com/rclone/rclone/archive/v1.62.2.tar.gz" url "https://github.com/rclone/rclone/archive/refs/tags/v1.62.2.tar.gz"
sha256 "6741c81ae5b5cb48a04055f280f6e220ed4b35d26fe43f59510d0f7740044748" sha256 "6741c81ae5b5cb48a04055f280f6e220ed4b35d26fe43f59510d0f7740044748"
license "MIT" license "MIT"
head "https://github.com/rclone/rclone.git" head "https://github.com/rclone/rclone.git"

View file

@ -3,7 +3,7 @@ require_relative "../require/macfuse"
class RofsFilteredMac < Formula class RofsFilteredMac < Formula
desc "Filtered read-only filesystem for FUSE" desc "Filtered read-only filesystem for FUSE"
homepage "https://github.com/gburca/rofs-filtered/" homepage "https://github.com/gburca/rofs-filtered/"
url "https://github.com/gburca/rofs-filtered/archive/rel-1.7.tar.gz" url "https://github.com/gburca/rofs-filtered/archive/refs/tags/rel-1.7.tar.gz"
sha256 "d66066dfd0274a2fb7b71dd929445377dd23100b9fa43e3888dbe3fc7e8228e8" sha256 "d66066dfd0274a2fb7b71dd929445377dd23100b9fa43e3888dbe3fc7e8228e8"
license "GPL-2.0-or-later" license "GPL-2.0-or-later"

View file

@ -3,7 +3,7 @@ require_relative "../require/macfuse"
class S3fsMac < Formula class S3fsMac < Formula
desc "FUSE-based file system backed by Amazon S3" desc "FUSE-based file system backed by Amazon S3"
homepage "https://github.com/s3fs-fuse/s3fs-fuse/wiki" homepage "https://github.com/s3fs-fuse/s3fs-fuse/wiki"
url "https://github.com/s3fs-fuse/s3fs-fuse/archive/v1.92.tar.gz" url "https://github.com/s3fs-fuse/s3fs-fuse/archive/refs/tags/v1.92.tar.gz"
sha256 "76ebea3c0784c5c0f6b84e009d555806aff86258886ced39eee316bf02ae8750" sha256 "76ebea3c0784c5c0f6b84e009d555806aff86258886ced39eee316bf02ae8750"
license "GPL-2.0-or-later" license "GPL-2.0-or-later"
head "https://github.com/s3fs-fuse/s3fs-fuse.git" head "https://github.com/s3fs-fuse/s3fs-fuse.git"

View file

@ -3,7 +3,7 @@ require_relative "../require/macfuse"
class SimpleMtpfsMac < Formula class SimpleMtpfsMac < Formula
desc "Simple MTP fuse filesystem driver" desc "Simple MTP fuse filesystem driver"
homepage "https://github.com/phatina/simple-mtpfs" homepage "https://github.com/phatina/simple-mtpfs"
url "https://github.com/phatina/simple-mtpfs/archive/v0.4.0.tar.gz" url "https://github.com/phatina/simple-mtpfs/archive/refs/tags/v0.4.0.tar.gz"
sha256 "1d011df3fa09ad0a5c09d48d84c03e6cddf86390af9eb4e0c178193f32f0e2fc" sha256 "1d011df3fa09ad0a5c09d48d84c03e6cddf86390af9eb4e0c178193f32f0e2fc"
license "GPL-2.0-or-later" license "GPL-2.0-or-later"

View file

@ -3,7 +3,7 @@ require_relative "../require/macfuse"
class TupMac < Formula class TupMac < Formula
desc "File-based build system" desc "File-based build system"
homepage "http://gittup.org/tup/" homepage "http://gittup.org/tup/"
url "https://github.com/gittup/tup/archive/v0.7.11.tar.gz" url "https://github.com/gittup/tup/archive/refs/tags/v0.7.11.tar.gz"
sha256 "be24dff5f1f32cc85c73398487a756b4a393adab5e4d8500fd5164909d3e85b9" sha256 "be24dff5f1f32cc85c73398487a756b4a393adab5e4d8500fd5164909d3e85b9"
license "GPL-2.0-only" license "GPL-2.0-only"
head "https://github.com/gittup/tup.git" head "https://github.com/gittup/tup.git"

View file

@ -16,12 +16,7 @@ First, if you've already installed FUSE formulae from the core tap _before_ they
1. As far as I know, Homebrew will not remove them from your system, even after the formulae themselves are deleted. 1. As far as I know, Homebrew will not remove them from your system, even after the formulae themselves are deleted.
2. Many of these formulae are rather old, so you're unlikely to find updates anyway. 2. Many of these formulae are rather old, so you're unlikely to find updates anyway.
But if you _do_ want to install my formulae over the core ones, you should uninstall the latter first: But if you _do_ want to install my formulae over the core ones, you should uninstall the latter first.
```
brew uninstall XYZ
brew install gromgit/fuse/XYZ-mac
```
Note the `-mac` suffix to the formula name.
## Documentation ## Documentation

View file

@ -1,5 +1,6 @@
# string formatters # string formatters
if [[ -t 1 ]]; then if [[ -t 1 ]]
then
Tty_escape() { printf "\033[%sm" "$1"; } Tty_escape() { printf "\033[%sm" "$1"; }
else else
Tty_escape() { :; } Tty_escape() { :; }
@ -46,10 +47,12 @@ info() {
need_progs() { need_progs() {
local missing=() local missing=()
local i local i
for i in "$@"; do for i in "$@"
type -P "$i" &>/dev/null || missing+=("$i") do
type -P "${i}" &>/dev/null || missing+=("${i}")
done done
if [[ ${#missing[@]} -gt 0 ]]; then if [[ ${#missing[@]} -gt 0 ]]
then
fatal "Commands missing: ${missing[*]}" fatal "Commands missing: ${missing[*]}"
exit 1 exit 1
fi fi
@ -65,8 +68,9 @@ cmd() {
# git_in: Run Git command in repo # git_in: Run Git command in repo
# USAGE: git_in <repo> <cmd> ... # USAGE: git_in <repo> <cmd> ...
git_in() { git_in() {
local repo=$1; shift local repo=$1
pushd "$repo" >/dev/null || fatal "Can't cd to '$repo'" shift
pushd "${repo}" >/dev/null || fatal "Can't cd to '${repo}'"
cmd git "$@" cmd git "$@"
popd >/dev/null popd >/dev/null || exit
} }