Skip to content

Instantly share code, notes, and snippets.

@azurewraith
Forked from mheuser/avarice.rb
Last active January 13, 2016 16:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save azurewraith/ab7a94a1add45eda66b6 to your computer and use it in GitHub Desktop.
Save azurewraith/ab7a94a1add45eda66b6 to your computer and use it in GitHub Desktop.
homebrew avrdude formular with head
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
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