diff options
| author | Bob Fanger | 2010-02-20 10:44:24 +0100 |
|---|---|---|
| committer | Adam Vandenberg | 2010-02-24 22:06:35 -0800 |
| commit | dda9fbee091afeca3c0e8dceb02bf6792785c89e (patch) | |
| tree | e139945825320ca3fa83baf3f9eff416a8beff2a /Library | |
| parent | 26f8e163244d5d1c12687253bb26b74f3847050e (diff) | |
| download | homebrew-dda9fbee091afeca3c0e8dceb02bf6792785c89e.tar.bz2 | |
Updated unrar to 3.9.9 and changed to a Makefile
The installation failed with the custom "generated" cpp file.
So i changed the formula to use the supplied Makefile.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/unrar.rb | 68 |
1 files changed, 7 insertions, 61 deletions
diff --git a/Library/Formula/unrar.rb b/Library/Formula/unrar.rb index 9232fd750..93ca458ed 100644 --- a/Library/Formula/unrar.rb +++ b/Library/Formula/unrar.rb @@ -1,69 +1,15 @@ require 'formula' -ALL_CPP=<<-EOS -#include "errhnd.cpp" -ErrorHandler ErrHandler; -#include "rar.cpp" -#include "strlist.cpp" -#include "strfn.cpp" -#include "pathfn.cpp" -#include "savepos.cpp" -#include "smallfn.cpp" -#include "global.cpp" -#include "file.cpp" -#include "filefn.cpp" -#include "filcreat.cpp" -#include "archive.cpp" -#include "arcread.cpp" -#include "unicode.cpp" -#include "system.cpp" -#include "isnt.cpp" -#include "crypt.cpp" -#include "crc.cpp" -#include "rawread.cpp" -#include "encname.cpp" -#include "resource.cpp" -#include "match.cpp" -#include "timefn.cpp" -#include "rdwrfn.cpp" -#include "consio.cpp" -#include "options.cpp" -#include "ulinks.cpp" -#include "rarvm.cpp" -#include "rijndael.cpp" -#include "getbits.cpp" -#undef rol -#include "sha1.cpp" -#include "extinfo.cpp" -#include "extract.cpp" -#include "volume.cpp" -#include "list.cpp" -#include "find.cpp" -#include "unpack.cpp" -#include "cmddata.cpp" -#include "filestr.cpp" -#include "recvol.cpp" -#include "rs.cpp" -#include "scantree.cpp" -EOS - class Unrar <Formula - @url='http://www.rarlab.com/rar/unrarsrc-3.9.4.tar.gz' - @md5='1800a2242911fc118f6a2b084d0c22c1' - @homepage='http://www.rarlab.com' + url 'http://www.rarlab.com/rar/unrarsrc-3.9.9.tar.gz' + md5 '4271fc8710d299341c969666492b305c' + homepage 'http://www.rarlab.com' def install - # No need to do LTO, we're combining all source files manually - ENV.O3 - - # by compiling all in one unit, g++ optimises slightly better - # be warned: this trick doesn't work very often! And I'd only do it for - # very stable source trees as if they change stuff it sucks for you. - File.open('all.cpp', 'w') {|f| f.write ALL_CPP} - system "#{ENV.cxx} #{ENV['CXXFLAGS']} -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE all.cpp -o unrar" + system "make --makefile makefile.unix" bin.install 'unrar' - FileUtils.mv 'license.txt', 'COPYING' - FileUtils.mv 'readme.txt', 'README' + mv 'license.txt', 'COPYING' + mv 'readme.txt', 'README' end -end
\ No newline at end of file +end |
