glib: fix for sandbox

Closes Homebrew/homebrew#42296.

Signed-off-by: Xu Cheng <xucheng@me.com>
This commit is contained in:
Xu Cheng 2015-07-31 18:36:28 +08:00
parent 5a03f899fb
commit 6cd7fd301f

View file

@ -79,6 +79,9 @@ class Glib < Formula
system "ed -s - config.h <config.h.ed"
end
# disable creating directory for GIO_MOUDLE_DIR, we will do this manually in post_install
inreplace "gio/Makefile", "$(mkinstalldirs) $(DESTDIR)$(GIO_MODULE_DIR)", ""
system "make"
# the spawn-multithreaded tests require more open files
system "ulimit -n 1024; make check" if build.with? "test"
@ -97,6 +100,10 @@ class Glib < Formula
(share+"gtk-doc").rmtree
end
def post_install
(HOMEBREW_PREFIX/"lib/gio/modules").mkpath
end
test do
(testpath/"test.c").write <<-EOS.undent
#include <string.h>