glib: fix for sandbox
Closes Homebrew/homebrew#42296. Signed-off-by: Xu Cheng <xucheng@me.com>
This commit is contained in:
parent
5a03f899fb
commit
6cd7fd301f
1 changed files with 7 additions and 0 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue