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
d22eed3f
Commit
d22eed3f
authored
13 years ago
by
Adam Vandenberg
Browse files
Options
Downloads
Patches
Plain Diff
Add support for Luarocks dependencies.
parent
85e05b27
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Library/Homebrew/exceptions.rb
+3
-0
3 additions, 0 deletions
Library/Homebrew/exceptions.rb
Library/Homebrew/formula.rb
+2
-2
2 additions, 2 deletions
Library/Homebrew/formula.rb
Library/Homebrew/formula_installer.rb
+2
-1
2 additions, 1 deletion
Library/Homebrew/formula_installer.rb
with
7 additions
and
3 deletions
Library/Homebrew/exceptions.rb
+
3
−
0
View file @
d22eed3f
...
...
@@ -79,6 +79,7 @@ class UnsatisfiedExternalDependencyError < Homebrew::InstallationError
when
:perl
then
'cpan'
when
:node
then
'npm'
when
:chicken
then
'chicken-install'
when
:lua
then
"luarocks"
end
end
...
...
@@ -98,6 +99,8 @@ class UnsatisfiedExternalDependencyError < Homebrew::InstallationError
"npm install"
when
:chicken
"chicken-install"
when
:lua
"luarocks install"
end
end
end
...
...
This diff is collapsed.
Click to expand it.
Library/Homebrew/formula.rb
+
2
−
2
View file @
d22eed3f
...
...
@@ -745,7 +745,7 @@ EOF
def
depends_on
name
@deps
||=
[]
@external_deps
||=
{
:python
=>
[],
:perl
=>
[],
:ruby
=>
[],
:jruby
=>
[],
:chicken
=>
[],
:rbx
=>
[],
:node
=>
[]}
@external_deps
||=
{
:python
=>
[],
:perl
=>
[],
:ruby
=>
[],
:jruby
=>
[],
:chicken
=>
[],
:rbx
=>
[],
:node
=>
[],
:lua
=>
[]}
case
name
when
String
,
Formula
...
...
@@ -753,7 +753,7 @@ EOF
when
Hash
key
,
value
=
name
.
shift
case
value
when
:python
,
:perl
,
:ruby
,
:jruby
,
:chicken
,
:rbx
,
:node
when
:python
,
:perl
,
:ruby
,
:jruby
,
:chicken
,
:rbx
,
:node
,
:lua
@external_deps
[
value
]
<<
key
when
:optional
,
:recommended
,
:build
@deps
<<
key
...
...
This diff is collapsed.
Click to expand it.
Library/Homebrew/formula_installer.rb
+
2
−
1
View file @
d22eed3f
...
...
@@ -342,6 +342,7 @@ def external_dep_check dep, type
when
:perl
then
%W{/usr/bin/env perl -e use
\
#{
dep
}
}
when
:chicken
then
%W{/usr/bin/env csi -e (use
#{
dep
}
)}
when
:node
then
%W{/usr/bin/env node -e require('
#{
dep
}
');}
when
:lua
then
%W{/usr/bin/env luarocks show
#{
dep
}
}
end
end
...
...
@@ -365,7 +366,7 @@ class Formula
end
def
check_external_deps
[
:ruby
,
:python
,
:perl
,
:jruby
,
:rbx
,
:chicken
,
:node
].
each
do
|
type
|
[
:ruby
,
:python
,
:perl
,
:jruby
,
:rbx
,
:chicken
,
:node
,
:lua
].
each
do
|
type
|
self
.
external_deps
[
type
].
each
do
|
dep
|
unless
quiet_system
(
*
external_dep_check
(
dep
,
type
))
raise
UnsatisfiedExternalDependencyError
.
new
(
dep
,
type
)
...
...
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