aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorDominyk Tiller2015-04-12 01:49:42 +0100
committerXu Cheng2015-04-12 20:05:51 +0800
commitff10483f32d7fef19923b9ffed81ce2a233e490e (patch)
tree292e8e9908cf60c1dd6b9903df525e2a0fd6c073 /Library
parenta45a8b133d5c184fdbb0aa573938e572eb13aa8e (diff)
downloadhomebrew-ff10483f32d7fef19923b9ffed81ce2a233e490e.tar.bz2
libmagic: install magic files
We're not currently installing the Magic files, which doesn't mimic Apple upstream: https://opensource.apple.com/source/file/file-46/xcodescripts/magic.sh It's also causing the problem in #38536 because although it's building against our libmagic it's only finding the system magic files in /usr/share. Revisioned the formula here because otherwise suricata remains broken unless everyone who has it installed also does a `brew reinstall libmagic`. Closes #38573. Signed-off-by: Xu Cheng <xucheng@me.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/libmagic.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/Library/Formula/libmagic.rb b/Library/Formula/libmagic.rb
index d0610dc6b..1965db2db 100644
--- a/Library/Formula/libmagic.rb
+++ b/Library/Formula/libmagic.rb
@@ -2,7 +2,8 @@ class Libmagic < Formula
homepage "http://www.darwinsys.com/file/"
url "ftp://ftp.astron.com/pub/file/file-5.22.tar.gz"
mirror "https://fossies.org/unix/misc/file-5.22.tar.gz"
- sha1 "20fa06592291555f2b478ea2fb70b53e9e8d1f7c"
+ sha256 "c4e3a8e44cb888c5e4b476e738503e37fb9de3b25a38c143e214bfc12109fc0b"
+ revision 1
bottle do
revision 3
@@ -22,10 +23,12 @@ class Libmagic < Formula
rm "src/magic.h"
system "./configure", "--disable-dependency-tracking",
+ "--disable-silent-rules",
"--prefix=#{prefix}",
"--enable-fsect-man5",
"--enable-static"
system "make", "install"
+ (share+"misc/magic").install Dir["magic/Magdir/*"]
if build.with? "python"
cd "python" do