New Formula: unyaffs

Unyaffs is a program to extract files from a yaffs file system image.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
master
Jiayong Ou 2010-01-14 13:54:42 +01:00 committed by Adam Vandenberg
parent e52340dd4f
commit 0012735c22
1 changed files with 14 additions and 0 deletions

14
Formula/unyaffs.rb Normal file
View File

@ -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