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
acc2f796
Commit
acc2f796
authored
15 years ago
by
Max Howell
Browse files
Options
Downloads
Patches
Plain Diff
Setup build environment to include our prefix
parent
41a7984b
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
Cellar/homebrew/brewkit.rb
+7
-1
7 additions, 1 deletion
Cellar/homebrew/brewkit.rb
with
7 additions
and
1 deletion
Cellar/homebrew/brewkit.rb
+
7
−
1
View file @
acc2f796
...
...
@@ -5,8 +5,12 @@ require 'pathname'
$agent
=
"Homebrew 0.1 (Ruby; Mac OS X 10.5 Leopard)"
$cellar
=
Pathname
.
new
(
__FILE__
).
dirname
.
parent
.
realpath
#TODO don't add the prefixes if we're in /usr or /usr/local
ENV
[
'MACOSX_DEPLOYMENT_TARGET'
]
=
'10.5'
ENV
[
'CFLAGS'
]
=
ENV
[
'CXXFLAGS'
]
=
'-O3 -w'
ENV
[
'CPPFLAGS'
]
=
"-I
#{
$cellar
.
parent
}
/include"
ENV
[
'LDFLAGS'
]
=
"-L
#{
$cellar
.
parent
}
/lib"
def
h1
title
puts
"
\033
[0;34m==>
\033
[0;0;1m
#{
title
}
\033
[0;0m"
...
...
@@ -40,7 +44,9 @@ class Formula
def
brew
raise
"@name.nil?"
if
@name
.
nil?
raise
"@version.nil?"
if
@version
.
nil?
raise
"@name does not validate to our regexp"
unless
/^\w+$/
=~
@name
# disabled until the regexp makes sense :P
#raise "@name does not validate to our regexp" unless /^\w+$/ =~ @name
beginning
=
Time
.
now
...
...
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