aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/ideviceinstaller.rb
blob: 93928fcb4fb39a093cf5c457353c099a96a4337a (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
require "formula"

class Ideviceinstaller < Formula
  homepage "http://www.libimobiledevice.org/"
  url "http://www.libimobiledevice.org/downloads/ideviceinstaller-1.1.0.tar.bz2"
  sha1 "5e2c47b9e6ac6d610b7bfe5186c8e84536549ce4"

  bottle do
    cellar :any
    sha1 "3c255cc07204fe0b7b9715cc8e9f5caf46f496e9" => :yosemite
    sha1 "883165e904a0d4dde166597efc1f709598f2a8b8" => :mavericks
    sha1 "23fbfb97b7ce046ac3348ad47914d28bd2165ba9" => :mountain_lion
  end

  head do
    url "http://git.sukimashita.com/ideviceinstaller.git"
    depends_on "autoconf" => :build
    depends_on "automake" => :build
    depends_on "libtool" => :build
  end

  depends_on "pkg-config" => :build
  depends_on "libimobiledevice"
  depends_on "libzip"

  def install
    system "./autogen.sh" if build.head?
    system "./configure", "--disable-dependency-tracking",
                          "--prefix=#{prefix}"
    system "make", "install"
  end

  test do
    system "#{bin}/ideviceinstaller --help |grep -q ^Usage"
  end
end