2013-03-17 00:34:44 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class BpmTools < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Detect tempo of audio files using beats-per-minute (BPM)"
|
2013-03-17 00:34:44 +00:00
|
|
|
homepage 'http://www.pogo.org.uk/~mark/bpm-tools/'
|
2013-05-28 05:32:27 +00:00
|
|
|
head 'http://www.pogo.org.uk/~mark/bpm-tools.git'
|
2013-11-28 20:02:52 +00:00
|
|
|
url 'http://www.pogo.org.uk/~mark/bpm-tools/releases/bpm-tools-0.3.tar.gz'
|
|
|
|
sha1 '33da8c03757c91834bb0a695d7ee0f3e8faede65'
|
2013-03-17 00:34:44 +00:00
|
|
|
|
|
|
|
option 'with-bpm-graph', 'Install plot generation script'
|
|
|
|
option 'with-bpm-tag', 'Install audio file tagging script'
|
|
|
|
|
|
|
|
depends_on 'gnuplot' if build.with? 'bpm-graph'
|
2014-11-14 20:35:07 +00:00
|
|
|
|
|
|
|
if build.with? "bpm-tag"
|
|
|
|
depends_on 'sox'
|
|
|
|
depends_on 'id3v2'
|
|
|
|
depends_on 'flac'
|
|
|
|
depends_on 'vorbis-tools'
|
|
|
|
end
|
2013-03-17 00:34:44 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
system "make"
|
|
|
|
bin.install 'bpm'
|
|
|
|
bin.install 'bpm-graph' if build.with? 'bpm-graph'
|
|
|
|
bin.install 'bpm-tag' if build.with? 'bpm-tag'
|
|
|
|
end
|
|
|
|
end
|