homebrew-core/Formula/libmagic.rb
Max Howell c25736beff Don't keg-only libmagic, just delete the 'file' tool
This is libmagic, nobody wants the file command. If they do, they can make a new formula. Though in that case it would be a dupe and we wouldn't want it.

Fixes Homebrew/homebrew#7280.
2011-09-02 12:31:58 +01:00

18 lines
527 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'
def install
system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking"
system "make"
ENV.j1 # Remove some warnings during install
system "make install"
# don't dupe this system utility and this formula is called "libmagic" not "file"
rm bin/"file"
rm man1/"file.1"
end
end