aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/solfege.rb
diff options
context:
space:
mode:
authornibbles 2bits2012-08-28 00:04:10 -0700
committerAdam Vandenberg2012-08-28 06:38:54 -0700
commit8340d6e679cc58cced29721cbe3445ff5dcd511d (patch)
tree1388d55c6f1c55cd73e336b1bdf9dc6d5650225a /Library/Formula/solfege.rb
parent97302bfef6ece96d25b9f802ff51b8a085c3fca5 (diff)
downloadhomebrew-8340d6e679cc58cced29721cbe3445ff5dcd511d.tar.bz2
New formula: GNU Solfege
GNU Solfege is an ear training program written to help you train intervals, chords, scales and rhythms. Closes #12793 by request Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula/solfege.rb')
-rw-r--r--Library/Formula/solfege.rb33
1 files changed, 33 insertions, 0 deletions
diff --git a/Library/Formula/solfege.rb b/Library/Formula/solfege.rb
new file mode 100644
index 000000000..fdf8ecca2
--- /dev/null
+++ b/Library/Formula/solfege.rb
@@ -0,0 +1,33 @@
+require 'formula'
+
+class Solfege < Formula
+ homepage 'http://www.solfege.org/'
+ url 'http://ftpmirror.gnu.org/solfege/solfege-3.20.6.tar.xz'
+ mirror 'http://ftp.gnu.org/gnu/solfege/solfege-3.20.6.tar.xz'
+ sha1 '0b83f351e90aeb9267f76d8dda0638dc50682226'
+
+ depends_on 'gettext' => :build
+ depends_on 'pygtk' => :recommended
+ depends_on 'qtplay' => :recommended
+ depends_on 'librsvg' => :recommended
+ depends_on 'vorbis-tools' => :recommended
+
+ def install
+ system "./configure", "--prefix=#{prefix}"
+ system 'make install'
+ end
+
+ def caveats
+ <<-EOS.undent
+ After installing Solfege, one of your programs, gdk-pixbuf, needs to be
+ told to update its loader cache so it can read svg files. Run this once:
+
+ export GDK_PIXBUF_MODULEDIR=#{HOMEBREW_PREFIX}/lib/gdk-pixbuf-2.0/2.10.0/loaders
+ gdk-pixbuf-query-loaders --update-cache
+
+ After doing that, you will be able to run solfege normally. You can go
+ into Solfege Preferences and set your external programs to qtplay and
+ ogg123 which get installed as dependencies, or you can use your own apps.
+ EOS
+ end
+end