2009-12-03 16:42:33 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Picocom < Formula
|
2009-12-03 16:42:33 +00:00
|
|
|
homepage 'http://code.google.com/p/picocom/'
|
2012-10-15 18:57:49 +00:00
|
|
|
url 'http://picocom.googlecode.com/files/picocom-1.7.tar.gz'
|
|
|
|
sha1 'bde6e36af71db845913f9d61f28dee1b485218fa'
|
2011-09-30 12:23:04 +00:00
|
|
|
|
|
|
|
def patches
|
|
|
|
# HIGH_BAUD is not defined
|
|
|
|
DATA
|
|
|
|
end
|
|
|
|
|
2009-12-03 16:42:33 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
system "make"
|
|
|
|
bin.install "picocom"
|
|
|
|
end
|
|
|
|
end
|
2011-09-30 12:23:04 +00:00
|
|
|
|
|
|
|
__END__
|
2012-10-15 18:57:49 +00:00
|
|
|
--- a/Makefile 2012-02-20 21:42:24.000000000 -0800
|
|
|
|
+++ b/Makefile 2012-10-12 23:26:08.000000000 -0700
|
|
|
|
@@ -5,8 +5,7 @@
|
2011-09-30 12:23:04 +00:00
|
|
|
|
|
|
|
# CC = gcc
|
2012-10-15 18:57:49 +00:00
|
|
|
CPPFLAGS=-DVERSION_STR=\"$(VERSION)\" \
|
|
|
|
- -DUUCP_LOCK_DIR=\"$(UUCP_LOCK_DIR)\" \
|
2011-09-30 12:23:04 +00:00
|
|
|
- -DHIGH_BAUD
|
2012-10-15 18:57:49 +00:00
|
|
|
+ -DUUCP_LOCK_DIR=\"$(UUCP_LOCK_DIR)\"
|
2011-09-30 12:23:04 +00:00
|
|
|
CFLAGS = -Wall -g
|
|
|
|
|
|
|
|
# LD = gcc
|