aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorAaron Peschel2012-12-21 14:41:03 -0800
committerMisty De Meo2012-12-24 19:42:54 -0400
commite2fe41bd6b0f7df3d39db9f904f00980b09e5a02 (patch)
treeb4e73606226e5777a9a7cf6564c1e706a2644f75 /Library/Formula
parent7d93e75263bc1b83de2f188bc6aec8225f08347b (diff)
downloadhomebrew-e2fe41bd6b0f7df3d39db9f904f00980b09e5a02.tar.bz2
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 <mistydemeo@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/shocco.rb19
1 files changed, 9 insertions, 10 deletions
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