aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorAdam Vandenberg2013-08-06 21:17:13 -0700
committerAdam Vandenberg2013-09-11 22:05:30 -0700
commit061badbeebf63ecf603cbf1f8a6dd272760f569f (patch)
tree931f06255346e0f0de2f560b4e8c9ee3e1a0b107 /Library/Formula
parent58086c9be5a067606a8033efbdcf53521f063dd7 (diff)
downloadhomebrew-061badbeebf63ecf603cbf1f8a6dd272760f569f.tar.bz2
libquvi: use resource
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/libquvi.rb13
1 files changed, 6 insertions, 7 deletions
diff --git a/Library/Formula/libquvi.rb b/Library/Formula/libquvi.rb
index 3540403f5..8199aca56 100644
--- a/Library/Formula/libquvi.rb
+++ b/Library/Formula/libquvi.rb
@@ -1,11 +1,5 @@
require 'formula'
-class LibquviScripts < Formula
- homepage 'http://quvi.sourceforge.net/'
- url 'http://downloads.sourceforge.net/project/quvi/0.4/libquvi-scripts/libquvi-scripts-0.4.14.tar.xz'
- sha1 'fe721c8d882c5c4a826f1339c79179c56bb0fe41'
-end
-
class Libquvi < Formula
homepage 'http://quvi.sourceforge.net/'
url 'http://downloads.sourceforge.net/project/quvi/0.4/libquvi/libquvi-0.4.1.tar.bz2'
@@ -15,9 +9,14 @@ class Libquvi < Formula
depends_on 'pkg-config' => :build
depends_on 'lua'
+ resource 'scripts' do
+ url 'http://downloads.sourceforge.net/project/quvi/0.4/libquvi-scripts/libquvi-scripts-0.4.14.tar.xz'
+ sha1 'fe721c8d882c5c4a826f1339c79179c56bb0fe41'
+ end
+
def install
scripts = prefix/'libquvi-scripts'
- LibquviScripts.new.brew do
+ resource('scripts').stage do
system "./configure", "--prefix=#{scripts}", "--with-nsfw"
system "make install"
end