aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorMax Howell2009-11-04 16:34:41 +0000
committerMax Howell2009-11-08 22:00:03 +0000
commit4f59106c6c2ed6cb70d8c23ff022ee3a6c0c61d9 (patch)
tree4d97321d73203ac82e364786b2419380dd578b4f /Library/Formula
parentea58b93befbd7e7d9f9299bdf4a518f490f19dc2 (diff)
downloadhomebrew-4f59106c6c2ed6cb70d8c23ff022ee3a6c0c61d9.tar.bz2
Update playdar to erlang build
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/playdar.rb40
1 files changed, 17 insertions, 23 deletions
diff --git a/Library/Formula/playdar.rb b/Library/Formula/playdar.rb
index 414f88e72..47af097bc 100644
--- a/Library/Formula/playdar.rb
+++ b/Library/Formula/playdar.rb
@@ -1,34 +1,28 @@
require 'formula'
class Playdar <Formula
- @homepage='http://www.playdar.org'
- @head='git://github.com/mxcl/playdar.git'
+ homepage 'http://www.playdar.org'
+ head 'git://github.com/RJ/playdar-core.git'
depends_on 'taglib'
- depends_on 'boost'
- depends_on 'cmake'
-
- def skip_clean? path
- # for some reason stripping breaks it
- path == bin+'playdar'
- end
+ depends_on 'erlang'
def install
- # RJ does this with all his projects :P
- inreplace 'CMakeLists.txt', 'SET(CMAKE_INSTALL_PREFIX "/usr/local")', ''
+ system "make all"
+ system "make scanner"
+
+ Dir['playdar_modules/*/src'].each{ |fn| FileUtils.rm_rf fn }
+ FileUtils.rm_rf 'playdar_modules/library/priv/taglib_driver/scanner_visual_studio_sln'
+ File.unlink 'playdar_modules/library/priv/taglib_driver/taglib_json_reader.cpp'
- system "cmake . #{std_cmake_parameters}"
- system "make install"
+ prefix.install 'ebin'
+ prefix.install 'playdar_modules'
+ prefix.install 'priv'
+ prefix.install 'etc' # otherwise playdar crashes
- prefix.install 'www'
- prefix.install 'plugins'
- (prefix+'plugins'+'.gitignore').unlink
- end
-
- def caveats
- <<-EOS
-You have to execute playdar with its prefix as working directory, eg:
- $ cd #{prefix} && bin/playdar
- EOS
+ inreplace 'playdarctl', 'cd `dirname $0`', "cd #{prefix}"
+ inreplace 'playdarctl', 'EBIN=./ebin/', "EBIN=#{prefix}/ebin"
+
+ bin.install 'playdarctl'
end
end