Owner made term a full project

He requested I remove the gist
This commit is contained in:
Max Howell 2009-05-25 11:56:30 +01:00
parent 21bbb46ae6
commit bdc02ad696
2 changed files with 24 additions and 3 deletions

View File

@ -104,7 +104,8 @@ class Formula
raise
end
ensure
FileUtils.rm_rf tmp
FileUtils.rm_rf tmp if tmp
FileUtils.rm tgz if tgz and not self.cache?
end
ohai 'Finishing up'
@ -177,6 +178,10 @@ protected
return entries.first
end
def cache?
true
end
private
def method_added(method)
raise 'You cannot override Formula.brew' if method == 'brew'
@ -193,6 +198,9 @@ class UncompressedScriptFormula < Formula
def uncompress path
path.dirname
end
def cache?
false
end
end
class GithubGistFormula < Formula

View File

@ -3,6 +3,19 @@ require 'brewkit'
require 'fileutils'
homepage='http://gist.github.com/116587'
url='http://gist.github.com/raw/116587/f253c26290fc0b79cd4ce5584b03585b311c28d8/term'
GithubGistFormula.new(url, '184301c748e1df92f07dee7879f17a08')
class TermFormula < UncompressedScriptFormula
def initialize
super('http://github.com/liyanage/macosx-shell-scripts/raw/e29f7eaa1eb13d78056dec85dc517626ab1d93e3/term')
@md5='1bbf4509a50224b27ac8c20d3fe8682e'
@version='2.1'
end
end
term=TermFormula.new
term.brew do |prefix|
bin=(prefix+'bin')
bin.mkpath
FileUtils.cp term.name, bin
nil
end