blob: 6a59b79aa95d0fba5b986c8ab182c7cc506b95d8 [file] [log] [blame]
class LibimobiledeviceFlutter < Formula
desc "Library to communicate with iOS devices natively"
homepage "https://www.libimobiledevice.org/"
revision 3
head do
url 'https://flutter-mirrors.googlesource.com/libimobiledevice.git'
depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "libtool" => :build
#depends_on "libxml2"
end
depends_on "pkg-config" => :build
depends_on "libplist-flutter"
depends_on "libtasn1-flutter"
depends_on "usbmuxd-flutter"
depends_on "openssl-flutter"
def install
if build.head?
ENV["NOCONFIGURE"] = "TRUE"
system("./autogen.sh")
end
system "./configure", "--disable-dependency-tracking",
"--disable-silent-rules",
"--prefix=#{prefix}", # brew --prefix
# As long as libplist builds without Cython
# bindings, libimobiledevice must as well.
"--without-cython",
"--enable-debug-code"
system "make", "install"
prefix.install "COPYING.LESSER"
prefix.install "libtasn1-LICENSE"
prefix.install "libtasn1-AUTHORS"
end
test do
system "#{bin}/idevicedate", "--help"
end
end