Skip to content

Instantly share code, notes, and snippets.

@stianeikeland
Last active August 29, 2015 13:56
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 stianeikeland/9208406 to your computer and use it in GitHub Desktop.
Save stianeikeland/9208406 to your computer and use it in GitHub Desktop.
require "formula"
class Flashrom < Formula
homepage "http://flashrom.org/"
url "http://download.flashrom.org/releases/flashrom-0.9.7.tar.bz2"
sha1 "d08b4073ea3ebf63f03c3e502f4291f50ef348ee"
head "svn://flashrom.org/flashrom/trunk", :using => :svn
depends_on 'libusb-compat'
depends_on 'libftdi0'
def install
ENV['CONFIG_GFXNVIDIA'] = '0'
ENV['CONFIG_NIC3COM'] = '0'
ENV['CONFIG_NICREALTEK'] = '0'
ENV['CONFIG_NICINTEL'] = '0'
ENV['CONFIG_NICINTEL_SPI'] = '0'
ENV['CONFIG_OGP_SPI'] = '0'
ENV['CONFIG_SATAMV'] = '0'
ENV['CONFIG_SATASII'] = '0'
ENV['CONFIG_DRKAISER'] = '0'
ENV['CONFIG_RAYER_SPI'] = '0'
ENV['CONFIG_INTERNAL'] = '0'
system "make DESTDIR=#{prefix} PREFIX=/ install"
mv sbin, bin
end
test do
system "flashrom --version"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment