libimobiledevice 1.1.5

Closes Homebrew/homebrew#18736.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
Anton Rieder 2013-03-26 00:21:27 +01:00 committed by Adam Vandenberg
parent 599ef7fd2f
commit 7b109143bc

View file

@ -2,34 +2,19 @@ require 'formula'
class Libimobiledevice < Formula
homepage 'http://www.libimobiledevice.org/'
url 'http://www.libimobiledevice.org/downloads/libimobiledevice-1.1.4.tar.bz2'
sha1 'd59d9751d9f792e8674cd87c91005d431bf56065'
url 'http://www.libimobiledevice.org/downloads/libimobiledevice-1.1.5.tar.bz2'
sha1 '1c2ce186787fe661d2ef5a1be170ddbe5f85db77'
head 'http://cgit.sukimashita.com/libimobiledevice.git'
depends_on 'pkg-config' => :build
depends_on 'libtasn1'
depends_on 'glib'
depends_on 'libplist'
depends_on 'usbmuxd'
depends_on 'gnutls'
depends_on 'libgcrypt'
if build.head?
depends_on :automake
depends_on :libtool
end
def install
if build.head?
# fix the m4 problem with the missing pkg.m4
ENV['LIBTOOLIZE'] = "glibtoolize"
ENV['ACLOCAL'] = "aclocal -I m4 -I #{HOMEBREW_PREFIX}/share/aclocal"
ENV.prepend "CFLAGS", "-I#{HOMEBREW_PREFIX}/include"
system "autoreconf -ivf"
end
ENV.append_to_cflags "-std=gnu89" if ENV.compiler == :clang
system "./configure", "--disable-dependency-tracking",