2010-04-28 01:43:16 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
# Include a private copy of this Python app
|
|
|
|
# so we don't have to worry about clashing dependencies.
|
2011-03-10 05:11:03 +00:00
|
|
|
class Pygments < Formula
|
2010-04-28 01:43:16 +00:00
|
|
|
url 'http://pypi.python.org/packages/source/P/Pygments/Pygments-1.3.1.tar.gz'
|
|
|
|
homepage 'http://pygments.org/'
|
|
|
|
md5 '54be67c04834f13d7e255e1797d629a5'
|
|
|
|
end
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Shocco < Formula
|
2011-05-27 05:02:55 +00:00
|
|
|
head 'https://github.com/rtomayko/shocco.git',
|
2010-05-06 14:12:02 +00:00
|
|
|
:commit => '06ab9ecebd713a1a6ae695b190a775ca6dfeb7b2'
|
2010-04-28 01:43:16 +00:00
|
|
|
homepage 'http://rtomayko.github.com/shocco/'
|
|
|
|
|
|
|
|
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"
|
|
|
|
|
|
|
|
# Link the script into bin
|
|
|
|
bin.mkpath
|
|
|
|
ln_s libexec+"shocco", bin
|
|
|
|
end
|
|
|
|
|
|
|
|
def caveats
|
|
|
|
<<-EOS.undent
|
|
|
|
You may also want to install browser:
|
|
|
|
brew install browser
|
|
|
|
shocco `which shocco` | browser
|
|
|
|
EOS
|
|
|
|
end
|
|
|
|
end
|