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

class Unifdef < Formula
  url 'http://dotat.at/prog/unifdef/unifdef-2.6.tar.gz'
  homepage 'http://dotat.at/prog/unifdef/'
  sha1 '1b9bea1c4abc2c8fa3f90d6340200f9bd6ead6d9'

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

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

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