homebrew-core/Formula/p7zip.rb
Max Howell 61b2307139 s/require 'brewkit'/require 'formula'/g
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.
2009-10-15 16:48:03 +01:00

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