From 337e9bee967c13d66f4692b8f158f397af3fa88d Mon Sep 17 00:00:00 2001 From: Xu Cheng Date: Tue, 3 Mar 2015 19:44:05 +0800 Subject: chcase: drop ScriptFileFormula --- Library/Formula/chcase.rb | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) (limited to 'Library/Formula') diff --git a/Library/Formula/chcase.rb b/Library/Formula/chcase.rb index 5b86a8431..046518ff4 100644 --- a/Library/Formula/chcase.rb +++ b/Library/Formula/chcase.rb @@ -1,13 +1,19 @@ -require 'formula' - -class Chcase < ScriptFileFormula - homepage 'http://www.primaledge.ca/chcase.html' - url 'http://www.primaledge.ca/chcase' - version '2.0' - sha1 'ec81ad76d85cf9162d422e801092ddc5e0841e39' +class Chcase < Formula + homepage "http://www.primaledge.ca/chcase.html" + url "http://www.primaledge.ca/chcase" + version "2.0" + sha1 "ec81ad76d85cf9162d422e801092ddc5e0841e39" # add a shebang so that brew properly sets it executable patch :DATA + + def install + bin.install "chcase" + end + + test do + system bin/"chcase", "-e" + end end __END__ -- cgit v1.2.3