2012-07-26 17:49:01 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Ideviceinstaller < Formula
|
|
|
|
homepage 'http://www.libimobiledevice.org/'
|
|
|
|
url 'http://www.libimobiledevice.org/downloads/ideviceinstaller-1.0.1.tar.bz2'
|
|
|
|
sha1 '7dd57f5d6d4466d8eca5d28fef3c22033b2af2da'
|
|
|
|
|
2013-09-20 15:15:56 +00:00
|
|
|
head do
|
|
|
|
url 'http://cgit.sukimashita.com/ideviceinstaller.git'
|
2013-04-08 21:00:43 +00:00
|
|
|
depends_on 'autoconf' => :build
|
|
|
|
depends_on 'automake' => :build
|
|
|
|
depends_on 'libtool' => :build
|
|
|
|
end
|
|
|
|
|
2013-09-20 15:15:56 +00:00
|
|
|
depends_on 'pkg-config' => :build
|
|
|
|
depends_on 'libimobiledevice'
|
|
|
|
depends_on 'libzip'
|
|
|
|
|
2012-07-26 17:49:01 +00:00
|
|
|
def install
|
2013-04-08 21:00:43 +00:00
|
|
|
system "./autogen.sh" if build.head?
|
|
|
|
|
2012-07-26 17:49:01 +00:00
|
|
|
system "./configure", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
|
2014-02-23 21:31:41 +00:00
|
|
|
test do
|
2012-07-26 17:49:01 +00:00
|
|
|
system "#{bin}/ideviceinstaller --help |grep -q ^Usage"
|
|
|
|
end
|
|
|
|
end
|