parent
9f1e6af879
commit
ee7178562f
@ -89,6 +89,7 @@ private
|
|||||||
when :postgresql then PostgresqlDependency.new(tag)
|
when :postgresql then PostgresqlDependency.new(tag)
|
||||||
when :tex then TeXDependency.new(tag)
|
when :tex then TeXDependency.new(tag)
|
||||||
when :clt then CLTDependency.new(tag)
|
when :clt then CLTDependency.new(tag)
|
||||||
|
when :arch then ArchRequirement.new(tag)
|
||||||
else
|
else
|
||||||
raise "Unsupported special dependency #{spec}"
|
raise "Unsupported special dependency #{spec}"
|
||||||
end
|
end
|
||||||
|
|||||||
@ -334,3 +334,23 @@ class CLTDependency < Requirement
|
|||||||
EOS
|
EOS
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class ArchRequirement < Requirement
|
||||||
|
fatal true
|
||||||
|
|
||||||
|
def initialize(arch)
|
||||||
|
@arch = arch
|
||||||
|
super
|
||||||
|
end
|
||||||
|
|
||||||
|
satisfy do
|
||||||
|
case @arch
|
||||||
|
when :x86_64 then MacOS.prefer_64_bit?
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
def message; <<-EOS.undent
|
||||||
|
This formula requires an #{@arch} architecture.
|
||||||
|
EOS
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user