homebrew-core/Formula/omega.rb
Adam Vandenberg 7bd947eb0b Update formulae for version 0.7
* Use new "url" features
* Use keg_only DSL
* Use "skip_clean :all" DSL
* Whitespace and style cleanups
* Make bash invocations less silly
* Use new man2-man8 helpers
* Remove "FileUtils." since it is included in Formula
* Use real names for deps instead of aliases
* ENV.x11 now updates path, so remove that from individual brews
2010-08-07 18:08:53 -07:00

27 lines
778 B
Ruby

require 'formula'
class Omega <Formula
url 'http://www.alcyone.com/binaries/omega/omega-0.80.2-src.tar.gz'
homepage 'http://www.alcyone.com/max/projects/omega/'
md5 '6d65ec9e0cc87ccf89ab491533ec4b77'
def install
# Set up our target folders
inreplace "defs.h", "#define OMEGALIB \"./omegalib/\"", "#define OMEGALIB \"#{libexec}/\""
# Don't alias CC; also, don't need that ncurses include path
# Set the system type in CFLAGS, not in makefile
# Remove an obsolete flag
inreplace "Makefile" do |s|
s.remove_make_var! ['CC', 'CFLAGS', 'LDFLAGS']
end
ENV.append_to_cflags "-DUNIX -DSYSV"
system "make"
# 'make install' is weird, so we do it ourselves
bin.install "omega"
libexec.install Dir['omegalib/*']
end
end