libsecret: build with docbook instead of patching to avoid it

Closes Homebrew/homebrew#45147.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
master
Andrew Janke 2015-10-19 12:31:50 -04:00 committed by Mike McQuaid
parent 996e345cbf
commit be4c75a3f2
1 changed files with 4 additions and 3 deletions

View File

@ -14,12 +14,15 @@ class Libsecret < Formula
depends_on "gnu-sed" => :build
depends_on "intltool" => :build
depends_on "gettext" => :build
depends_on "docbook-xsl" => :build
depends_on "vala" => :optional
depends_on "gobject-introspection" => :recommended
depends_on "glib"
depends_on "libgcrypt"
def install
ENV["XML_CATALOG_FILES"] = "#{etc}/xml/catalog"
args = %W[
--disable-debug
--disable-dependency-tracking
@ -35,8 +38,6 @@ class Libsecret < Formula
# https://bugzilla.gnome.org/show_bug.cgi?id=734630
inreplace "Makefile", "sed", "gsed"
# https://bugzilla.gnome.org/show_bug.cgi?id=734631
inreplace "Makefile", "--nonet", ""
system "make", "install"
end
@ -70,7 +71,7 @@ class Libsecret < Formula
flags = [
"-I#{include}/libsecret-1",
"-I#{HOMEBREW_PREFIX}/include/glib-2.0",
"-I#{HOMEBREW_PREFIX}/lib/glib-2.0/include"
"-I#{HOMEBREW_PREFIX}/lib/glib-2.0/include",
]
system ENV.cc, "test.c", "-o", "test", *flags