aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/libmagic.rb
diff options
context:
space:
mode:
authorKrzysztof Wilczynski2014-04-02 01:43:59 +0100
committerMike McQuaid2014-04-02 12:09:29 +0100
commitcd96755b4c9e68949d3b991e1c54c1714cb82ede (patch)
treed2a427a649982ecc4c2fb5e54dfb9a118d0a700c /Library/Formula/libmagic.rb
parent0e4fe7ff5e64d4d55bd74b4d158a78ed7a87b8da (diff)
downloadhomebrew-cd96755b4c9e68949d3b991e1c54c1714cb82ede.tar.bz2
libmagic 5.18
Also includes a patch concerning bugs (fixed upstream already): - http://bugs.gw.com/view.php?id=338 - http://bugs.gw.com/view.php?id=341 - http://bugs.gw.com/view.php?id=342
Diffstat (limited to 'Library/Formula/libmagic.rb')
-rw-r--r--Library/Formula/libmagic.rb15
1 files changed, 12 insertions, 3 deletions
diff --git a/Library/Formula/libmagic.rb b/Library/Formula/libmagic.rb
index 512f8b295..d415b21f4 100644
--- a/Library/Formula/libmagic.rb
+++ b/Library/Formula/libmagic.rb
@@ -2,9 +2,9 @@ require 'formula'
class Libmagic < Formula
homepage 'http://www.darwinsys.com/file/'
- url 'ftp://ftp.astron.com/pub/file/file-5.17.tar.gz'
- mirror 'http://fossies.org/unix/misc/file-5.17.tar.gz'
- sha1 'f7e837a0d3e4f40a02ffe7da5e146b967448e0d8'
+ url 'ftp://ftp.astron.com/pub/file/file-5.18.tar.gz'
+ mirror 'http://fossies.org/unix/misc/file-5.18.tar.gz'
+ sha1 '8753e72097f2cc935608e3b1c57c4c4e31bd8d21'
bottle do
revision 1
@@ -21,6 +21,15 @@ class Libmagic < Formula
# See http://bugs.gw.com/view.php?id=230
patch :DATA if MacOS.version < :lion
+ # Fixed upstream, should be in next release.
+ # See: http://bugs.gw.com/view.php?id=338
+ # http://bugs.gw.com/view.php?id=341
+ # http://bugs.gw.com/view.php?id=342
+ patch :p1 do
+ url 'https://gist.githubusercontent.com/kwilczynski/9925996/raw/483a877749c925a8dcc068de8e3ce5b92f5ea826/338-341-342.diff'
+ sha1 'ff6f630bbe699091cb7d8228486f4de67b338fc8'
+ end
+
def install
ENV.universal_binary if build.universal?