aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/html2text.rb
diff options
context:
space:
mode:
authorChristian Höltje2011-02-03 23:55:59 -0500
committerMike McQuaid2011-02-12 17:29:33 +0000
commit2b898ec6a4bfaa6c3ba8892e0a1f8d5a738be795 (patch)
treefae1481b778a6f9a8b9c64e9e9cf4d8b97c7d128 /Library/Formula/html2text.rb
parentacfd2907fd497b3f386f8e606954448222b7dd5c (diff)
downloadhomebrew-2b898ec6a4bfaa6c3ba8892e0a1f8d5a738be795.tar.bz2
Added formula for html2text
html2text converts html markup to something you can view as plain text. This is very useful when installed *before* installing lesspipe (lesspipe figures out what is available at compile time). Closes #4121. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Formula/html2text.rb')
-rw-r--r--Library/Formula/html2text.rb20
1 files changed, 20 insertions, 0 deletions
diff --git a/Library/Formula/html2text.rb b/Library/Formula/html2text.rb
new file mode 100644
index 000000000..3dea9664f
--- /dev/null
+++ b/Library/Formula/html2text.rb
@@ -0,0 +1,20 @@
+require 'formula'
+
+class Html2text <Formula
+ url 'http://www.mbayer.de/html2text/downloads/html2text-1.3.2a.tar.gz'
+ homepage 'http://www.mbayer.de/html2text/'
+ md5 '6097fe07b948e142315749e6620c9cfc'
+
+ def install
+ inreplace 'configure',
+ 'for i in "CC" "g++" "cc" "$CC"; do',
+ 'for i in "g++"; do'
+
+ system "./configure"
+ system "make all"
+
+ bin.install "html2text"
+ man1.install "html2text.1.gz"
+ man5.install "html2textrc.5.gz"
+ end
+end