docs: depends_on :linux is now the identifier for Linux-only formulae

- This was changed in
6578a4aa86.
This commit is contained in:
Issy Long 2020-02-16 10:33:23 +00:00
parent 307f85f447
commit 9ae23ee6d6
No known key found for this signature in database
GPG Key ID: 8247C390DADC67D4

View File

@ -260,13 +260,14 @@ push a bottle commit to Homebrew/linuxbrew-core.
Make a PR to `Homebrew/linuxbrew-core` containing one commit named Make a PR to `Homebrew/linuxbrew-core` containing one commit named
like this: `name (new formula)`. Keep only one commit in this PR, like this: `name (new formula)`. Keep only one commit in this PR,
squash and force push to your branch if needed. Include a comment: `# squash and force push to your branch if needed. Include the line
tag "linux"` in the formula after the `url` stanza, so maintainers can `depends_on :linux` in the dependencies section, so that maintainers
easily find Linux only formulae. can easily find Linux-only formulae.
For the bottle commit to be successful when new formulae are added, we For the bottle commit to be successful when new formulae are added, we
have to insert an empty bottle block into the formula code. This have to insert an empty bottle block into the formula code. This
usually goes after the `linux` tag. usually goes after the `url` and `sha256` lines, with a blank line in
between.
```ruby ```ruby
bottle do bottle do
@ -351,7 +352,7 @@ correct repository:
### Linux-only formulae ### Linux-only formulae
If the formula is a Linux-only formula, it either: If the formula is a Linux-only formula, it either:
- will contain the line `# tag "linux"` - will contain the line `depends_on :linux`
- won't have macOS bottles - won't have macOS bottles
If the user hasn't used `brew bump-formula-pr`, or is submitting If the user hasn't used `brew bump-formula-pr`, or is submitting