From 335ae52cd2e970301a6e06ba5d8dddf67252dd3c Mon Sep 17 00:00:00 2001 From: Katherine Whitlock Date: Fri, 27 Sep 2013 21:03:08 +0100 Subject: moc: 2.5.0-beta1 (new formula) This is the formula for Music on Console (MOC). Closes #22044. Signed-off-by: Mike McQuaid --- Library/Formula/moc.rb | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 Library/Formula/moc.rb (limited to 'Library') diff --git a/Library/Formula/moc.rb b/Library/Formula/moc.rb new file mode 100644 index 000000000..b95d7cb73 --- /dev/null +++ b/Library/Formula/moc.rb @@ -0,0 +1,50 @@ +require 'formula' + +class Moc < Formula + homepage 'http://moc.daper.net' + url 'http://ftp.daper.net/pub/soft/moc/unstable/moc-2.5.0-beta1.tar.bz2' + sha1 '4030a1fa5c7cfef06909c54d8c7a1fbb93f23caa' + head 'svn://daper.net/moc/trunk' + + option 'with-ncurses', 'Build with wide character support.' + + depends_on 'pkg-config' => :build + depends_on 'gettext' => :build + depends_on 'autoconf' => :build + depends_on 'automake' => :build + depends_on 'libtool' => :build + depends_on 'berkeley-db' + depends_on 'jack' + depends_on 'ffmpeg' => :recommended + depends_on 'mad' => :optional + depends_on 'flac' => :optional + depends_on 'speex' => :optional + depends_on 'musepack' => :optional + depends_on 'libsndfile' => :optional + depends_on 'wavpack' => :optional + depends_on 'faad2' => :optional + depends_on 'timidity' => :optional + depends_on 'libmagic' => :optional + # TODO: make this :optional when it works for tap dependencies. + depends_on 'homebrew/dupes/ncurses' if build.with? 'ncurses' + + def patches + # Patches up to r2544 (HEAD at 2013-08-13) + { :p0 => 'https://gist.github.com/toroidal-code/6310844/raw/23c460144b64040eb6c3117693fd7e129a462b26/ffmpeg-patch.diff' } + end unless build.head? + + def install + system "autoreconf", "-i" # required to fix ffmpeg issues (updated ffmpeg.m4) + system "./configure", "--disable-debug", "--prefix=#{prefix}" + system "make", "install" + end + + def caveats + <<-EOS.undent + You must start the jack daemon prior to running mocp. + If you need wide-character support in the player, for example + with Chinese characters, you can install using + --with-ncurses + EOS + end +end -- cgit v1.2.3