2020-10-10 14:16:11 +02:00
|
|
|
# typed: true
|
2019-04-19 15:38:03 +09:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2015-08-14 14:21:39 -04:00
|
|
|
class TestballBottle < Formula
|
2020-07-26 07:24:14 +02:00
|
|
|
def initialize(name = "testball_bottle", path = Pathname.new(__FILE__).expand_path, spec = :stable,
|
|
|
|
alias_path: nil, force_bottle: false)
|
2022-08-24 23:52:40 +01:00
|
|
|
super
|
|
|
|
end
|
|
|
|
|
|
|
|
DSL_PROC = proc do
|
|
|
|
url "file://#{TEST_FIXTURE_DIR}/tarballs/testball-0.1.tbz"
|
|
|
|
sha256 TESTBALL_SHA256
|
|
|
|
|
|
|
|
bottle do
|
|
|
|
root_url "file://#{TEST_FIXTURE_DIR}/bottles"
|
|
|
|
sha256 cellar: :any_skip_relocation, Utils::Bottles.tag.to_sym => "8f9aecd233463da6a4ea55f5f88fc5841718c013f3e2a7941350d6130f1dc149"
|
2015-08-14 14:21:39 -04:00
|
|
|
end
|
2022-08-24 23:52:40 +01:00
|
|
|
|
|
|
|
cxxstdlib_check :skip
|
|
|
|
end.freeze
|
|
|
|
private_constant :DSL_PROC
|
|
|
|
|
|
|
|
DSL_PROC.call
|
|
|
|
|
|
|
|
def self.inherited(other)
|
2015-08-14 14:21:39 -04:00
|
|
|
super
|
2022-08-24 23:52:40 +01:00
|
|
|
other.instance_eval(&DSL_PROC)
|
2015-08-14 14:21:39 -04:00
|
|
|
end
|
2015-11-19 07:54:27 -05:00
|
|
|
|
|
|
|
def install
|
|
|
|
prefix.install "bin"
|
|
|
|
prefix.install "libexec"
|
|
|
|
end
|
2015-08-14 14:21:39 -04:00
|
|
|
end
|