From d15b89e8e211ce7d6a6ee8c7cde67bd3c7cdaf7a Mon Sep 17 00:00:00 2001 From: Paula Breton Date: Thu, 30 Mar 2017 20:09:46 -0400 Subject: [PATCH] ems-flasher: fix HEAD URL and installation The homepage doesn't indicate it, but ems-flasher has a github repository where it has been receiving commits. I've switched the HEAD URL to it, as well as written a different install process for it. Hopefully I've done this in the preferred way. Closes #11861. Signed-off-by: Alex Dunn --- Formula/ems-flasher.rb | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/Formula/ems-flasher.rb b/Formula/ems-flasher.rb index e4bf63ff59..1cc7ef0526 100644 --- a/Formula/ems-flasher.rb +++ b/Formula/ems-flasher.rb @@ -3,7 +3,6 @@ class EmsFlasher < Formula homepage "https://lacklustre.net/projects/ems-flasher/" url "https://lacklustre.net/projects/ems-flasher/ems-flasher-0.03.tgz" sha256 "d77723a3956e00a9b8af9a3545ed2c55cd2653d65137e91b38523f7805316786" - head "git://lacklustre.net/ems-flasher" bottle do cellar :any @@ -12,12 +11,24 @@ class EmsFlasher < Formula sha256 "3f978e8b96d4c1f0464ce2d4af86ff5bac6cb60810e1b8d81ce4fe55bb2abb63" => :yosemite end + head do + url "https://github.com/mikeryan/ems-flasher.git" + depends_on "gawk" => :build + depends_on "coreutils" => :build + end + depends_on "pkg-config" => :build depends_on "libusb" def install - system "make" - bin.install "ems-flasher" + if build.head? + system "./config.sh", "--prefix", prefix + man1.mkpath + system "make", "install" + else + system "make" + bin.install "ems-flasher" + end end test do