glib: fix more hardcoded paths
Fixes Homebrew/homebrew#29014. Closes Homebrew/homebrew#29132. Closes Homebrew/homebrew#29142. Closes Homebrew/homebrew#29143.
This commit is contained in:
parent
d9851a5d77
commit
a415a74069
1 changed files with 6 additions and 2 deletions
|
@ -4,6 +4,7 @@ class Glib < Formula
|
|||
homepage "http://developer.gnome.org/glib/"
|
||||
url "http://ftp.gnome.org/pub/gnome/sources/glib/2.40/glib-2.40.0.tar.xz"
|
||||
sha256 "0d27f195966ecb1995dcce0754129fd66ebe820c7cd29200d264b02af1aa28b5"
|
||||
revision 1
|
||||
|
||||
bottle do
|
||||
sha1 "85f199d88dd10459de8752a42bd25a6092046d14" => :mavericks
|
||||
|
@ -34,8 +35,8 @@ class Glib < Formula
|
|||
# but needed to fix an assumption about the location of the d-bus machine
|
||||
# id file.
|
||||
patch do
|
||||
url "https://gist.githubusercontent.com/jacknagel/6700436/raw/2d790a8bd0c59ef66835866523988fbf9f680443/glib-configurable-paths.patch"
|
||||
sha1 "7b89ce26c256e43cfdc11bae0c4498ec8529bcd4"
|
||||
url "https://gist.githubusercontent.com/jacknagel/af332f42fae80c570a77/raw/a738786e0f7ea46c4a93a36a3d9d569017cca7f2/glib-hardcoded-paths.diff"
|
||||
sha1 "ce54abdbb4386902a33dbad7cb6c8f1b0cbdab0d"
|
||||
end
|
||||
|
||||
# Fixes compilation with FSF GCC. Doesn't fix it on every platform, due
|
||||
|
@ -54,6 +55,9 @@ class Glib < Formula
|
|||
def install
|
||||
ENV.universal_binary if build.universal?
|
||||
|
||||
inreplace %w[gio/gdbusprivate.c gio/xdgmime/xdgmime.c glib/gutils.c],
|
||||
"@@HOMEBREW_PREFIX@@", HOMEBREW_PREFIX
|
||||
|
||||
# Disable dtrace; see https://trac.macports.org/ticket/30413
|
||||
args = %W[
|
||||
--disable-maintainer-mode
|
||||
|
|
Loading…
Reference in a new issue