Owner made term a full project
He requested I remove the gist
This commit is contained in:
parent
21bbb46ae6
commit
bdc02ad696
@ -104,7 +104,8 @@ class Formula
|
|||||||
raise
|
raise
|
||||||
end
|
end
|
||||||
ensure
|
ensure
|
||||||
FileUtils.rm_rf tmp
|
FileUtils.rm_rf tmp if tmp
|
||||||
|
FileUtils.rm tgz if tgz and not self.cache?
|
||||||
end
|
end
|
||||||
|
|
||||||
ohai 'Finishing up'
|
ohai 'Finishing up'
|
||||||
@ -177,6 +178,10 @@ protected
|
|||||||
return entries.first
|
return entries.first
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def cache?
|
||||||
|
true
|
||||||
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
def method_added(method)
|
def method_added(method)
|
||||||
raise 'You cannot override Formula.brew' if method == 'brew'
|
raise 'You cannot override Formula.brew' if method == 'brew'
|
||||||
@ -193,6 +198,9 @@ class UncompressedScriptFormula < Formula
|
|||||||
def uncompress path
|
def uncompress path
|
||||||
path.dirname
|
path.dirname
|
||||||
end
|
end
|
||||||
|
def cache?
|
||||||
|
false
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class GithubGistFormula < Formula
|
class GithubGistFormula < Formula
|
||||||
|
|||||||
@ -3,6 +3,19 @@ require 'brewkit'
|
|||||||
require 'fileutils'
|
require 'fileutils'
|
||||||
|
|
||||||
homepage='http://gist.github.com/116587'
|
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
|
||||||
Loading…
x
Reference in New Issue
Block a user