2014-05-20 16:59:42 +00:00
|
|
|
require "formula"
|
2012-09-03 06:06:05 +00:00
|
|
|
|
|
|
|
class Mp3fs < Formula
|
2014-05-20 16:59:42 +00:00
|
|
|
homepage "http://khenriks.github.io/mp3fs/"
|
|
|
|
url "https://github.com/khenriks/mp3fs/releases/download/v0.91/mp3fs-0.91.tar.gz"
|
|
|
|
sha1 "a9e65b8453f4444ec6faba045120e7efb18da20e"
|
2012-09-03 06:06:05 +00:00
|
|
|
|
2014-05-20 16:59:42 +00:00
|
|
|
depends_on "pkg-config" => :build
|
|
|
|
depends_on "lame"
|
|
|
|
depends_on "osxfuse"
|
|
|
|
depends_on "libid3tag"
|
|
|
|
depends_on "flac"
|
2012-09-03 06:06:05 +00:00
|
|
|
|
|
|
|
def install
|
2014-05-20 16:59:42 +00:00
|
|
|
system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}"
|
|
|
|
system "make", "install"
|
2012-09-03 06:06:05 +00:00
|
|
|
end
|
|
|
|
|
2013-03-26 16:00:57 +00:00
|
|
|
test do
|
2014-05-04 19:12:41 +00:00
|
|
|
assert_match /mp3fs version: #{Regexp.escape(version)}/,
|
|
|
|
shell_output("#{bin}/mp3fs -V")
|
2012-09-03 06:06:05 +00:00
|
|
|
end
|
|
|
|
end
|