diff options
| author | Max Howell | 2009-08-23 19:05:05 +0100 |
|---|---|---|
| committer | Max Howell | 2009-08-24 01:04:54 +0100 |
| commit | 3f8c2a8a4a6f7eae3198b0f61534493c2db90943 (patch) | |
| tree | f01817964c3bcd0b0c2efd65aec492ad2668eaf6 /Library/Formula | |
| parent | caf2d9997257119ccd2319f3bd877bffb1b9a6e4 (diff) | |
| download | homebrew-3f8c2a8a4a6f7eae3198b0f61534493c2db90943.tar.bz2 | |
Playdar formula
Fix git download strategy
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/playdar.rb | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/Library/Formula/playdar.rb b/Library/Formula/playdar.rb new file mode 100644 index 000000000..2f0bcc1b5 --- /dev/null +++ b/Library/Formula/playdar.rb @@ -0,0 +1,36 @@ +require 'brewkit' + +class Playdar <Formula + @homepage='http://www.playdar.org' + @head='git://github.com/RJ/playdar.git' + + def deps + LibraryDep.new 'taglib' + LibraryDep.new 'boost' + BinaryDep.new 'cmake' + end + + def skip_clean? path + # for some reason stripping breaks it + path == bin+'playdar' + end + + def install + # RJ does this with all his projects :P + inreplace 'CMakeLists.txt', 'SET(CMAKE_INSTALL_PREFIX "/usr/local")', '' + + system "cmake . #{std_cmake_parameters}" + system "make install" + + 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 + end +end |
