aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/vera++.rb
diff options
context:
space:
mode:
authorAdam Vandenberg2013-08-06 21:35:29 -0700
committerAdam Vandenberg2013-09-11 22:05:36 -0700
commit12401137408d652a874d65597e6c336c3bfbfdd0 (patch)
tree08851a9adfe224d150c3bac08150b3926b11f79e /Library/Formula/vera++.rb
parent9c03f3e7b259bc2ff52294dca2226ac0c51e8bbf (diff)
downloadhomebrew-12401137408d652a874d65597e6c336c3bfbfdd0.tar.bz2
vera++: use resource
Diffstat (limited to 'Library/Formula/vera++.rb')
-rw-r--r--Library/Formula/vera++.rb14
1 files changed, 7 insertions, 7 deletions
diff --git a/Library/Formula/vera++.rb b/Library/Formula/vera++.rb
index 2ccd535b7..4706c9ca0 100644
--- a/Library/Formula/vera++.rb
+++ b/Library/Formula/vera++.rb
@@ -1,11 +1,5 @@
require 'formula'
-# Use prebuilt docs to avoid need for pandoc
-class VeraMan < Formula
- url 'https://bitbucket.org/verateam/vera/downloads/vera++-1.2.1-doc.tar.gz'
- sha1 'fce30676c815b99aa66d25c9dfbd2eda2c74bd7a'
-end
-
class Veraxx < Formula
homepage 'https://bitbucket.org/verateam/vera'
url 'https://bitbucket.org/verateam/vera/downloads/vera++-1.2.1.tar.gz'
@@ -14,11 +8,17 @@ class Veraxx < Formula
depends_on 'cmake' => :build
depends_on 'boost'
+ # Use prebuilt docs to avoid need for pandoc
+ resource 'doc' do
+ url 'https://bitbucket.org/verateam/vera/downloads/vera++-1.2.1-doc.tar.gz'
+ sha1 'fce30676c815b99aa66d25c9dfbd2eda2c74bd7a'
+ end
+
def install
system "cmake", ".", *std_cmake_args
system "make install"
- VeraMan.new.brew do
+ resource('doc').stage do
man1.install 'vera++.1'
doc.install 'vera++.html'
end