2010-03-02 22:54:12 -08:00
|
|
|
require 'formula'
|
|
|
|
|
2012-06-20 00:51:01 -05:00
|
|
|
class TestBall < Formula
|
2010-03-02 22:54:12 -08:00
|
|
|
def initialize name=nil
|
|
|
|
@homepage = 'http://example.com/'
|
2012-08-07 15:19:08 -05:00
|
|
|
@stable ||= SoftwareSpec.new
|
|
|
|
@stable.url "file:///#{TEST_FOLDER}/tarballs/testball-0.1.tbz"
|
2010-03-02 22:54:12 -08:00
|
|
|
super "testball"
|
|
|
|
end
|
|
|
|
def install
|
|
|
|
prefix.install "bin"
|
|
|
|
prefix.install "libexec"
|
|
|
|
end
|
|
|
|
end
|
2010-04-03 08:44:41 -07:00
|
|
|
|
2012-04-13 21:47:33 -05:00
|
|
|
class TestBallWithRealPath < TestBall
|
|
|
|
def initialize name=nil
|
|
|
|
super "testballwithrealpath"
|
|
|
|
@path = Pathname.new(__FILE__)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2011-09-16 11:04:12 -07:00
|
|
|
class TestBallWithMirror < Formula
|
|
|
|
url "file:///#{TEST_FOLDER}/bad_url/testball-0.1.tbz"
|
|
|
|
mirror "file:///#{TEST_FOLDER}/tarballs/testball-0.1.tbz"
|
|
|
|
|
|
|
|
def initialize name=nil
|
|
|
|
super "testballwithmirror"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
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
|
|
|
|
2010-04-03 08:44:41 -07:00
|
|
|
def initialize name=nil
|
|
|
|
super "configurefails"
|
|
|
|
end
|
|
|
|
|
|
|
|
def install
|
|
|
|
system "./configure"
|
|
|
|
end
|
|
|
|
end
|
2012-03-18 13:58:13 -05:00
|
|
|
|
2012-04-05 21:09:24 -05:00
|
|
|
class SpecTestBall < Formula
|
|
|
|
homepage 'http://example.com'
|
|
|
|
url 'file:///foo.com/testball-0.1.tbz'
|
|
|
|
mirror 'file:///foo.org/testball-0.1.tbz'
|
|
|
|
sha1 '482e737739d946b7c8cbaf127d9ee9c148b999f5'
|
|
|
|
|
|
|
|
head 'https://github.com/mxcl/homebrew.git', :tag => 'foo'
|
|
|
|
|
|
|
|
devel do
|
|
|
|
url 'file:///foo.com/testball-0.2.tbz'
|
|
|
|
mirror 'file:///foo.org/testball-0.2.tbz'
|
|
|
|
sha256 'deadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeef'
|
|
|
|
end
|
|
|
|
|
|
|
|
bottle do
|
2013-03-09 17:33:57 -06:00
|
|
|
sha1 'deadbeefdeadbeefdeadbeefdeadbeefdeadbeef' => :snow_leopard_32
|
2013-01-27 18:41:06 +00:00
|
|
|
sha1 'deadbeefdeadbeefdeadbeefdeadbeefdeadbeef' => :snow_leopard
|
2012-04-05 21:09:24 -05:00
|
|
|
sha1 'baadf00dbaadf00dbaadf00dbaadf00dbaadf00d' => :lion
|
2013-01-27 18:41:06 +00:00
|
|
|
sha1 '8badf00d8badf00d8badf00d8badf00d8badf00d' => :mountain_lion
|
2012-04-05 21:09:24 -05:00
|
|
|
end
|
|
|
|
|
|
|
|
def initialize name=nil
|
|
|
|
super "spectestball"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
class ExplicitVersionSpecTestBall < Formula
|
|
|
|
homepage 'http://example.com'
|
|
|
|
url 'file:///foo.com/testball-stable.tbz'
|
|
|
|
sha1 '482e737739d946b7c8cbaf127d9ee9c148b999f5'
|
|
|
|
version '0.3'
|
|
|
|
|
|
|
|
devel do
|
|
|
|
url 'file:///foo.com/testball-devel.tbz'
|
|
|
|
sha1 'deadbeefdeadbeefdeadbeefdeadbeefdeadbeef'
|
|
|
|
version '0.4'
|
|
|
|
end
|
|
|
|
|
|
|
|
bottle do
|
|
|
|
version '1'
|
2013-02-09 19:06:54 -08:00
|
|
|
sha1 'deadbeefdeadbeefdeadbeefdeadbeefdeadbeef' => :snow_leopard
|
|
|
|
sha1 'baadf00dbaadf00dbaadf00dbaadf00dbaadf00d' => :lion
|
|
|
|
sha1 '8badf00d8badf00d8badf00d8badf00d8badf00d' => :mountain_lion
|
2012-04-05 21:09:24 -05:00
|
|
|
end
|
|
|
|
|
|
|
|
def initialize name=nil
|
|
|
|
super "explicitversionspectestball"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
class HeadOnlySpecTestBall < Formula
|
|
|
|
homepage 'http://example.com'
|
|
|
|
head 'https://github.com/mxcl/homebrew.git'
|
|
|
|
|
|
|
|
def initialize name=nil
|
|
|
|
super "headyonlyspectestball"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
class IncompleteStableSpecTestBall < Formula
|
|
|
|
homepage 'http://example.com'
|
|
|
|
head 'https://github.com/mxcl/homebrew.git'
|
|
|
|
sha1 '482e737739d946b7c8cbaf127d9ee9c148b999f5'
|
|
|
|
|
|
|
|
def initialize name=nil
|
|
|
|
super "incompletestablespectestball"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
class HeadOnlyWithVersionSpecTestBall < Formula
|
|
|
|
homepage 'http://example.com'
|
|
|
|
head 'https://github.com/mxcl/homebrew.git'
|
|
|
|
version '0.3'
|
|
|
|
|
|
|
|
def initialize name=nil
|
|
|
|
super "headonlywithversionspectestball"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
class ExplicitStrategySpecTestBall < Formula
|
|
|
|
homepage 'http://example.com'
|
|
|
|
url 'file:///foo.com/testball-stable', :using => :hg, :tag => '0.2'
|
|
|
|
head 'file:///foo.com/testball-head', :using => :svn
|
|
|
|
|
|
|
|
devel do
|
|
|
|
url 'file:///foo.com/testball-devel', :using => :bzr, :tag => '0.3'
|
|
|
|
end
|
|
|
|
|
|
|
|
def initialize name=nil
|
|
|
|
super "explicitstrategyspectestball"
|
|
|
|
end
|
|
|
|
end
|
2012-06-20 00:34:05 -05:00
|
|
|
|
|
|
|
class SnowLeopardBottleSpecTestBall < Formula
|
|
|
|
homepage 'http://example.com'
|
|
|
|
url 'file:///foo.com/testball-0.1.tbz'
|
|
|
|
sha1 '482e737739d946b7c8cbaf127d9ee9c148b999f5'
|
|
|
|
|
|
|
|
bottle do
|
2013-02-28 22:14:59 +00:00
|
|
|
cellar :any
|
2013-01-27 18:41:06 +00:00
|
|
|
sha1 'deadbeefdeadbeefdeadbeefdeadbeefdeadbeef' => :snow_leopard
|
2012-06-20 00:34:05 -05:00
|
|
|
end
|
|
|
|
|
|
|
|
def initialize name=nil
|
|
|
|
super "snowleopardbottlespectestball"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
class LionBottleSpecTestBall < Formula
|
|
|
|
homepage 'http://example.com'
|
|
|
|
url 'file:///foo.com/testball-0.1.tbz'
|
|
|
|
sha1 '482e737739d946b7c8cbaf127d9ee9c148b999f5'
|
|
|
|
|
|
|
|
bottle do
|
2013-02-28 22:14:59 +00:00
|
|
|
cellar :any
|
2012-06-20 00:34:05 -05:00
|
|
|
sha1 'deadbeefdeadbeefdeadbeefdeadbeefdeadbeef' => :lion
|
|
|
|
end
|
|
|
|
|
|
|
|
def initialize name=nil
|
|
|
|
super "lionbottlespectestball"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
class AllCatsBottleSpecTestBall < Formula
|
|
|
|
homepage 'http://example.com'
|
|
|
|
url 'file:///foo.com/testball-0.1.tbz'
|
|
|
|
sha1 '482e737739d946b7c8cbaf127d9ee9c148b999f5'
|
|
|
|
|
|
|
|
bottle do
|
2013-03-11 18:56:26 +00:00
|
|
|
prefix '/private/tmp/testbrew/prefix'
|
2013-02-28 22:14:59 +00:00
|
|
|
cellar '/private/tmp/testbrew/cellar'
|
2013-03-09 17:33:57 -06:00
|
|
|
sha1 'deadbeefdeadbeefdeadbeefdeadbeefdeadbeef' => :snow_leopard_32
|
|
|
|
sha1 'faceb00cfaceb00cfaceb00cfaceb00cfaceb00c' => :snow_leopard
|
2012-06-20 00:34:05 -05:00
|
|
|
sha1 'baadf00dbaadf00dbaadf00dbaadf00dbaadf00d' => :lion
|
2013-01-27 18:41:06 +00:00
|
|
|
sha1 '8badf00d8badf00d8badf00d8badf00d8badf00d' => :mountain_lion
|
2012-06-20 00:34:05 -05:00
|
|
|
end
|
|
|
|
|
|
|
|
def initialize name=nil
|
|
|
|
super "allcatsbottlespectestball"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
class RevisedBottleSpecTestBall < Formula
|
|
|
|
homepage 'http://example.com'
|
|
|
|
url 'file:///foo.com/testball-0.1.tbz'
|
|
|
|
sha1 '482e737739d946b7c8cbaf127d9ee9c148b999f5'
|
|
|
|
|
|
|
|
bottle do
|
2013-03-08 16:07:37 +00:00
|
|
|
revision 1
|
2013-03-09 17:33:57 -06:00
|
|
|
sha1 'deadbeefdeadbeefdeadbeefdeadbeefdeadbeef' => :snow_leopard_32
|
|
|
|
sha1 'faceb00cfaceb00cfaceb00cfaceb00cfaceb00c' => :snow_leopard
|
2012-06-20 00:34:05 -05:00
|
|
|
sha1 'baadf00dbaadf00dbaadf00dbaadf00dbaadf00d' => :lion
|
2013-01-27 18:41:06 +00:00
|
|
|
sha1 '8badf00d8badf00d8badf00d8badf00d8badf00d' => :mountain_lion
|
2012-06-20 00:34:05 -05:00
|
|
|
end
|
|
|
|
|
|
|
|
def initialize name=nil
|
|
|
|
super "revisedbottlespectestball"
|
|
|
|
end
|
|
|
|
end
|
2012-07-10 21:45:17 -05:00
|
|
|
|
|
|
|
class CustomVersionScheme < Version
|
|
|
|
end
|
|
|
|
|
|
|
|
class CustomVersionSchemeTestBall < Formula
|
|
|
|
homepage 'http://example.com'
|
|
|
|
url 'file:///foo.com/testball-0.1.tbz'
|
|
|
|
sha1 '482e737739d946b7c8cbaf127d9ee9c148b999f5'
|
|
|
|
version '1.0' => CustomVersionScheme
|
|
|
|
|
|
|
|
def initialize name=nil
|
|
|
|
super "customversionschemetestball"
|
|
|
|
end
|
|
|
|
end
|