Created
January 3, 2012 14:17
-
-
Save stigi/1555050 to your computer and use it in GitHub Desktop.
ideviceinstaller brew formula
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'formula' | |
| class Ideviceinstaller < Formula | |
| url 'http://cgit.sukimashita.com/ideviceinstaller.git/snapshot/ideviceinstaller-1.0.0.tar.gz' | |
| homepage 'http://www.sukimashita.com/' | |
| md5 '011ab522a1dbd262e37500bdb0ff7df0' | |
| depends_on 'pkg-config' => :build | |
| depends_on 'libimobiledevice' | |
| depends_on 'glib' | |
| depends_on 'libzip' | |
| depends_on 'libplist' | |
| def install | |
| # fix the m4 problem with the missing pkg.m4 | |
| aclocalDefault = `/usr/bin/aclocal --print-ac-dir` | |
| inreplace "autogen.sh", "aclocal -I m4", "aclocal -I m4 -I#{aclocalDefault.strip} -I #{HOMEBREW_PREFIX}/share/aclocal" | |
| system "./autogen.sh" | |
| system "./configure", "--disable-debug", "--disable-dependency-tracking", | |
| "--prefix=#{prefix}" | |
| system "make install" | |
| end | |
| def test | |
| # This test will fail and we won't accept that! It's enough to just | |
| # replace "false" with the main program this formula installs, but | |
| # it'd be nice if you were more thorough. Test the test with | |
| # `brew test ideviceinstaller`. Remove this comment before submitting | |
| # your pull request! | |
| system "false" | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment