/
grsync.rb
34 lines (29 loc) 路 1.21 KB
/
grsync.rb
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
class Grsync < Formula
desc "GUI for rsync"
homepage "http://www.opbyte.it/grsync/"
url "https://downloads.sourceforge.net/project/grsync/grsync-1.2.6.tar.gz"
sha256 "66d5acea5e6767d6ed2082e1c6e250fe809cb1e797cbbee5c8e8a2d28a895619"
bottle do
rebuild 1
sha256 "0fa146b8797b174d33d492a2955381a2f54dc1807fc1167ed6cf6e29d4be78c2" => :sierra
sha256 "ea12e9e95d04f06c892915a476919f991af95b39e5653fae76d4026cb50906a1" => :el_capitan
sha256 "39e1387923c5a9f9d591bb5e8f6d3ed9fa1dedc94c521285e7948a272597549e" => :yosemite
sha256 "6ec80e0362bff0bac9976c1ca2088d5152273e926b1a6cb3a331e8435c8d4c0c" => :mavericks
sha256 "b95620a523c2bd02260a75ddfcf97dc428629ac4314ab0d12b763376eed357cd" => :mountain_lion
end
depends_on "pkg-config" => :build
depends_on "intltool" => :build
depends_on "gettext"
depends_on "gtk+"
def install
system "./configure", "--disable-dependency-tracking",
"--disable-unity",
"--prefix=#{prefix}"
system "make", "install"
end
test do
# running the executable always produces the GUI, which is undesirable for the test
# so we'll just check if the executable exists
assert (bin/"grsync").exist?
end
end