aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/mp3fs.rb
blob: b1f2aaebd4291cc1f5a1f93d8201c1da11110ef1 (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
require 'formula'

class Mp3fs < Formula
  homepage 'http://khenriks.github.io/mp3fs/'
  url 'https://github.com/downloads/khenriks/mp3fs/mp3fs-0.32.tar.gz'
  sha1 'e6aef12f753721c87bdecfb4dca7e3721a808828'

  depends_on 'pkg-config' => :build
  depends_on 'lame'
  depends_on 'fuse4x'
  depends_on 'libid3tag'
  depends_on 'flac'

  def install
    system "./configure", "--disable-dependency-tracking",
                          "--prefix=#{prefix}"
    system "make install"
  end

  test do
    require 'open3'
    Open3.popen3("#{bin}/mp3fs", "-V") do |_, stdout, _|
      assert_match /MP3FS version #{Regexp.escape(version)}/, stdout.read
    end
  end
end