36 lines
1.4 KiB
Ruby
36 lines
1.4 KiB
Ruby
class Vramsteg < Formula
|
|
desc "Add progress bars to command-line applications"
|
|
homepage "https://gothenburgbitfactory.org/projects/vramsteg.html"
|
|
url "https://gothenburgbitfactory.org/download/vramsteg-1.1.0.tar.gz"
|
|
sha256 "9cc82eb195e4673d9ee6151373746bd22513033e96411ffc1d250920801f7037"
|
|
head "https://github.com/GothenburgBitFactory/vramsteg.git", branch: "1.1.1"
|
|
|
|
livecheck do
|
|
url :head
|
|
regex(/^v?(\d+(?:\.\d+)+)$/i)
|
|
end
|
|
|
|
bottle do
|
|
cellar :any_skip_relocation
|
|
sha256 "a6f6f99e3b12dca8a56919d1144b10e43a9059e7691d56dfdf8aab330e6febe8" => :catalina
|
|
sha256 "a868fba582ce440a14ae18d4be193209e7d25fd3291b568bea7f123e61aa044d" => :mojave
|
|
sha256 "0c9aff3582ad05a388cba8c43770ead295d921a8e419323a3c4115f09e609ba1" => :high_sierra
|
|
sha256 "7f65668b7bb036fb19e69bdc9cbc2ec48728bc8c1936253f6d5e8d74a113a3fd" => :sierra
|
|
sha256 "e4b3e2e66c2f772a38de529b884091a2ffa1f920af6604696129d21cc9e70b99" => :el_capitan
|
|
sha256 "9285766e0502b88c62d3d295402a41c46b8d9d2707a492bb5d70484b1080c212" => :yosemite
|
|
sha256 "f9ea5a2984d676db153d2128b1aa84a413edb93692e9c6be8147e5a856d42972" => :mavericks
|
|
end
|
|
|
|
depends_on "cmake" => :build
|
|
|
|
def install
|
|
system "cmake", ".", *std_cmake_args
|
|
system "make", "install"
|
|
end
|
|
|
|
test do
|
|
# Check to see if vramsteg can obtain the current time as epoch
|
|
assert_match /^\d+$/, shell_output("#{bin}/vramsteg --now")
|
|
end
|
|
end
|