homebrew-core/Formula/minicom.rb
Lloyd Ramey 3d331d431d minicom: use working download
alioth.debian.org seems to be down, so changed to the source URL for the
minicom debian package instead.

Closes Homebrew/homebrew#24377.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-11-16 10:30:49 -08:00

38 lines
1.2 KiB
Ruby

require 'formula'
class Minicom < Formula
homepage 'http://alioth.debian.org/projects/minicom/'
url 'http://ftp.de.debian.org/debian/pool/main/m/minicom/minicom_2.6.1.orig.tar.gz'
sha1 'ce6b5f3dab6b4179736152e38a806029f8ad222a'
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