From a4a3991c03f693ce968bd8d82f35ee7ed68f05c7 Mon Sep 17 00:00:00 2001 From: Xavier Lacoste Date: Tue, 5 Nov 2013 08:00:01 +0100 Subject: [PATCH] submarine 0.1.3 (new formula) Closes Homebrew/homebrew#23983. Signed-off-by: Mike McQuaid --- Formula/submarine.rb | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 Formula/submarine.rb diff --git a/Formula/submarine.rb b/Formula/submarine.rb new file mode 100644 index 00000000000..561bfe64e20 --- /dev/null +++ b/Formula/submarine.rb @@ -0,0 +1,37 @@ +require 'formula' + +class Submarine < Formula + homepage 'https://github.com/rastersoft/submarine' + url 'https://github.com/rastersoft/submarine/archive/0.1.3.tar.gz' + sha1 '43882918fecc5f71a705363b4437512dad307bcc' + head 'https://github.com/rastersoft/submarine.git' + + depends_on 'glib' + depends_on 'libgee' + depends_on 'libsoup' + depends_on 'libarchive' + depends_on :autoconf + depends_on :automake + depends_on :libtool + depends_on 'pkg-config' => :build + depends_on 'vala' => :build + + + def install + # Because configure is looking for libgee-0.6 which provided + # pkg-config viled numbered 1.0. + # + # See https://github.com/rastersoft/submarine/pull/1 + inreplace 'configure.ac', 'gee-1.0', 'gee-0.8' + system "./autogen.sh" + system "./configure", "--disable-debug", + "--disable-dependency-tracking", + "--disable-silent-rules", + "--prefix=#{prefix}" + system "make", "install" + end + + test do + system "#{bin}/submarine", "--help" + end +end