Skip to content

Instantly share code, notes, and snippets.

@mheuser
Last active January 13, 2016 16:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save mheuser/5648925 to your computer and use it in GitHub Desktop.
Save mheuser/5648925 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 => :build
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
@mheuser
Copy link
Author

mheuser commented May 25, 2013

To install this formular (head + usb):

brew install https://gist.github.com/mheuser/5648925/raw/81f54670723abc98c63704f3b3afff8a38e7b914/avrdude.rb --HEAD --with-usb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment