-
-
Save azurewraith/ab7a94a1add45eda66b6 to your computer and use it in GitHub Desktop.
homebrew avrdude formular with head
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 Avarice < Formula | |
homepage 'http://sourceforge.net/projects/avarice/' | |
url 'http://downloads.sourceforge.net/project/avarice/avarice/avarice-2.13/avarice-2.13.tar.bz2' | |
sha1 'b0bc56d587600651c0e61be676177b2eebfad3ae' | |
head 'http://svn.code.sf.net/p/avarice/code/trunk/avarice' | |
depends_on 'libusb-compat' | |
if build.head? | |
depends_on 'automake' | |
end | |
def install | |
system "./Bootstrap" if build.head? | |
system "./configure", "--disable-dependency-tracking", | |
"--prefix=#{prefix}" | |
system "make" | |
system "make install" | |
end | |
end |
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 Avrdude < Formula | |
homepage 'http://savannah.nongnu.org/projects/avrdude/' | |
url 'http://download.savannah.gnu.org/releases/avrdude/avrdude-5.11.1.tar.gz' | |
sha1 '330b3a38d3de6c54d4866819ffb6924ed3728173' | |
head 'svn://svn.sv.gnu.org/avrdude/trunk/avrdude' | |
depends_on :automake if build.head? | |
option 'with-usb', 'Compile AVRDUDE with USB support.' | |
depends_on 'libusb-compat' if build.include? 'with-usb' | |
def patches | |
#fix long delay with usb, see: http://www.avrfreaks.net/index.php?name=PNphpBB2&file=viewtopic&p=819522 | |
if build.include? 'with-usb' | |
{ :p0 => "https://gist.github.com/mheuser/5420908/raw/" } | |
end | |
end | |
def install | |
system "./bootstrap" if build.head? | |
system "./configure", "--disable-dependency-tracking", | |
"--prefix=#{prefix}" | |
system "make" | |
system "make install" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment