2014-09-27 02:15:46 +00:00
|
|
|
class Mdp < Formula
|
|
|
|
homepage "https://github.com/visit1985/mdp"
|
2015-04-26 06:41:03 +00:00
|
|
|
url "https://github.com/visit1985/mdp/archive/1.0.0.tar.gz"
|
|
|
|
sha1 "24821e0602f3c7f141ce610de2beda8108050584"
|
2015-01-25 21:49:10 +00:00
|
|
|
head "https://github.com/visit1985/mdp.git"
|
2014-09-27 02:15:46 +00:00
|
|
|
|
2014-10-01 00:29:36 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
2015-04-26 09:21:36 +00:00
|
|
|
sha256 "954220348b4a6ce5aa97edfa1eab40aff944bd804226f1d01117bd22ba220b07" => :yosemite
|
|
|
|
sha256 "b4dac048d07a19e5b4955578030e9e68638f28b8d7c26d98492cf1eea152b1f0" => :mavericks
|
|
|
|
sha256 "84f070d0885fef35a596ae523609f38c9d72697a9b7facdbe1d8d2657f509f4e" => :mountain_lion
|
2014-10-01 00:29:36 +00:00
|
|
|
end
|
|
|
|
|
2014-09-27 02:15:46 +00:00
|
|
|
def install
|
|
|
|
system "make"
|
2014-10-31 20:30:41 +00:00
|
|
|
system "make", "install", "PREFIX=#{prefix}"
|
2014-09-27 02:15:46 +00:00
|
|
|
share.install "sample.md"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
# Go through two slides and quit.
|
|
|
|
ENV["TERM"] = "xterm"
|
2015-01-25 21:49:10 +00:00
|
|
|
pipe_output "#{bin}/mdp #{share}/sample.md", "jjq", 0
|
2014-09-27 02:15:46 +00:00
|
|
|
end
|
|
|
|
end
|