Skip to content

Instantly share code, notes, and snippets.

@brunoro
Created August 23, 2016 09:47
Show Gist options
  • Save brunoro/2d9da0e91210cb3b8cbbac7656b0d011 to your computer and use it in GitHub Desktop.
Save brunoro/2d9da0e91210cb3b8cbbac7656b0d011 to your computer and use it in GitHub Desktop.
homebrew formula for libimobiledevice fork
class Libimobiledevice < Formula
desc "Library to communicate with iOS devices natively"
homepage "http://www.libimobiledevice.org/"
head do
url "https://github.com/brunoro/libimobiledevice.git", :using => :git, :revision => '2727fd508145018ce532bf525bd0b5383ce6b1f3'
depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "libtool" => :build
depends_on "libxml2"
end
depends_on "pkg-config" => :build
depends_on "libtasn1"
depends_on "libplist"
depends_on "usbmuxd"
depends_on "openssl"
def install
system "./autogen.sh" if build.head?
system "./configure", "--disable-dependency-tracking",
"--disable-silent-rules",
"--prefix=#{prefix}",
# As long as libplist builds without Cython
# bindings, libimobiledevice must as well.
"--without-cython"
system "make", "install"
end
test do
system "#{bin}/idevicedate", "--help"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment