aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/mdp.rb
blob: c2c71cdaf37c05246290af4b709a00add09a6ab4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
require "formula"

class Mdp < Formula
  homepage "https://github.com/visit1985/mdp"
  url "https://github.com/visit1985/mdp/archive/0.91.3.tar.gz"
  sha1 "e8a0264068c21df1f00e391ec22e674141fddcc1"

  bottle do
    cellar :any
    sha1 "cc6da77fce8cc33d8e563d8069b07eb7de147601" => :mavericks
    sha1 "ea647ad8b94575a91125c0b967c02ab8cdf141b2" => :mountain_lion
    sha1 "7394b1dc8b9aa4e96debb0af0e75dca8828d119c" => :lion
  end

  def install
    system "make"
    system "make", "install", "DESTDIR=#{bin}"
    share.install "sample.md"
  end

  test do
    # Go through two slides and quit.
    ENV["TERM"] = "xterm"
    system "echo jjq | #{bin}/mdp #{share}/sample.md"
  end
end