Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Add formula for Klavaro #14843

Closed
wants to merge 2 commits into from

3 participants

@ckdaas

Klavaro is a gtk-based typing tutor program, which intends to be keyboard and language independent.

GtkDatabox is a prerequisite for building and running Klavaro.

@adamv
Owner

Do either of these use pkg-config to find installed software?

@adamv
Owner
checking pkg-config is at least version 0.9.0... yes
checking for PANGO... yes
checking for CAIRO... yes

Need to sort out these dependencies.

@ckdaas

Both gtkdatabox and klavaro depend on gtk+, which provides cairo and pango.
Isn't this sufficient to address these dependencies ?

@To1ne

Thanks a lot @ckdaas, it works like a charm.

@adamv
Owner

At least pkg-config should be added:

depends_on 'pkg-config' => :build

@ckdaas

Done !

@ckdaas

bump ?

@adamv
Owner

Please squash to a single commit for review

@ckdaas

Here, I've kept one commit per formula. Is it ok ?

@ckdaas

I've removed the useless test in gtkdatabox formula, then squashed, in order to keep one commit. Sorry it erased your comment about ckdaas@6378d8c.

@adamv adamv closed this pull request from a commit
@ckdaas ckdaas klavaro 1.9.5
Closes #14843.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
13e44db
@adamv adamv closed this in 13e44db
@yourabi yourabi referenced this pull request from a commit
@ckdaas ckdaas klavaro 1.9.5
Closes #14843.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
e18f57e
@dholm dholm referenced this pull request from a commit in dholm/homebrew
@ckdaas ckdaas klavaro 1.9.5
Closes #14843.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
d5882a8
@guyzmo guyzmo referenced this pull request from a commit
Commit has since been removed from the repository and is no longer available.
@cooljeanius cooljeanius referenced this pull request from a commit
Commit has since been removed from the repository and is no longer available.
@rajeeja rajeeja referenced this pull request from a commit
@ckdaas ckdaas klavaro 1.9.5
Closes #14843.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
6ffe5d1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Nov 7, 2012
  1. @ckdaas

    gtkdatabox 0.9.1.3

    ckdaas authored
  2. @ckdaas

    klavaro 1.9.5

    ckdaas authored
This page is out of date. Refresh to see the latest.
Showing with 47 additions and 0 deletions.
  1. +23 −0 Library/Formula/gtkdatabox.rb
  2. +24 −0 Library/Formula/klavaro.rb
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
Something went wrong with that request. Please try again.