homebrew-core/Formula/unar.rb

44 lines
1.4 KiB
Ruby
Raw Normal View History

require 'formula'
class Unar < Formula
homepage 'http://unarchiver.c3.cx/commandline'
2013-10-20 22:35:24 +00:00
url 'http://theunarchiver.googlecode.com/files/unar1.8.1_src.zip'
version '1.8.1'
sha1 'fe052cd7042651cccc7ba0e9c4d6d7dba5102fd4'
head 'https://code.google.com/p/theunarchiver/' , :using => :hg
depends_on :xcode
2013-10-20 22:48:48 +00:00
bottle do
cellar :any
2013-11-02 07:17:12 +00:00
revision 1
sha1 '85553d3575d0ce5687b2f0c2df912e5cd46c722c' => :mavericks
sha1 '8f10a296637ce7a9e12d5d04b731c2d7aee80760' => :mountain_lion
sha1 'a85d038c6a19b2d2fa51f4a774e7ebed712dc4c1' => :lion
2013-10-20 22:48:48 +00:00
end
def install
# Build XADMaster.framework, unar and lsar
system "xcodebuild -project ./XADMaster/XADMaster.xcodeproj -target XADMaster SYMROOT=../ -configuration Release"
system "xcodebuild -project ./XADMaster/XADMaster.xcodeproj -target unar SYMROOT=../ -configuration Release"
system "xcodebuild -project ./XADMaster/XADMaster.xcodeproj -target lsar SYMROOT=../ -configuration Release"
bin.install "./Release/unar", "./Release/lsar"
lib.install "./Release/libXADMaster.a"
2013-05-03 16:28:45 +00:00
frameworks.install "./Release/XADMaster.framework"
(include/'libXADMaster').install_symlink Dir["#{frameworks}/XADMaster.framework/Headers/*"]
cd "./Extra" do
man1.install "lsar.1", "unar.1"
bash_completion.install "unar.bash_completion", "lsar.bash_completion"
end
end
def test
system bin/'unar', '--version'
system bin/'lsar', '--version'
end
end