aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/build_environment.rb
AgeCommit message (Collapse)Author
2014-07-07Remove proc handling from BuildEnvironmentJack Nagel
2014-07-07Merge should return selfJack Nagel
2014-07-07Only call proc if it is setJack Nagel
Fixes Homebrew/homebrew#30723. Fixes Homebrew/homebrew#30724. Fixes Homebrew/homebrew#30727.
2014-07-07Define 1.8 marshal hooks in terms of 1.9+ marshal hooksJack Nagel
2014-07-07Remove knowledge of serialization details by marshaling twiceJack Nagel
2014-07-07Fix BuildEnvironment initializerJack Nagel
2014-07-07Only store one proc per BuildEnvironment instanceJack Nagel
2014-07-07Merge instead of calling << in a loopJack Nagel
2013-04-01Requirement: env DSL is evaluated in context of self, not ENVJack Nagel
This was meant to support: env do |req| append_path 'PATH', req.some_method ... end i.e., the block was evaluated in the context of ENV. But it turned out to be not so useful after all, so I'm ripping it out before something actually depends on it.
2013-02-25BuildEnvironment: use separate sets for procs and symbolsJack Nagel
2013-01-21Object#instance_exec for Ruby 1.8.6Jack Nagel
Not thread safe! But I don't think we care. We want to evaluate the env DSL block in the context of ENV for asthetic reasons, but we also want access to methods on the requirement instance. We can use #instance_exec to pass the requirement itself into the block: class Foo < Requirement env do |req| append 'PATH', req.some_path end def some_path which 'something' end end Also add a simplified version of Object#instance_exec for Ruby 1.8.6.
2013-01-21Allow env DSL to take a blockJack Nagel
In addition to env :userpaths env :std requirements can now do env do append 'PATH', '/some/path/to/bin' # and more end
2012-12-26Clean up BuildEnvironment interface a bitJack Nagel
2012-09-14Support env :std, :userpathsAdam Vandenberg
Closes Homebrew/homebrew#14654.