aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorMax Howell2009-08-23 19:05:05 +0100
committerMax Howell2009-08-24 01:04:54 +0100
commit3f8c2a8a4a6f7eae3198b0f61534493c2db90943 (patch)
treef01817964c3bcd0b0c2efd65aec492ad2668eaf6 /Library/Formula
parentcaf2d9997257119ccd2319f3bd877bffb1b9a6e4 (diff)
downloadhomebrew-3f8c2a8a4a6f7eae3198b0f61534493c2db90943.tar.bz2
Playdar formula
Fix git download strategy
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/playdar.rb36
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