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 | |
| parent | caf2d9997257119ccd2319f3bd877bffb1b9a6e4 (diff) | |
| download | homebrew-3f8c2a8a4a6f7eae3198b0f61534493c2db90943.tar.bz2 | |
Playdar formula
Fix git download strategy
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/playdar.rb | 36 | ||||
| -rw-r--r-- | Library/Homebrew/download_strategy.rb | 2 |
2 files changed, 37 insertions, 1 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 diff --git a/Library/Homebrew/download_strategy.rb b/Library/Homebrew/download_strategy.rb index 14c22468c..5453645a2 100644 --- a/Library/Homebrew/download_strategy.rb +++ b/Library/Homebrew/download_strategy.rb @@ -103,7 +103,7 @@ class GitDownloadStrategy <AbstractDownloadStrategy dst=Dir.getwd Dir.chdir @clone do # http://stackoverflow.com/questions/160608/how-to-do-a-git-export-like-svn-export - safe_system 'git', 'checkout-index', '-af', "--prefix=#{dst}" + safe_system 'git', 'checkout-index', '-af', "--prefix=#{dst}/" end end end |
