From 1b91c2715669b67b0df1b6665bf95bb5aca45364 Mon Sep 17 00:00:00 2001 From: Jeffrey Wildman Date: Mon, 22 Dec 2014 20:49:53 -0600 Subject: [PATCH] New formula for libosinfo --- libosinfo.rb | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 libosinfo.rb diff --git a/libosinfo.rb b/libosinfo.rb new file mode 100644 index 0000000..eb321c3 --- /dev/null +++ b/libosinfo.rb @@ -0,0 +1,38 @@ +class Libosinfo < Formula + homepage "https://libosinfo.org/" + url "https://fedorahosted.org/releases/l/i/libosinfo/libosinfo-0.2.11.tar.gz" + sha1 "5123247ce495136df8cae6bf889b70c43ab33f17" + + depends_on "pkg-config" => :build + depends_on "intltool" => :build + depends_on "gobject-introspection" => :build + + depends_on "check" + depends_on "libxml2" + depends_on "libsoup-with-gnome" => "with-gobject-introspection" + + patch :DATA # remove unknown linker option: --no-undefined + + def install + system "./configure", "--disable-dependency-tracking", + "--disable-silent-rules", + "--enable-introspection", + "--prefix=#{prefix}" + + system "make", "install" + end +end +__END__ +diff --git a/configure b/configure +index 01b764d..22f7d15 100755 +--- a/configure ++++ b/configure +@@ -14694,7 +14694,7 @@ case "$host" in + ;; + + *) +- NO_UNDEFINED_FLAGS="-Wl,--no-undefined" ++ NO_UNDEFINED_FLAGS="" + VERSION_SCRIPT_FLAGS=-Wl,--version-script= + `ld --help 2>&1 | grep -- --version-script >/dev/null` || \ + VERSION_SCRIPT_FLAGS="-Wl,-M -Wl,"