homebrew-fuse/Formula/tup-mac.rb

33 lines
896 B
Ruby
Raw Normal View History

2021-05-04 16:59:30 +08:00
require_relative "../require/macfuse"
class TupMac < Formula
desc "File-based build system"
homepage "http://gittup.org/tup/"
2021-06-02 08:24:18 +08:00
url "https://github.com/gittup/tup/archive/v0.7.11.tar.gz"
sha256 "be24dff5f1f32cc85c73398487a756b4a393adab5e4d8500fd5164909d3e85b9"
2021-05-04 16:59:30 +08:00
license "GPL-2.0-only"
head "https://github.com/gittup/tup.git"
bottle do
2021-06-02 08:24:18 +08:00
root_url "https://github.com/gromgit/homebrew-fuse/releases/download/tup-mac-0.7.11"
sha256 cellar: :any, big_sur: "e1d223dcd5865119de5a2b9570ef28ec780909d709db49f53c3fe7229aa68e5a"
2021-05-04 16:59:30 +08:00
end
depends_on "pkg-config" => :build
depends_on MacfuseRequirement
depends_on :macos
def install
ENV["TUP_LABEL"] = version
system "./build.sh"
bin.install "build/tup"
man1.install "tup.1"
doc.install (buildpath/"docs").children
pkgshare.install "contrib/syntax"
end
test do
system "#{bin}/tup", "-v"
end
end