From 25e252c4b8d680b4b84213badc53167d74cb9645 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Tue, 18 Mar 2014 12:13:30 -0500 Subject: cmigemo: use patch DSL --- Library/Formula/cmigemo.rb | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'Library') diff --git a/Library/Formula/cmigemo.rb b/Library/Formula/cmigemo.rb index a8d1bcd37..6e51e1500 100644 --- a/Library/Formula/cmigemo.rb +++ b/Library/Formula/cmigemo.rb @@ -2,17 +2,19 @@ require 'formula' class Cmigemo < Formula homepage 'http://www.kaoriya.net/software/cmigemo' - url 'https://cmigemo.googlecode.com/files/cmigemo-default-src-20110227.zip' - sha1 '25e279c56d3a8f1e82cbfb3526d1b38742d1d66c' - head 'https://github.com/koron/cmigemo.git' - depends_on 'nkf' => :build + stable do + url "https://cmigemo.googlecode.com/files/cmigemo-default-src-20110227.zip" + sha1 "25e279c56d3a8f1e82cbfb3526d1b38742d1d66c" - # Patch per discussion at: https://github.com/Homebrew/homebrew/pull/7005 - def patches - DATA if build.stable? + # Patch per discussion at: https://github.com/Homebrew/homebrew/pull/7005 + patch :DATA end + head 'https://github.com/koron/cmigemo.git' + + depends_on 'nkf' => :build + def install system "chmod +x ./configure" system "./configure", "--prefix=#{prefix}" -- cgit v1.2.3