7bd947eb0b
* 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
18 lines
540 B
Ruby
18 lines
540 B
Ruby
require 'formula'
|
|
|
|
class Libmagic < Formula
|
|
url 'ftp://ftp.astron.com/pub/file/file-5.04.tar.gz'
|
|
homepage 'http://www.darwinsys.com/file/'
|
|
md5 'accade81ff1cc774904b47c72c8aeea0'
|
|
|
|
keg_only <<-KEG.undent
|
|
This brew provides 'libmagic', but also installs a 'file' command which shadows the OS X-provided one.
|
|
KEG
|
|
|
|
def install
|
|
system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking"
|
|
system "make"
|
|
ENV.j1 # Remove some warnings during install
|
|
system "make install"
|
|
end
|
|
end
|