diff options
| author | Tony Cebzanov | 2013-09-16 18:01:03 -0400 |
|---|---|---|
| committer | Adam Vandenberg | 2013-09-19 07:42:33 -0700 |
| commit | 11488f530f1abba5ecd1d3e9340cd1e0161b661b (patch) | |
| tree | eedd05ede38bb2d83c7c67284545ad6c73a5f45f /Library/Formula | |
| parent | 537aee463d371738b8e8f92b0d87ce17356223bc (diff) | |
| download | homebrew-11488f530f1abba5ecd1d3e9340cd1e0161b661b.tar.bz2 | |
New formula: gcab
Closes #22597.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/gcab.rb | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/Library/Formula/gcab.rb b/Library/Formula/gcab.rb new file mode 100644 index 000000000..b510b877a --- /dev/null +++ b/Library/Formula/gcab.rb @@ -0,0 +1,42 @@ +require 'formula' + +class Gcab < Formula + homepage 'https://wiki.gnome.org/msitools' + url 'http://ftp.gnome.org/pub/GNOME/sources/gcab/0.4/gcab-0.4.tar.xz' + sha1 'd81dfe35125e611e3a94c0d4def37ebf62b9187c' + + depends_on 'xz' => :build + depends_on 'intltool' => :build + depends_on 'pkg-config' => :build + depends_on 'vala' => :build + depends_on 'gettext' + depends_on 'glib' + depends_on 'gobject-introspection' + + def patches + # work around ld not understanding --version-script argument + # upstream bug: https://bugzilla.gnome.org/show_bug.cgi?id=708257 + DATA + end + + def install + system "./configure", "--disable-debug", + "--prefix=#{prefix}" + system "make", "install" + end +end + +__END__ +diff --git a/Makefile.in b/Makefile.in +index 2264c17..7782d62 100644 +--- a/Makefile.in ++++ b/Makefile.in +@@ -474,7 +474,7 @@ libgcab_1_0_la_CPPFLAGS = \ + libgcab_1_0_la_LIBADD = -lz $(GLIB_LIBS) + libgcab_1_0_la_LDFLAGS = \ + -version-info 0:0:0 \ +- -Wl,--version-script=${srcdir}/libgcab.syms \ ++ -Wl \ + -no-undefined \ + $(NULL) + |
