From 4ebc9b465225387eff1ab85527a418f84fde6ef4 Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Tue, 27 Apr 2010 18:43:16 -0700 Subject: Formula for a standalone build of shocco --- Library/Formula/shocco.rb | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 Library/Formula/shocco.rb (limited to 'Library') diff --git a/Library/Formula/shocco.rb b/Library/Formula/shocco.rb new file mode 100644 index 000000000..109751504 --- /dev/null +++ b/Library/Formula/shocco.rb @@ -0,0 +1,38 @@ +require 'formula' + +# Include a private copy of this Python app +# so we don't have to worry about clashing dependencies. +class Pygments 'homebrew' + 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 -- cgit v1.2.3