32 lines
1.2 KiB
Ruby
32 lines
1.2 KiB
Ruby
class Dex < Formula
|
|
desc "Dextrous text editor"
|
|
homepage "https://github.com/tihirvon/dex"
|
|
url "https://github.com/tihirvon/dex/archive/v1.0.tar.gz"
|
|
sha256 "4468b53debe8da6391186dccb78288a8a77798cb4c0a00fab9a7cdc711cd2123"
|
|
head "https://github.com/tihirvon/dex.git"
|
|
|
|
bottle do
|
|
rebuild 1
|
|
sha256 "d59f96c9f1e021bc400a832d680039313256073d88527ef18b961e783c71879b" => :catalina
|
|
sha256 "689a8e1a94a3c2922defac96859aca9b4675118858d9abc8338c0687cf714f43" => :mojave
|
|
sha256 "1d36402b9470f2e714bf9b9b94e9575d06130485559826a08181ff9087e77176" => :high_sierra
|
|
sha256 "1e413a64cd9e2c594ec47c7e5e9ff36ab199126f6708265f5ad87363e66f033e" => :sierra
|
|
sha256 "70c249809920acc2d10405c0487427d154ee55cf201507d910d8178693c7fd61" => :el_capitan
|
|
sha256 "a4cffc5c0b61be9452988d4435ccff1d1c72d2b9cdec595e55ea5f37ca2541a6" => :yosemite
|
|
sha256 "ce004b66bad4f8ad7d363f45a0b6af15fc96f719a591f3383cd2a84dc424d9e3" => :mavericks
|
|
end
|
|
|
|
def install
|
|
args = ["prefix=#{prefix}",
|
|
"CC=#{ENV.cc}",
|
|
"HOST_CC=#{ENV.cc}"]
|
|
|
|
args << "VERSION=#{version}" if build.head?
|
|
|
|
system "make", "install", *args
|
|
end
|
|
|
|
test do
|
|
system bin/"dex", "-V"
|
|
end
|
|
end
|