From bd32cbcbdec97f193c9a8093d3482737065c1284 Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Sat, 8 Jun 2013 17:28:37 -0700 Subject: makensis: use resources --- Library/Formula/makensis.rb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'Library') diff --git a/Library/Formula/makensis.rb b/Library/Formula/makensis.rb index 7bd555f13..183801aa4 100644 --- a/Library/Formula/makensis.rb +++ b/Library/Formula/makensis.rb @@ -1,10 +1,5 @@ require 'formula' -class NsisSupport < Formula - url 'http://downloads.sourceforge.net/project/nsis/NSIS%202/2.46/nsis-2.46.zip' - sha1 'adeff823a1f8af3c19783700a6b8d9054cf0f3c2' -end - class Makensis < Formula homepage 'http://nsis.sourceforge.net/' url 'http://downloads.sourceforge.net/project/nsis/NSIS%202/2.46/nsis-2.46-src.tar.bz2' @@ -12,9 +7,14 @@ class Makensis < Formula depends_on 'scons' => :build + resource 'nsis' do + url 'http://downloads.sourceforge.net/project/nsis/NSIS%202/2.46/nsis-2.46.zip' + sha1 'adeff823a1f8af3c19783700a6b8d9054cf0f3c2' + end + def install system "scons makensis" bin.install "build/release/makensis/makensis" - NsisSupport.new.brew { (share+"nsis").install Dir['*'] } + (share/'nsis').install resource('nsis') end end -- cgit v1.2.3