forked from Homebrew/legacy-homebrew
-
Notifications
You must be signed in to change notification settings - Fork 0
/
isync.rb
30 lines (23 loc) · 825 Bytes
/
isync.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
require 'formula'
class Isync < Formula
homepage 'http:https://isync.sourceforge.net/'
url 'http:https://downloads.sourceforge.net/project/isync/isync/1.0.6/isync-1.0.6.tar.gz'
sha1 '5cd7403722584b9677fc6a4185c0b9a00f153453'
head 'git:https://isync.git.sourceforge.net/gitroot/isync/isync'
depends_on 'berkeley-db'
if build.head?
depends_on :autoconf
depends_on :automake
end
def patches
# Add "PassCommand" config:
# http:https://sourceforge.net/p/isync/patches/12/
"http:https://sourceforge.net/p/isync/patches/_discuss/thread/17e52692/e059/attachment/passcommand.patch"
end if build.head?
def install
system "touch", "ChangeLog" if build.head?
system "./autogen.sh" if build.head?
system './configure', "--prefix=#{prefix}", '--disable-dependency-tracking'
system "make install"
end
end