26 lines
1.1 KiB
Ruby
26 lines
1.1 KiB
Ruby
class Unifdef < Formula
|
|
desc "Selectively process conditional C preprocessor directives"
|
|
homepage "https://dotat.at/prog/unifdef/"
|
|
url "https://dotat.at/prog/unifdef/unifdef-2.12.tar.gz"
|
|
sha256 "fba564a24db7b97ebe9329713ac970627b902e5e9e8b14e19e024eb6e278d10b"
|
|
head "https://github.com/fanf2/unifdef.git"
|
|
|
|
bottle do
|
|
sha256 cellar: :any_skip_relocation, arm64_big_sur: "8dbc4bc39701aac4f2da738734f72bc002ad3e3e802343405b5c4acd1eb42928"
|
|
sha256 cellar: :any_skip_relocation, big_sur: "aa7b0d6df5dfa2fbaa5886881def3b22b1bb55917f3734f7aede03816c257b28"
|
|
sha256 cellar: :any_skip_relocation, catalina: "ae908aa0c1845ce059576df3922808db790fb0ea91109f89aa930c8da7a68904"
|
|
sha256 cellar: :any_skip_relocation, mojave: "ded3ae5ba762ee493fc5ed45d0e6ed5a8261b4bf9bc2de54880f4a373b1ba075"
|
|
sha256 cellar: :any_skip_relocation, high_sierra: "74ec90a8fc2467e8d613f2a6347d973dcd6387fdd9734bc66088a64ace7e0d4d"
|
|
end
|
|
|
|
keg_only :provided_by_macos
|
|
|
|
def install
|
|
system "make", "prefix=#{prefix}", "install"
|
|
end
|
|
|
|
test do
|
|
pipe_output("#{bin}/unifdef", "echo ''")
|
|
end
|
|
end
|