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
784b71cb
Commit
784b71cb
authored
8 years ago
by
Mike McQuaid
Browse files
Options
Downloads
Patches
Plain Diff
Tweak style.
parent
fcc9cfa6
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/apr_requirement.rb
+10
-9
10 additions, 9 deletions
Library/Homebrew/requirements/apr_requirement.rb
with
10 additions
and
9 deletions
Library/Homebrew/requirements/apr_requirement.rb
+
10
−
9
View file @
784b71cb
...
...
@@ -7,18 +7,19 @@ class AprRequirement < Requirement
# APR shipped in Tiger is too old, but Leopard+ is usable.
# The *-config scripts were removed in Sierra, which is widely breaking.
satisfy
(
build_env:
false
)
do
MacOS
.
version
>
:leopard
&&
MacOS
.
version
<
:sierra
&&
MacOS
::
CLT
.
installed?
||
Formula
[
"apr-util"
].
installed?
next
false
if
MacOS
.
version
<=
:leopard
next
false
if
MacOS
.
version
>=
:sierra
MacOS
::
CLT
.
installed?
||
Formula
[
"apr-util"
].
installed?
end
env
do
# Prefer system Apr as much as possible, even if our's is installed.
unless
MacOS
.
version
>
:leopard
&&
MacOS
.
version
<
:sierra
&&
MacOS
::
CLT
.
installed?
ENV
.
prepend_path
"PATH"
,
Formula
[
"apr-util"
].
opt_bin
ENV
.
prepend_path
"PATH"
,
Formula
[
"apr"
].
opt_bin
ENV
.
prepend_path
"
PKG_CONFIG_
PATH"
,
"
#{
Formula
[
"apr"
].
opt_
libexec
}
/lib/pkgconfig"
ENV
.
prepend_path
"PKG_CONFIG_PATH"
,
"
#{
Formula
[
"apr
-util
"
].
opt_libexec
}
/lib/pkgconfig"
end
next
if
MacOS
.
version
<=
:leopard
next
if
MacOS
.
version
>=
:sierra
next
if
MacOS
::
CLT
.
installed?
ENV
.
prepend_path
"PATH"
,
Formula
[
"apr
-util
"
].
opt_bin
ENV
.
prepend_path
"PATH"
,
Formula
[
"apr"
].
opt_
bin
ENV
.
prepend_path
"PKG_CONFIG_PATH"
,
"
#{
Formula
[
"apr"
].
opt_libexec
}
/lib/pkgconfig"
ENV
.
prepend_path
"PKG_CONFIG_PATH"
,
"
#{
Formula
[
"apr-util"
].
opt_libexec
}
/lib/pkgconfig"
end
def
to_dependency
...
...
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