aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/solfege.rb
blob: 9f6e4b109264acb07331069ccfc7038b249d6e9e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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 'xz' => :build
  depends_on 'pkg-config' => :build
  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