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/'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 ''
|
2010-04-28 01:43:16 +00:00
|
|
|
end
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Shocco < Formula
|
2012-02-12 19:16:20 +00:00
|
|
|
homepage 'http://rtomayko.github.com/shocco/'
|
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
|
|
|
|
|
|
|
depends_on 'markdown'
|
|
|
|
|
|
|
|
def install
|
2012-02-12 19:16:20 +00:00
|
|
|
Pygments.new.brew { libexec.install 'pygmentize','pygments' }
|
2010-04-28 01:43:16 +00:00
|
|
|
|
|
|
|
# Brew into libexec, along with Pygments
|
|
|
|
system "./configure", "PYGMENTIZE=#{libexec}/pygmentize", "--prefix=#{libexec}"
|
|
|
|
system "make"
|
|
|
|
libexec.install "shocco"
|
|
|
|
|
|
|
|
# Link the script into bin
|
2012-02-12 19:16:20 +00:00
|
|
|
bin.install_symlink libexec+"shocco"
|
2010-04-28 01:43:16 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
def caveats
|
|
|
|
<<-EOS.undent
|
|
|
|
You may also want to install browser:
|
|
|
|
brew install browser
|
|
|
|
shocco `which shocco` | browser
|
|
|
|
EOS
|
|
|
|
end
|
|
|
|
end
|