From 855b0d79e60ebf2f13d560bfc03aec69386962ac Mon Sep 17 00:00:00 2001 From: Damien Pollet Date: Sat, 16 Mar 2013 14:40:12 +0100 Subject: shocco: patch configure to pass markdown path Closes #18516. Signed-off-by: Adam Vandenberg --- Library/Formula/shocco.rb | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) (limited to 'Library/Formula') diff --git a/Library/Formula/shocco.rb b/Library/Formula/shocco.rb index dedfb175e..9b59314cf 100644 --- a/Library/Formula/shocco.rb +++ b/Library/Formula/shocco.rb @@ -32,11 +32,18 @@ class Shocco < Formula depends_on MarkdownProvider + def patches + DATA + end + def install Pygments.new.brew { libexec.install 'pygmentize','pygments' } # Brew along with Pygments - system "./configure", "PYGMENTIZE=#{libexec}/pygmentize", "--prefix=#{prefix}" + system "./configure", + "PYGMENTIZE=#{libexec}/pygmentize", + "MARKDOWN=#{HOMEBREW_PREFIX}/bin/markdown", + "--prefix=#{prefix}" # Shocco's Makefile does not combine the make and make install steps. system "make" @@ -51,3 +58,17 @@ class Shocco < Formula EOS end end + +__END__ +diff --git a/configure b/configure +index 2262477..bf0af62 100755 +--- a/configure ++++ b/configure +@@ -193,7 +193,7 @@ else stdutil xdg-open XDG_OPEN xdg-open + fi + + stdutil ronn RONN ronn +-stdutil markdown MARKDOWN markdown Markdown.pl ++stdutil markdown MARKDOWN markdown Markdown.pl $MARKDOWN + stdutil perl PERL perl + stdutil pygmentize PYGMENTIZE pygmentize $PYGMENTIZE -- cgit v1.2.3