homebrew-core/Formula/dfu-util.rb
Larry Gilbert d6e29880f8 dfu-util: style fixes and hosting changes
* Remove `require "formula"`
* Replace Gitorious URLs with Sourceforge URLs (Gitorious closing at end of May)
* Replace SHA-1 hash with SHA-2(256) hash
* Break up arguments to `system` call
* Add test block for basic validation

Closes Homebrew/homebrew#39181.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-04-29 15:28:16 +01:00

37 lines
1.1 KiB
Ruby

class DfuUtil < Formula
homepage "http://dfu-util.sourceforge.net/"
# Upstream moved, no releases yet, using debian mirror until then.
# (see #34047 and #39181)
url "http://ftp.de.debian.org/debian/pool/main/d/dfu-util/dfu-util_0.8.orig.tar.gz"
sha256 "55cbde9be12a212bd84bce9d1e63941d9a16139ed0d4912401367eba1502f058"
bottle do
cellar :any
sha1 "285f3043fe09291b4485fe3c4dac36025489bca8" => :yosemite
sha1 "ed8be24bc65f7fc2791c42311be08f67649b6e23" => :mavericks
sha1 "cd533314e4700a3d746330b12aa08407f693d7a4" => :mountain_lion
end
head do
url "git://git.code.sf.net/p/dfu-util/dfu-util"
depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "libtool" => :build
end
depends_on "pkg-config" => :build
depends_on "libusb"
def install
system "./autogen.sh" if build.head?
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}"
system "make", "install"
end
test do
system bin/"dfu-util", "-V"
system bin/"dfu-prefix", "-V"
system bin/"dfu-suffix", "-V"
end
end