homebrew-core/Formula/ideviceinstaller.rb
Ted Pennings 4cd0935be7 Convert all 'def test' formulae to 'test do'
Closes Homebrew/homebrew#26942.
Closes Homebrew/homebrew#26946.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2014-02-24 19:54:02 -08:00

30 lines
779 B
Ruby

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 do
url 'http://cgit.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