aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
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