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/"
|
2016-07-03 12:56:01 +00:00
|
|
|
url "https://download.savannah.gnu.org/releases/avrdude/avrdude-6.3.tar.gz"
|
|
|
|
mirror "https://download-mirror.savannah.gnu.org/releases/avrdude/avrdude-6.3.tar.gz"
|
2016-03-16 00:42:55 +00:00
|
|
|
sha256 "0f9f731b6394ca7795b88359689a7fa1fba818c6e1d962513eb28da670e0a196"
|
2010-03-20 23:52:53 +00:00
|
|
|
|
2014-03-23 04:47:59 +00:00
|
|
|
bottle do
|
2016-09-17 01:20:01 +00:00
|
|
|
sha256 "45c59c4d7821476baa9354c5d57254ee2e7a589f4928f4ecc68f55c93dd648c6" => :sierra
|
2016-03-16 04:29:04 +00:00
|
|
|
sha256 "4e5318b6c2022a2c33f2cd7528c02a23599097227a390855b8ad5f0680c85dd3" => :el_capitan
|
|
|
|
sha256 "5abc4587ae12d475dd95a1b94e1c3045c4c4a64037d7be3dc935ff3a41d0285c" => :yosemite
|
|
|
|
sha256 "17916229c901c02efd79616a053fd6910a1e6c07c90027d868b43c5b536f86d5" => :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
|
|
|
|
|
2016-09-24 15:45:48 +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
|