aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/unifdef.rb
blob: bfafe49adb23392b41d3ffd4ead49dbcc9031831 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
require "formula"

class Unifdef < Formula
  homepage "http://dotat.at/prog/unifdef/"
  head "https://github.com/fanf2/unifdef.git"
  url "http://dotat.at/prog/unifdef/unifdef-2.10.tar.gz"
  sha1 "8bc4e4feb914ff4aa164b23230b51d3f526559ac"

  keg_only :provided_by_osx,
    "The unifdef provided by Xcode cannot compile gevent."

  def install
    system "make", "prefix=#{prefix}", "install"
  end

  test do
    system "echo '' | #{bin}/unifdef"
  end
end