2011-08-20 18:43:25 +00:00
|
|
|
class DfuUtil < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "USB programmer"
|
2015-04-29 10:57:22 +00:00
|
|
|
homepage "http://dfu-util.sourceforge.net/"
|
|
|
|
# Upstream moved, no releases yet, using debian mirror until then.
|
|
|
|
# (see #34047 and #39181)
|
2014-11-09 16:43:06 +00:00
|
|
|
url "http://ftp.de.debian.org/debian/pool/main/d/dfu-util/dfu-util_0.8.orig.tar.gz"
|
2015-04-29 10:57:22 +00:00
|
|
|
sha256 "55cbde9be12a212bd84bce9d1e63941d9a16139ed0d4912401367eba1502f058"
|
2011-08-20 18:43:25 +00:00
|
|
|
|
2014-11-09 17:30:54 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
2015-09-23 12:10:37 +00:00
|
|
|
sha256 "91eb66e5c5b113995ced22a67a2ab8bffb1d21f6f17d4d8c97564e86af43d768" => :el_capitan
|
2014-11-09 17:30:54 +00:00
|
|
|
sha1 "285f3043fe09291b4485fe3c4dac36025489bca8" => :yosemite
|
|
|
|
sha1 "ed8be24bc65f7fc2791c42311be08f67649b6e23" => :mavericks
|
|
|
|
sha1 "cd533314e4700a3d746330b12aa08407f693d7a4" => :mountain_lion
|
|
|
|
end
|
|
|
|
|
2014-11-11 14:57:25 +00:00
|
|
|
head do
|
2015-04-29 10:57:22 +00:00
|
|
|
url "git://git.code.sf.net/p/dfu-util/dfu-util"
|
2014-11-11 14:57:25 +00:00
|
|
|
depends_on "autoconf" => :build
|
|
|
|
depends_on "automake" => :build
|
|
|
|
depends_on "libtool" => :build
|
|
|
|
end
|
|
|
|
|
2014-11-09 16:43:06 +00:00
|
|
|
depends_on "pkg-config" => :build
|
|
|
|
depends_on "libusb"
|
2011-08-20 18:43:25 +00:00
|
|
|
|
|
|
|
def install
|
2014-11-11 14:57:25 +00:00
|
|
|
system "./autogen.sh" if build.head?
|
2011-08-20 18:43:25 +00:00
|
|
|
system "./configure", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}"
|
2015-04-29 10:57:22 +00:00
|
|
|
system "make", "install"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
system bin/"dfu-util", "-V"
|
|
|
|
system bin/"dfu-prefix", "-V"
|
|
|
|
system bin/"dfu-suffix", "-V"
|
2011-08-20 18:43:25 +00:00
|
|
|
end
|
|
|
|
end
|