7bd947eb0b
* Use new "url" features * Use keg_only DSL * Use "skip_clean :all" DSL * Whitespace and style cleanups * Make bash invocations less silly * Use new man2-man8 helpers * Remove "FileUtils." since it is included in Formula * Use real names for deps instead of aliases * ENV.x11 now updates path, so remove that from individual brews
26 lines
717 B
Ruby
26 lines
717 B
Ruby
require 'formula'
|
|
|
|
class Playdar <Formula
|
|
homepage 'http://www.playdar.org'
|
|
head 'git://github.com/RJ/playdar-core.git'
|
|
|
|
depends_on 'taglib'
|
|
depends_on 'erlang'
|
|
|
|
def install
|
|
system "make all"
|
|
system "make scanner"
|
|
|
|
Dir['playdar_modules/*/src'].each{ |fn| rm_rf fn }
|
|
rm_rf 'playdar_modules/library/priv/taglib_driver/scanner_visual_studio_sln'
|
|
File.unlink 'playdar_modules/library/priv/taglib_driver/taglib_json_reader.cpp'
|
|
|
|
# otherwise playdar crashes
|
|
prefix.install ['ebin', 'playdar_modules', 'priv', 'etc']
|
|
|
|
inreplace 'playdarctl', 'cd `dirname $0`', "cd #{prefix}"
|
|
inreplace 'playdarctl', 'EBIN=./ebin/', "EBIN=#{prefix}/ebin"
|
|
|
|
bin.install 'playdarctl'
|
|
end
|
|
end
|