diff options
| author | Sangwhan Moon | 2009-12-29 01:04:33 +0900 |
|---|---|---|
| committer | Max Howell | 2010-01-24 12:27:40 +0000 |
| commit | 148dcdc751dcbefe3af28bac0ea18e4f2b1fdb90 (patch) | |
| tree | 0e96d8c7c179b3fbb451b92ea9ad1f7b640f3937 /Library/Formula/minicom.rb | |
| parent | 415c8943980ca1c93ccdcc0a8fb611e4a96eb95d (diff) | |
| download | homebrew-148dcdc751dcbefe3af28bac0ea18e4f2b1fdb90.tar.bz2 | |
New formula for minicom 2.4
Diffstat (limited to 'Library/Formula/minicom.rb')
| -rw-r--r-- | Library/Formula/minicom.rb | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/Library/Formula/minicom.rb b/Library/Formula/minicom.rb new file mode 100644 index 000000000..b94027a1c --- /dev/null +++ b/Library/Formula/minicom.rb @@ -0,0 +1,40 @@ +require 'formula' + +class Minicom <Formula + @url='http://alioth.debian.org/frs/download.php/3195/minicom-2.4.tar.gz' + @homepage='http://alioth.debian.org/projects/minicom/' + @md5='700976a3c2dcc8bbd50ab9bb1c08837b' + + def install + # There is a silly bug in the Makefile where it forgets to link to iconv. Workaround below. + ENV['LIBS'] = '-liconv' + + system "./configure", "--prefix=#{prefix}", + "--disable-dependency-tracking", + "--mandir=#{prefix}/share/man" + system "make install" + + (prefix + 'etc').mkdir + (prefix + 'var').mkdir + (prefix + 'etc/minirc.dfl').write "pu lock #{prefix}/var\npu escape-key Escape (Meta)\n" + + end + + def caveats; <<-EOS +Terminal Compatibility +====================== +If minicom doesn't see the LANG variable, it will try to fallback to +make the layout more compatible, but uglier. Certain unsupported +encodings will completely render the UI useless, so if the UI looks +strange, try setting the following environment variable: + +LANG="en_US.UTF-8" + +Text Input Not Working +====================== +Most development boards require Serial port setup -> Hardware Flow +Control to be set to "No" to input text. + EOS + end + +end |
