61b2307139
brewkit.rb changes ENV destructively, so lets not do that everytime a formula is required. Now it's possible for other tools to require a formula description without worrying about side-effects.
16 lines
No EOL
460 B
Ruby
16 lines
No EOL
460 B
Ruby
require 'formula'
|
|
|
|
class P7zip <Formula
|
|
@url='http://kent.dl.sourceforge.net/sourceforge/p7zip/p7zip_9.04_src_all.tar.bz2'
|
|
@homepage='http://p7zip.sourceforge.net/'
|
|
@md5='9194ebf9a2b3735d236aed001de5f6f8'
|
|
|
|
def install
|
|
FileUtils.mv 'makefile.macosx_32bits', 'makefile.machine'
|
|
FileUtils.mv 'DOCS/copying.txt', 'COPYING'
|
|
system "make"
|
|
# we do our own install because theirs sucks
|
|
bin.install 'bin/7za'
|
|
man.install 'man1'
|
|
end
|
|
end |