libmagic 5.10

Upgrade libmagic to version 5.10.

Throw the --enable-fsect-man5 flag to configure because OSX uses
magic(5) not magic(4) when it comes to man page sections.

Closes Homebrew/homebrew#10198.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
Nibbles 2bits 2012-02-14 23:21:57 -08:00 committed by Jack Nagel
parent 3dde9bd427
commit 66bd6587d7

View file

@ -1,12 +1,14 @@
require 'formula'
class Libmagic < Formula
url 'ftp://ftp.astron.com/pub/file/file-5.09.tar.gz'
homepage 'http://www.darwinsys.com/file/'
md5 '6fd7cd6c4281e68fe9ec6644ce0fac6f'
url 'ftp://ftp.astron.com/pub/file/file-5.10.tar.gz'
sha1 '72fd435e78955ee122b7b3d323ff2f92e6263e89'
def install
system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}"
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}",
"--enable-fsect-man5"
system "make"
ENV.j1 # Remove some warnings during install
system "make install"