require 'formula' class Trafshow < Formula homepage 'http://soft.risp.ru/trafshow/index_en.shtml' url 'ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/trafshow-5.2.3.tgz' sha1 '1c68f603f12357e932c83de850366c9b46e53d89' depends_on :libtool def patches files = %w[patch-domain_resolver.c patch-colormask.c patch-trafshow.c patch-trafshow.1 patch-configure] { :p0 => files.collect{|p| "https://trac.macports.org/export/68507/trunk/dports/net/trafshow/files/#{p}"} } end def copy_libtool_files! if not MacOS::Xcode.provides_autotools? s = Formula.factory('libtool').share d = "#{s}/libtool/config" cp ["#{d}/config.guess", "#{d}/config.sub"], "." elsif MacOS.version == :leopard cp Dir["#{MacOS::Xcode.prefix}/usr/share/libtool/config.*"], "." else cp Dir["#{MacOS::Xcode.prefix}/usr/share/libtool/config/config.*"], "." end end def install copy_libtool_files! system "./configure", "--disable-debug", "--disable-dependency-tracking", "--prefix=#{prefix}", "--disable-slang" system "make" bin.install "trafshow" man1.install "trafshow.1" etc.install ".trafshow" => "trafshow.default" end end >summaryrefslogtreecommitdiffstats
path: root/scripts/google.pl
blob: 4011e539ef6b06bac0f40a490f7979d327a46338 (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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108