aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJiayong Ou2010-01-14 13:54:42 +0100
committerAdam Vandenberg2010-02-01 12:28:54 -0800
commitcbe9815a29ccafb34f98e19453d4fd71d4c0e295 (patch)
tree9b7fd4baf01e240d760635524580aef49c2662d7 /Library
parent1def79dc29c0622b9a331f6d7d6573defafdc388 (diff)
downloadhomebrew-cbe9815a29ccafb34f98e19453d4fd71d4c0e295.tar.bz2
New Formula: unyaffs
Unyaffs is a program to extract files from a yaffs file system image. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/unyaffs.rb14
1 files changed, 14 insertions, 0 deletions
diff --git a/Library/Formula/unyaffs.rb b/Library/Formula/unyaffs.rb
new file mode 100644
index 000000000..4c2918688
--- /dev/null
+++ b/Library/Formula/unyaffs.rb
@@ -0,0 +1,14 @@
+require 'formula'
+
+class Unyaffs <Formula
+ head 'http://unyaffs.googlecode.com/svn/trunk/'
+ homepage 'http://code.google.com/p/unyaffs/'
+
+ def install
+ cc_args = ENV['CFLAGS'].split(' ')
+ (cc_args << ['-o', 'unyaffs', 'unyaffs.c']).flatten!
+ system ENV.cc, *cc_args
+
+ bin.install 'unyaffs'
+ end
+end