2009-12-28 16:04:33 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Minicom < Formula
|
2012-03-17 06:48:51 +00:00
|
|
|
url 'http://alioth.debian.org/frs/download.php/3700/minicom-2.6.1.tar.gz'
|
2010-04-07 05:58:35 +00:00
|
|
|
homepage 'http://alioth.debian.org/projects/minicom/'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 'ce6b5f3dab6b4179736152e38a806029f8ad222a'
|
2009-12-28 16:04:33 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
# There is a silly bug in the Makefile where it forgets to link to iconv. Workaround below.
|
|
|
|
ENV['LIBS'] = '-liconv'
|
2010-04-07 05:58:35 +00:00
|
|
|
|
|
|
|
system "./configure", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}",
|
2010-02-15 22:51:38 +00:00
|
|
|
"--mandir=#{man}"
|
2009-12-28 16:04:33 +00:00
|
|
|
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
|
2010-04-07 05:58:35 +00:00
|
|
|
|
2009-12-28 16:04:33 +00:00
|
|
|
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
|