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
d6f7bc64
Commit
d6f7bc64
authored
11 years ago
by
Jack Nagel
Browse files
Options
Downloads
Patches
Plain Diff
Remove some bad practices from example formula
parent
9cd95bc0
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/Contributions/example-formula.rb
+12
-6
12 additions, 6 deletions
Library/Contributions/example-formula.rb
with
12 additions
and
6 deletions
Library/Contributions/example-formula.rb
+
12
−
6
View file @
d6f7bc64
...
...
@@ -45,11 +45,21 @@ class ExampleFormula < Formula
head
'https://example.com/.git'
,
:branch
=>
'name_of_branch'
,
:revision
=>
'abc123'
head
'https://hg.is.awesome.but.git.has.won.example.com/'
,
:using
=>
:hg
# If autodetect fails.
head
do
url
"https://example.com/repo.git"
depends_on
:autoconf
depends_on
:automake
end
# The optional devel block is only executed if the user passes `--devel`.
# Use this to specify a not-yet-released version of a software.
devel
do
url
'https://example.com/archive-2.0-beta.tar.gz'
sha1
'1234567890123456789012345678901234567890'
url
"https://example.com/archive-2.0-beta.tar.gz"
sha1
"1234567890123456789012345678901234567890"
depends_on
"cairo"
depends_on
"pixman"
end
...
...
@@ -143,14 +153,10 @@ class ExampleFormula < Formula
depends_on
:libpng
# Often, not all of X11 is needed.
depends_on
:fontconfig
# autoconf/automake is sometimes needed for --HEAD checkouts:
depends_on
:autoconf
if
build
.
head?
depends_on
:automake
if
build
.
head?
depends_on
:bsdmake
depends_on
:libtool
depends_on
:libltdl
depends_on
:mysql
=>
:recommended
depends_on
:cairo
if
build
.
devel?
depends_on
:pixman
if
build
.
devel?
# It is possible to only depend on something if
# `build.with?` or `build.without? 'another_formula'`:
depends_on
:mysql
# allows brewed or external mysql to be used
...
...
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