package : split environment_modifications into setup_environment and setup_dependent_environment.

package : renamed `module_modifications` to `modify_module` for consistency
This commit is contained in:
alalazo
2016-03-17 15:11:39 +01:00
parent 9cdd79e33f
commit f0f0663d1b
9 changed files with 49 additions and 60 deletions

View File

@@ -55,10 +55,8 @@ class Qt(Package):
depends_on("mesa", when='@4:+mesa')
depends_on("libxcb")
def environment_modifications(self, dependent_spec):
env = super(Qt, self).environment_modifications(dependent_spec)
def setup_environment(self, env):
env.set_env['QTDIR'] = self.prefix
return env
def patch(self):
if self.spec.satisfies('@4'):