Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
brew
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to JiHu GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
KMSCAKKSCFKA AKFACAMADCAS
brew
Commits
09d4a7fb
Commit
09d4a7fb
authored
12 years ago
by
Jack Nagel
Browse files
Options
Downloads
Patches
Plain Diff
Block-style env DSL examples
parent
2503cedf
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Library/Homebrew/requirements.rb
+4
-6
4 additions, 6 deletions
Library/Homebrew/requirements.rb
with
4 additions
and
6 deletions
Library/Homebrew/requirements.rb
+
4
−
6
View file @
09d4a7fb
...
...
@@ -57,6 +57,8 @@ class X11Dependency < Requirement
fatal
true
env
{
x11
}
def
initialize
(
*
tags
)
tags
.
flatten!
@min_version
=
tags
.
shift
if
/(\d\.)+\d/
===
tags
.
first
...
...
@@ -74,10 +76,6 @@ class X11Dependency < Requirement
EOS
end
def
modify_build_environment
ENV
.
x11
end
def
<
=>
other
unless
other
.
is_a?
X11Dependency
raise
TypeError
,
"expected X11Dependency"
...
...
@@ -142,11 +140,11 @@ class MPIDependency < Requirement
@unknown_langs
.
empty?
and
@non_functional
.
empty?
end
def
modify_build_environment
env
do
|
req
|
# Set environment variables to help configure scripts find MPI compilers.
# Variable names taken from:
# http://www.gnu.org/software/autoconf-archive/ax_mpi.html
lang_list
.
each
do
|
lang
|
req
.
lang_list
.
each
do
|
lang
|
compiler
=
'mpi'
+
lang
.
to_s
mpi_path
=
which
compiler
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment