aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/dvd+rw-tools.rb
diff options
context:
space:
mode:
authorKenneth Vestergaard Schmidt2010-06-16 17:12:36 +0200
committerAdam Vandenberg2010-06-17 10:31:44 -0700
commitbaf9e2a2d311e66799e91447ffda0f925ccc638e (patch)
tree600d49e0c0433d881eb1b037e5a1fa2353d8d8cc /Library/Formula/dvd+rw-tools.rb
parent694b6f7dc3355df0f06148374e6ffe202158ed64 (diff)
downloadhomebrew-baf9e2a2d311e66799e91447ffda0f925ccc638e.tar.bz2
new formula for dvd+rw-tools
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula/dvd+rw-tools.rb')
-rw-r--r--Library/Formula/dvd+rw-tools.rb35
1 files changed, 35 insertions, 0 deletions
diff --git a/Library/Formula/dvd+rw-tools.rb b/Library/Formula/dvd+rw-tools.rb
new file mode 100644
index 000000000..6df3df628
--- /dev/null
+++ b/Library/Formula/dvd+rw-tools.rb
@@ -0,0 +1,35 @@
+require 'formula'
+
+class DvdxrwTools <Formula
+ url 'http://fy.chalmers.se/~appro/linux/DVD+RW/tools/dvd+rw-tools-7.1.tar.gz'
+ homepage 'http://fy.chalmers.se/~appro/linux/DVD+RW/'
+ md5 '8acb3c885c87f6838704a0025e435871'
+
+ def patches
+ # Respect $PREFIX
+ DATA
+ end
+
+ def install
+ bin.mkdir
+ man1.mkpath
+ system "make PREFIX=#{prefix} install"
+ end
+end
+
+__END__
+diff --git a/Makefile.m4 b/Makefile.m4
+index a6a100b..bf7c041 100644
+--- a/Makefile.m4
++++ b/Makefile.m4
+@@ -30,8 +30,8 @@ LINK.o =$(LINK.cc)
+ # to install set-root-uid, `make BIN_MODE=04755 install'...
+ BIN_MODE?=0755
+ install: dvd+rw-tools
+- install -o root -m $(BIN_MODE) $(CHAIN) /usr/bin
+- install -o root -m 0644 growisofs.1 /usr/share/man/man1
++ install -m $(BIN_MODE) $(CHAIN) $(PREFIX)/bin
++ install -m 0644 growisofs.1 $(PREFIX)/share/man/man1
+ ])
+
+ ifelse(OS,MINGW32,[