2011-03-10 05:11:03 +00:00
|
|
|
class Avrdude < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Atmel AVR MCU programmer"
|
2015-10-05 03:34:29 +00:00
|
|
|
homepage "https://savannah.nongnu.org/projects/avrdude/"
|
2015-12-16 14:53:18 +00:00
|
|
|
url "http://download.savannah.gnu.org/releases/avrdude/avrdude-6.2.tar.gz"
|
|
|
|
mirror "http://download-mirror.savannah.gnu.org/releases/avrdude/avrdude-6.2.tar.gz"
|
|
|
|
sha256 "e65f833493b7d63a4436c7056694a0f04ae5b437b72cc084e32c58bc543b0f91"
|
2010-03-20 23:52:53 +00:00
|
|
|
|
2014-03-23 04:47:59 +00:00
|
|
|
bottle do
|
2015-12-16 15:12:31 +00:00
|
|
|
sha256 "b2ac65f070879456e2047ba543a7fafb1d45c98b745b7915b4059ea90c10dfcd" => :el_capitan
|
|
|
|
sha256 "4c092d851e6ed8ed58ac5a1997606db420ee153289d4289917fad50f8432d5ad" => :yosemite
|
|
|
|
sha256 "a3b312dde0f3a268d6ccc9085e4a14d8d7703ff1ae09a9257b373976e7cf49ec" => :mavericks
|
2014-03-23 04:47:59 +00:00
|
|
|
end
|
|
|
|
|
2013-09-20 15:15:51 +00:00
|
|
|
head do
|
2015-08-03 12:55:31 +00:00
|
|
|
url "svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude/"
|
2013-06-26 16:03:20 +00:00
|
|
|
|
2014-06-02 02:38:17 +00:00
|
|
|
depends_on "autoconf" => :build
|
|
|
|
depends_on "automake" => :build
|
|
|
|
depends_on "libtool" => :build
|
2013-06-26 16:03:20 +00:00
|
|
|
end
|
|
|
|
|
2014-03-20 18:29:37 +00:00
|
|
|
depends_on :macos => :snow_leopard # needs GCD/libdispatch
|
2015-08-03 12:55:31 +00:00
|
|
|
depends_on "libusb-compat"
|
|
|
|
depends_on "libftdi0"
|
|
|
|
depends_on "libelf"
|
|
|
|
depends_on "libhid" => :optional
|
2013-09-20 15:15:51 +00:00
|
|
|
|
2010-03-20 23:52:53 +00:00
|
|
|
def install
|
2014-07-22 03:57:52 +00:00
|
|
|
if build.head?
|
|
|
|
inreplace "bootstrap", /libtoolize/, "glibtoolize"
|
|
|
|
system "./bootstrap"
|
|
|
|
end
|
2012-08-09 05:06:45 +00:00
|
|
|
system "./configure", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}"
|
2011-01-08 10:54:28 +00:00
|
|
|
system "make"
|
2015-08-03 12:55:31 +00:00
|
|
|
system "make", "install"
|
2010-03-20 23:52:53 +00:00
|
|
|
end
|
2015-12-16 14:53:18 +00:00
|
|
|
|
|
|
|
test do
|
|
|
|
assert_equal "avrdude done. Thank you.",
|
|
|
|
shell_output("#{bin}/avrdude -c jtag2 -p x16a4 2>&1", 1).strip
|
|
|
|
end
|
2010-03-20 23:52:53 +00:00
|
|
|
end
|