aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/hoedown.rb
blob: 841adcfd6022c9d3fd52a1af5432c1b63b57921a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
require 'formula'

class Hoedown < Formula
  homepage 'https://github.com/hoedown/hoedown'
  url 'https://github.com/hoedown/hoedown/archive/2.0.0.tar.gz'
  sha1 '51cd3f80b4798fb305b66bbfce4cfa7da9f1b775'

  def install
    system 'make', 'hoedown'
    bin.install 'hoedown'
    prefix.install 'test'
  end

  test do
    system 'perl', "#{prefix}/test/MarkdownTest_1.0.3/MarkdownTest.pl",
                   "--script=#{bin}/hoedown",
                   "--testdir=#{prefix}/test/MarkdownTest_1.0.3/Tests",
                   '--tidy'
  end
end