2010-03-02 22:54:12 -08:00
|
|
|
require 'formula'
|
|
|
|
|
2012-06-20 00:51:01 -05:00
|
|
|
class TestBall < Formula
|
2014-04-06 15:52:04 -05:00
|
|
|
def initialize(name="test_ball", path=nil)
|
2013-04-08 17:43:01 -05:00
|
|
|
self.class.instance_eval do
|
2014-03-03 15:04:23 -06:00
|
|
|
stable.url "file:///#{TEST_FOLDER}/tarballs/testball-0.1.tbz"
|
|
|
|
stable.sha1 "482e737739d946b7c8cbaf127d9ee9c148b999f5"
|
2013-04-08 17:43:01 -05:00
|
|
|
end
|
2013-04-10 12:02:35 -05:00
|
|
|
super
|
2010-03-02 22:54:12 -08:00
|
|
|
end
|
|
|
|
def install
|
|
|
|
prefix.install "bin"
|
|
|
|
prefix.install "libexec"
|
|
|
|
end
|
|
|
|
end
|
2010-04-03 08:44:41 -07:00
|
|
|
|
2012-06-20 00:51:01 -05:00
|
|
|
class ConfigureFails < Formula
|
2012-08-07 15:19:08 -05:00
|
|
|
url "file:///#{TEST_FOLDER}/tarballs/configure_fails.tar.gz"
|
|
|
|
version '1.0.0'
|
2013-01-26 13:10:06 +00:00
|
|
|
sha1 'b36c65e5de86efef1b3a7e9cf78a98c186b400b3'
|
2012-08-07 15:19:08 -05:00
|
|
|
|
2013-04-10 12:02:35 -05:00
|
|
|
def initialize(name="configure_fails", path=nil)
|
|
|
|
super
|
2010-04-03 08:44:41 -07:00
|
|
|
end
|
|
|
|
|
|
|
|
def install
|
|
|
|
system "./configure"
|
|
|
|
end
|
|
|
|
end
|