aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorIan Langworth ☠2014-09-26 19:15:46 -0700
committerMike McQuaid2014-10-01 23:29:29 -0700
commit1a3eca78fe8172567970320fa781dcdf4a5d97cc (patch)
tree0127c1c9511dbcf30349f9a0b44dea1ab2612008 /Library/Formula
parent22ae68b7f0363e62b6cc0f7462bc9fec26c842c3 (diff)
downloadhomebrew-1a3eca78fe8172567970320fa781dcdf4a5d97cc.tar.bz2
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.
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/mdp.rb19
1 files changed, 19 insertions, 0 deletions
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