blob: 3b15c6a90a47a17f69c2b7cc763b5073cedf50e6 (
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
  | 
require 'formula'
class Ideviceinstaller < Formula
  homepage 'http://www.libimobiledevice.org/'
  url 'http://www.libimobiledevice.org/downloads/ideviceinstaller-1.0.1.tar.bz2'
  sha1 '7dd57f5d6d4466d8eca5d28fef3c22033b2af2da'
  head 'http://cgit.sukimashita.com/ideviceinstaller.git'
  depends_on 'pkg-config' => :build
  depends_on 'libimobiledevice'
  depends_on 'libzip'
  if build.head?
    depends_on 'autoconf' => :build
    depends_on 'automake' => :build
    depends_on 'libtool' => :build
  end
  def install
    system "./autogen.sh" if build.head?
    system "./configure", "--disable-dependency-tracking",
                          "--prefix=#{prefix}"
    system "make install"
  end
  def test
    system "#{bin}/ideviceinstaller --help |grep -q ^Usage"
  end
end
  |