aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test/testball.rb
blob: d7479a7f7aad23e4c81c05a11067f99fb046282d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
require 'formula'

class TestBall < Formula
  def initialize(name="test_ball")
    @homepage = 'http://example.com/'
    self.class.instance_eval do
      @stable ||= SoftwareSpec.new
      @stable.url "file:///#{TEST_FOLDER}/tarballs/testball-0.1.tbz"
      @stable.sha1 "482e737739d946b7c8cbaf127d9ee9c148b999f5"
    end
    super
  end
  def install
    prefix.install "bin"
    prefix.install "libexec"
  end
end

class ConfigureFails < Formula
  url "file:///#{TEST_FOLDER}/tarballs/configure_fails.tar.gz"
  version '1.0.0'
  sha1 'b36c65e5de86efef1b3a7e9cf78a98c186b400b3'

  def initialize(name="configure_fails", path=nil)
    super
  end

  def install
    system "./configure"
  end
end