2020-04-07 21:23:12 +02:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class Formula
|
2020-06-16 18:25:13 +02:00
|
|
|
undef shared_library
|
|
|
|
|
|
|
|
def shared_library(name, version = nil)
|
|
|
|
"#{name}.so#{"." unless version.nil?}#{version}"
|
|
|
|
end
|
|
|
|
|
2020-04-07 21:23:12 +02:00
|
|
|
class << self
|
|
|
|
undef on_linux
|
|
|
|
|
|
|
|
def on_linux(&_block)
|
|
|
|
yield
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|