aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/picocom.rb
blob: 9d92a8b24a98b5057bb66c4a2521a466f1a33979 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
require 'formula'

class Picocom < Formula
  homepage 'http://code.google.com/p/picocom/'
  url 'http://picocom.googlecode.com/files/picocom-1.7.tar.gz'
  sha1 'bde6e36af71db845913f9d61f28dee1b485218fa'

  def patches
    # HIGH_BAUD is not defined
    DATA
  end


  def install
    system "make"
    bin.install "picocom"
    man8.install "picocom.8"
  end
end

__END__
--- a/Makefile	2012-02-20 21:42:24.000000000 -0800
+++ b/Makefile	2012-10-12 23:26:08.000000000 -0700
@@ -5,8 +5,7 @@

 # CC = gcc
 CPPFLAGS=-DVERSION_STR=\"$(VERSION)\" \
-         -DUUCP_LOCK_DIR=\"$(UUCP_LOCK_DIR)\" \
-         -DHIGH_BAUD
+         -DUUCP_LOCK_DIR=\"$(UUCP_LOCK_DIR)\"
 CFLAGS = -Wall -g

 # LD = gcc