parent
866b3cf6a8
commit
f93b4f44ad
@ -806,10 +806,11 @@ private
|
|||||||
def post_depends_on(dep)
|
def post_depends_on(dep)
|
||||||
# Generate with- or without- options for optional and recommended
|
# Generate with- or without- options for optional and recommended
|
||||||
# dependencies and requirements
|
# dependencies and requirements
|
||||||
if dep.optional? && !build.has_option?("with-#{dep.name}")
|
name = dep.name.split("/").last # strip any tap prefix
|
||||||
build.add("with-#{dep.name}", "Build with #{dep.name} support")
|
if dep.optional? && !build.has_option?("with-#{name}")
|
||||||
elsif dep.recommended? && !build.has_option?("without-#{dep.name}")
|
build.add("with-#{name}", "Build with #{name} support")
|
||||||
build.add("without-#{dep.name}", "Build without #{dep.name} support")
|
elsif dep.recommended? && !build.has_option?("without-#{name}")
|
||||||
|
build.add("without-#{name}", "Build without #{name} support")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user