aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAdam Vandenberg2014-05-17 11:53:19 -0700
committerAdam Vandenberg2014-05-17 11:53:19 -0700
commitb135a4654d9bcd06be14c751105a4d5a46645286 (patch)
treec24467de7be7645bdf87b5d4e20a9a44f132d672 /Library
parentbe13dc2e14c51347be041fb7a74a59f64726d745 (diff)
downloadhomebrew-b135a4654d9bcd06be14c751105a4d5a46645286.tar.bz2
shocco: modernize
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/shocco.rb25
1 files changed, 12 insertions, 13 deletions
diff --git a/Library/Formula/shocco.rb b/Library/Formula/shocco.rb
index 6cf47609e..07ecc88d1 100644
--- a/Library/Formula/shocco.rb
+++ b/Library/Formula/shocco.rb
@@ -1,37 +1,36 @@
-require 'formula'
+require "formula"
class MarkdownProvider < Requirement
fatal true
- default_formula 'markdown'
- satisfy { which 'markdown' }
+ default_formula "markdown"
+ satisfy { which "markdown" }
end
class Shocco < Formula
- homepage 'http://rtomayko.github.io/shocco/'
- url 'https://github.com/rtomayko/shocco/archive/1.0.tar.gz'
- sha1 'e29d58fb8109040b4fb4a816f330bb1c67064f6d'
+ homepage "http://rtomayko.github.io/shocco/"
+ url "https://github.com/rtomayko/shocco/archive/1.0.tar.gz"
+ sha1 "e29d58fb8109040b4fb4a816f330bb1c67064f6d"
depends_on MarkdownProvider
- # 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'
+ resource "pygments" do
+ url "http://pypi.python.org/packages/source/P/Pygments/Pygments-1.5.tar.gz"
+ sha1 "4fbd937fd5cebc79fa4b26d4cce0868c4eec5ec5"
end
+ # Upstream, but not in a release
patch :DATA
def install
- libexec.install resource('pygments').files('pygmentize', 'pygments')
+ libexec.install resource("pygments").files("pygmentize", "pygments")
system "./configure",
"PYGMENTIZE=#{libexec}/pygmentize",
"MARKDOWN=#{HOMEBREW_PREFIX}/bin/markdown",
"--prefix=#{prefix}"
- # Shocco's Makefile does not combine the make and make install steps.
system "make"
- system "make install"
+ system "make", "install"
end
def caveats