Add formula for Gtkdatabox #14841

Closed
wants to merge 2 commits into
from
View
23 Library/Formula/gtkdatabox.rb
@@ -0,0 +1,23 @@
+require 'formula'
+
+class Gtkdatabox < Formula
+ homepage 'http://sourceforge.net/projects/gtkdatabox/'
+ url 'http://downloads.sourceforge.net/project/gtkdatabox/gtkdatabox/0.9.1.3/gtkdatabox-0.9.1.3.tar.gz'
+ sha1 '02380eeb755b885856253a1a71dd3e8109c201df'
+
+ depends_on 'pkg-config' => :build
+ depends_on 'gtk+'
+ depends_on :x11
+
+ def install
+ system "./configure", "--disable-dependency-tracking",
+ "--prefix=#{prefix}"
+ # We need to re-enable deprecated features of gtk
+ # in order to build without errors
+ # Will be fixed in the next upstream release
+ inreplace 'gtk/Makefile', '-DGTK_DISABLE_DEPRECATED', ''
+ inreplace 'examples/Makefile', '-DGTK_DISABLE_DEPRECATED', ''
+
+ system "make install"
+ end
+end
View
24 Library/Formula/klavaro.rb
@@ -0,0 +1,24 @@
+require 'formula'
+
+class Klavaro < Formula
+ homepage 'http://klavaro.sourceforge.net/'
+ url 'http://downloads.sourceforge.net/project/klavaro/klavaro-1.9.5.tar.bz2'
+ sha1 'd9d0bf226ee6f622f674fcc8a526528a31385bf6'
+
+ depends_on 'pkg-config' => :build
+ depends_on 'gtk+'
+ depends_on 'intltool'
+ depends_on 'gtkdatabox'
+ depends_on :x11
+
+ def install
+ ENV.append 'LDFLAGS', '-lgmodule-2.0'
+ system "./configure", "--disable-dependency-tracking",
+ "--prefix=#{prefix}"
+ system "make install"
+ end
+
+ def test
+ system "#{bin}/klavaro"
+ end
+end