From e2fe41bd6b0f7df3d39db9f904f00980b09e5a02 Mon Sep 17 00:00:00 2001 From: Aaron Peschel Date: Fri, 21 Dec 2012 14:41:03 -0800 Subject: shocco: use stable commit, fix install Fixes three issues with this formula: 1) Install is not working 2) Not installing from a tarball 3) Non-standard install process The following is a list of changes: * Point to shocco tarball instead of git repo. * Point to latest version of shocco * Point to latest version of Pygments * Add sha1 for Pygments * Fix install to follow standard Homebrew process. Closes #16700. Signed-off-by: Misty De Meo --- Library/Formula/shocco.rb | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) (limited to 'Library/Formula') diff --git a/Library/Formula/shocco.rb b/Library/Formula/shocco.rb index b69606cc8..61b6a2978 100644 --- a/Library/Formula/shocco.rb +++ b/Library/Formula/shocco.rb @@ -3,28 +3,27 @@ require 'formula' # Include a private copy of this Python app # so we don't have to worry about clashing dependencies. class Pygments < Formula - url 'http://pypi.python.org/packages/source/P/Pygments/Pygments-1.3.1.tar.gz' homepage 'http://pygments.org/' - sha1 '' + url 'http://pypi.python.org/packages/source/P/Pygments/Pygments-1.5.tar.gz' + sha1 '4fbd937fd5cebc79fa4b26d4cce0868c4eec5ec5' end class Shocco < Formula homepage 'http://rtomayko.github.com/shocco/' - head 'https://github.com/rtomayko/shocco.git', - :commit => '06ab9ecebd713a1a6ae695b190a775ca6dfeb7b2' + url 'https://github.com/rtomayko/shocco/tarball/a1ee000613946335f54a8f236ee9fe6f7f22bcb8' + sha1 '8feb66dad3c957fabdfa368e710dfb2a078a732f' depends_on 'markdown' def install Pygments.new.brew { libexec.install 'pygmentize','pygments' } - # Brew into libexec, along with Pygments - system "./configure", "PYGMENTIZE=#{libexec}/pygmentize", "--prefix=#{libexec}" - system "make" - libexec.install "shocco" + # Brew along with Pygments + system "./configure", "PYGMENTIZE=#{libexec}/pygmentize", "--prefix=#{prefix}" - # Link the script into bin - bin.install_symlink libexec+"shocco" + # Shocco's Makefile does not combine the make and make install steps. + system "make" + system "make install" end def caveats -- cgit v1.2.3