2012-09-03 06:06:05 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Mp3fs < Formula
|
2013-04-07 02:34:41 +00:00
|
|
|
homepage 'http://khenriks.github.io/mp3fs/'
|
2012-09-03 06:06:05 +00:00
|
|
|
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
|
|
|
|
|
2013-03-26 16:00:57 +00:00
|
|
|
test do
|
|
|
|
require 'open3'
|
|
|
|
Open3.popen3("#{bin}/mp3fs", "-V") do |_, stdout, _|
|
2013-06-09 02:26:23 +00:00
|
|
|
assert_match /MP3FS version #{Regexp.escape(version)}/, stdout.read
|
2013-03-26 16:00:57 +00:00
|
|
|
end
|
2012-09-03 06:06:05 +00:00
|
|
|
end
|
|
|
|
end
|