From 1a3eca78fe8172567970320fa781dcdf4a5d97cc Mon Sep 17 00:00:00 2001 From: Ian Langworth ☠ Date: Fri, 26 Sep 2014 19:15:46 -0700 Subject: mdp 0.91.2 (new formula) mdp is "A command-line based markdown presentation tool." This program was announced recently on Hacker News and has proved useful. --- Library/Formula/mdp.rb | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 Library/Formula/mdp.rb (limited to 'Library/Formula') diff --git a/Library/Formula/mdp.rb b/Library/Formula/mdp.rb new file mode 100644 index 000000000..fdab77522 --- /dev/null +++ b/Library/Formula/mdp.rb @@ -0,0 +1,19 @@ +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" + + 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 -- cgit v1.2.3