diff options
| author | Adam Vandenberg | 2013-08-06 20:33:30 -0700 | 
|---|---|---|
| committer | Adam Vandenberg | 2013-09-11 22:05:34 -0700 | 
| commit | 04988a00b54bdb64d6679636aa8ca452db6f620b (patch) | |
| tree | 6b2e21e0caece3830d9b569119cc9e8981d2b9fb | |
| parent | 1ccca9f97fa19e08faffe2fef8eb5b4aa0851e2e (diff) | |
| download | homebrew-04988a00b54bdb64d6679636aa8ca452db6f620b.tar.bz2 | |
shocco: use resource
| -rw-r--r-- | Library/Formula/shocco.rb | 18 | 
1 files changed, 7 insertions, 11 deletions
diff --git a/Library/Formula/shocco.rb b/Library/Formula/shocco.rb index 139d6b566..af3a17f23 100644 --- a/Library/Formula/shocco.rb +++ b/Library/Formula/shocco.rb @@ -1,17 +1,8 @@  require 'formula' -# Include a private copy of this Python app -# so we don't have to worry about clashing dependencies. -class Pygments < Formula -  homepage 'http://pygments.org/' -  url 'http://pypi.python.org/packages/source/P/Pygments/Pygments-1.5.tar.gz' -  sha1 '4fbd937fd5cebc79fa4b26d4cce0868c4eec5ec5' -end -  class MarkdownProvider < Requirement    fatal true    default_formula 'markdown' -    satisfy { which 'markdown' }  end @@ -23,14 +14,19 @@ class Shocco < Formula    depends_on MarkdownProvider    depends_on :python +  # Include a private copy of this Python library +  resource 'pygments' do +    url 'http://pypi.python.org/packages/source/P/Pygments/Pygments-1.5.tar.gz' +    sha1 '4fbd937fd5cebc79fa4b26d4cce0868c4eec5ec5' +  end +    def patches      DATA    end    def install -    Pygments.new.brew { libexec.install 'pygmentize','pygments' } +    resource('pygments').stage { libexec.install 'pygmentize','pygments' } -    # Brew along with Pygments      system "./configure",        "PYGMENTIZE=#{libexec}/pygmentize",        "MARKDOWN=#{HOMEBREW_PREFIX}/bin/markdown",  | 
