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
1c56cda4
Commit
1c56cda4
authored
12 years ago
by
Jack Nagel
Browse files
Options
Downloads
Patches
Plain Diff
Factor out MySQL and Postgres requirements
parent
1cb59ea5
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Library/Homebrew/dependencies.rb
+4
-0
4 additions, 0 deletions
Library/Homebrew/dependencies.rb
Library/Homebrew/requirements.rb
+43
-0
43 additions, 0 deletions
Library/Homebrew/requirements.rb
with
47 additions
and
0 deletions
Library/Homebrew/dependencies.rb
+
4
−
0
View file @
1c56cda4
...
...
@@ -72,6 +72,10 @@ private
X11Dependency
.
new
(
tag
)
when
:xcode
XcodeDependency
.
new
(
tag
)
when
:mysql
MysqlInstalled
.
new
(
tag
)
when
:postgresql
PostgresqlInstalled
.
new
(
tag
)
else
raise
"Unsupported special dependency
#{
spec
}
"
end
...
...
This diff is collapsed.
Click to expand it.
Library/Homebrew/requirements.rb
+
43
−
0
View file @
1c56cda4
...
...
@@ -219,3 +219,46 @@ class XcodeDependency < Requirement
EOS
end
end
class
MysqlInstalled
<
Requirement
def
fatal?
;
true
;
end
def
satisfied?
which
'mysql_config'
end
def
message
;
<<-
EOS
.
undent
MySQL is required to install.
You can install this with Homebrew using:
brew install mysql-connector-c
For MySQL client libraries only.
brew install mysql
For MySQL server.
Or you can use an official installer from:
http://dev.mysql.com/downloads/mysql/
EOS
end
end
class
PostgresInstalled
<
Requirement
def
fatal?
;
true
;
end
def
satisfied?
which
'pg_config'
end
def
message
<<-
EOS
.
undent
Postgres is required to install.
You can install this with Homebrew using:
brew install postgres
Or you can use an official installer from:
http://www.postgresql.org/download/macosx/
EOS
end
end
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