homebrew-core/Formula/minicom.rb
Adam Vandenberg 7bd947eb0b Update formulae for version 0.7
* Use new "url" features
* Use keg_only DSL
* Use "skip_clean :all" DSL
* Whitespace and style cleanups
* Make bash invocations less silly
* Use new man2-man8 helpers
* Remove "FileUtils." since it is included in Formula
* Use real names for deps instead of aliases
* ENV.x11 now updates path, so remove that from individual brews
2010-08-07 18:08:53 -07:00

38 lines
1.2 KiB
Ruby

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", "--disable-dependency-tracking",
"--prefix=#{prefix}",
"--mandir=#{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