Add keg-only to DSL
This commit is contained in:
parent
1bc71794e9
commit
bdf245ff98
@ -163,7 +163,9 @@ class Formula
|
|||||||
|
|
||||||
# rarely, you don't want your library symlinked into the main prefix
|
# rarely, you don't want your library symlinked into the main prefix
|
||||||
# see gettext.rb for an example
|
# see gettext.rb for an example
|
||||||
def keg_only?; false end
|
def keg_only?
|
||||||
|
self.class.keg_only_reason || false
|
||||||
|
end
|
||||||
|
|
||||||
# sometimes the clean process breaks things
|
# sometimes the clean process breaks things
|
||||||
# skip cleaning paths in a formula with a class method like this:
|
# skip cleaning paths in a formula with a class method like this:
|
||||||
@ -477,7 +479,7 @@ EOF
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
attr_rw :version, :homepage, :specs, :deps, :external_deps
|
attr_rw :version, :homepage, :specs, :deps, :external_deps, :keg_only_reason
|
||||||
attr_rw *CHECKSUM_TYPES
|
attr_rw *CHECKSUM_TYPES
|
||||||
|
|
||||||
def head val=nil, specs=nil
|
def head val=nil, specs=nil
|
||||||
@ -538,6 +540,10 @@ EOF
|
|||||||
puts "Aliases to Formula. The name of the symlink will be"
|
puts "Aliases to Formula. The name of the symlink will be"
|
||||||
puts "detected as an alias for the target formula."
|
puts "detected as an alias for the target formula."
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def keg_only reason
|
||||||
|
@keg_only_reason = reason
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user