Markus Reiter
5be4c9b5e0
Upgrade typed
sigils.
2020-11-25 17:04:19 +01:00
Mike McQuaid
f364f0c841
Merge remote-tracking branch 'origin/master' into deprecate-cask-commands
2020-11-25 09:39:00 +00:00
Mike McQuaid
d496f5c121
Deprecations for Homebrew 2.6.0
...
Do the usual deprecate/disable dance for the Homebrew 2.6.0 release.
Not to be merged until the next release will definitely be 2.6.0.
2020-11-24 16:44:02 +00:00
Markus Reiter
3c2ec1c60f
Deprecate remaining cask commands.
2020-11-21 19:56:12 +01:00
EricFromCanada
4f330c5e19
macos_requirement: fix display of versions as array
2020-11-16 23:22:18 -05:00
Markus Reiter
da9289eff0
Add more type signatures.
2020-11-13 12:26:36 +01:00
EricFromCanada
5c6a12e5b7
requirements: allow depends_on arch: :arm64
2020-11-07 11:00:41 -05:00
EricFromCanada
212367c1c0
requirements: reword error messages for consistency
...
also add formatting to download URLs
2020-11-01 15:20:02 -05:00
EricFromCanada
635233b37e
requirements: reword inspect() to place tags at end
...
This more closely matches requirements' display in the DSL.
2020-11-01 15:20:02 -05:00
EricFromCanada
a232ac8b1e
requirements: improve display in brew info
2020-11-01 15:20:02 -05:00
EricFromCanada
f4aeb3e956
arch_requirement: update and add to JSON representation of formulae
2020-11-01 11:57:00 -05:00
Michka Popoff
3aec8a0398
xcode_requirement: support linux
...
2020-10-12T21:29:03.7866574Z [31mError:[0m undefined method `latest_version' for OS::Mac::Xcode:Module
2020-10-12T21:29:03.7867686Z /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/requirements/xcode_requirement.rb:33:in `message'
2020-10-12T21:29:03.7868902Z /home/linuxbrew/.linuxbrew/Homebrew/Library/Taps/homebrew/homebrew-test-bot/lib/tests/formulae.rb:199:in `map'
2020-10-12T21:29:03.7870227Z /home/linuxbrew/.linuxbrew/Homebrew/Library/Taps/homebrew/homebrew-test-bot/lib/tests/formulae.rb:199:in `satisfied_requirements?'
2020-10-12T21:29:03.7871547Z /home/linuxbrew/.linuxbrew/Homebrew/Library/Taps/homebrew/homebrew-test-bot/lib/tests/formulae.rb:593:in `formula!'
2020-10-12T21:29:03.7873156Z /home/linuxbrew/.linuxbrew/Homebrew/Library/Taps/homebrew/homebrew-test-bot/lib/tests/formulae.rb:20:in `block in run!'
2020-10-12T21:29:03.7875029Z /home/linuxbrew/.linuxbrew/Homebrew/Library/Taps/homebrew/homebrew-test-bot/lib/tests/formulae.rb:19:in `each'
2020-10-12T21:29:03.7876299Z /home/linuxbrew/.linuxbrew/Homebrew/Library/Taps/homebrew/homebrew-test-bot/lib/tests/formulae.rb:19:in `run!'
2020-10-12T21:29:03.7877495Z /home/linuxbrew/.linuxbrew/Homebrew/Library/Taps/homebrew/homebrew-test-bot/lib/test_runner.rb:119:in `run_tests'
2020-10-12T21:29:03.7878705Z /home/linuxbrew/.linuxbrew/Homebrew/Library/Taps/homebrew/homebrew-test-bot/lib/test_runner.rb:36:in `block in run!'
2020-10-12T21:29:03.7879908Z /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/portable-ruby/2.6.3_2/lib/ruby/2.6.0/delegate.rb:83:in `each'
2020-10-12T21:29:03.7881136Z /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/portable-ruby/2.6.3_2/lib/ruby/2.6.0/delegate.rb:83:in `method_missing'
2020-10-12T21:29:03.7882519Z /home/linuxbrew/.linuxbrew/Homebrew/Library/Taps/homebrew/homebrew-test-bot/lib/test_runner.rb:25:in `run!'
2020-10-12T21:29:03.7883735Z /home/linuxbrew/.linuxbrew/Homebrew/Library/Taps/homebrew/homebrew-test-bot/lib/test_bot.rb:126:in `run!'
2020-10-12T21:29:03.7884875Z /home/linuxbrew/.linuxbrew/Homebrew/Library/Taps/homebrew/homebrew-test-bot/cmd/test-bot.rb:75:in `test_bot'
2020-10-12T21:29:03.7885882Z /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/brew.rb:119:in `<main>'
2020-10-26 22:22:16 +01:00
Markus Reiter
24ae318a3d
Move type annotations into files.
2020-10-10 14:59:39 +02:00
Mike McQuaid
2e5272d04c
Deprecate/disable code for Homebrew 2.5.0.
...
Do the usual "disable deprecations" and "uncomment pending deprecations"
dance and delete/deprecate/disable relevant/related code.
2020-09-03 10:34:22 +01:00
Markus Reiter
a9c271ddba
Document XcodeRequirement
.
2020-08-26 03:13:59 +02:00
Markus Reiter
481eb098c2
Document X11Requirement
.
2020-08-26 03:13:59 +02:00
Markus Reiter
22eee27926
Document TuntapRequirement
.
2020-08-26 03:13:59 +02:00
Markus Reiter
918eeb5493
Document OsxfuseRequirement
.
2020-08-26 03:13:59 +02:00
Markus Reiter
f755e084d8
Document MacOSRequirement
.
2020-08-26 03:13:59 +02:00
Markus Reiter
497a622654
Document LinuxRequirement
.
2020-08-26 03:13:59 +02:00
Markus Reiter
0d96616daa
Document JavaRequirement
.
2020-08-26 03:13:59 +02:00
Markus Reiter
eed1296d07
Document CodesignRequirement
.
2020-08-26 03:13:59 +02:00
Markus Reiter
60d8e892fc
Document ArchRequirement
.
2020-08-26 03:13:59 +02:00
Jonathan Chang
76709d82c5
Fix brew style
.
2020-07-13 23:24:14 +10:00
Mike McQuaid
fa760a2f26
Fix brew style
.
2020-07-07 13:12:37 +01:00
Mike McQuaid
b58fa4ebb1
Drop Mavericks support.
...
Companion to https://github.com/Homebrew/brew/pull/7698 .
Provide better, `odeprecated` messaging for
`depends_on :macos => :mavericks` and otherwise just fix up the code
that relied on `:mavericks`.
2020-06-10 10:06:46 +01:00
Mike McQuaid
4f75a77b08
Update deprecations
...
Add more deprecations, disable deprecations and remove disabled code.
2020-05-18 13:50:46 +01:00
Mike McQuaid
1e265247ca
rubocop: apply autofixes.
2020-03-13 21:16:18 +00:00
EricFromCanada
5277f849d9
API: supply additional data for requirements
2020-03-03 15:00:33 -05:00
Issy Long
1f6168fe8a
Change regexp.match?(string) to string.match?(regexp) everywhere
...
- Only try to call `.match?` on strings that aren't nil.
2019-10-13 23:22:51 +01:00
Issy Long
b78028b9c2
Auto-fix Performance/RegexpMatch offenses
2019-10-13 16:04:26 +01:00
EricFromCanada
c34b4c3abd
MacOSRequirement: add to_json method
2019-09-01 09:10:35 -04:00
Markus Reiter
16d2f8264c
Use MacOSRequirement
for casks.
2019-08-21 06:57:21 +02:00
Markus Reiter
78aee4fed3
Merge MaximumMacOSRequirement
into MacOSRequirement
.
2019-08-21 06:57:21 +02:00
Mike McQuaid
2b83463091
Merge pull request #6281 from sjackman/adoptopenjdk
...
JavaRequirement: Change openjdk to adoptopenjdk
2019-07-08 09:09:56 +01:00
Shaun Jackman
bbbdb08b92
JavaRequirement: Change openjdk to adoptopenjdk
2019-07-07 10:08:56 -07:00
Cheng XU
2bd9b2774d
java_requirement: set cask attribute
...
Set `@cask` attribute for JavaRequirement, which is used by
`brew info` to track cask requirement for formulae and
`brew bundle dump` to sort the formulae and casks.
Before:
```
$ brew info --json languagetool | jq '.[0].requirements'
[
{
"name": "java",
"cask": null,
"download": null
}
]
$ brew cask install adoptopenjdk; brew install languagetool
$ brew bundle dump
brew "languagetool"
cask "adoptopenjdk"
```
After:
```
$ brew info --json languagetool | jq '.[0].requirements'
[
{
"name": "java",
"cask": "adoptopenjdk",
"download": null
}
]
$ brew cask install adoptopenjdk; brew install languagetool
$ brew bundle dump
cask "adoptopenjdk"
brew "languagetool"
```
Also added relevant test cases.
2019-06-10 10:37:09 +08:00
Mike McQuaid
01a3425502
Require Xcode 10.2 on macOS 10.14
...
Xcode >=10.2 is required to build all Swift formulae on macOS >=10.14.4.
Rather than requiring per-formula workarounds
(e.g. Homebrew/homebrew-core#39446 ) this provides a more stable platform
Homebrew can rely on for building Swift formulae.
2019-05-01 09:06:41 +01:00
Mike McQuaid
c4f72312ce
Fixup brew style
failures.
2019-04-30 09:19:18 +01:00
Mike McQuaid
36dbad3922
Add frozen_string_literal to all files.
2019-04-20 13:27:36 +09:00
Claudia
f155ede7fb
Endorse AdoptOpenJDK instead of Oracle OpenJDK
...
This commit changes the message that appears when Homebrew detects
that a Java requirement is unmet.
The new message will say:
```
Install AdoptOpenJDK with Homebrew Cask:
brew cask install adoptopenjdk
```
And for Java 8:
```
Install AdoptOpenJDK 8 with Homebrew Cask:
brew cask install homebrew/cask-versions/adoptopenjdk8
```
2019-04-19 18:00:31 +02:00
Mike McQuaid
426c6e2c3f
xcode_requirement: fix Swift compatability check.
...
Ensure we're using the full macOS version so that
`MacOS::Xcode.version >= "10.14.4"` can ever be true.
2019-04-09 15:59:27 +01:00
Mike McQuaid
da392cd9e8
xcode_requirement: require macOS 10.14.4 for Xcode 10.2.
...
See discussion in https://github.com/Homebrew/brew/pull/5940 .
2019-04-04 08:34:25 +01:00
Jonathan Chang
d2e6d04faf
arch: actually show required architecture
2019-03-11 20:31:53 +11:00
Mike McQuaid
d64429a736
rubocop: enable Style/IfUnlessModifier.
2019-02-21 12:55:49 +00:00
Gary Bartlett
8a6a46da36
Add additional support for java minor versions > 9.
2019-02-06 14:48:19 -08:00
Gary Bartlett
ff5dddab99
Add support for java version strings without periods, e.g. "12-ea" (java-beta).
2019-02-06 06:31:57 -08:00
Mike McQuaid
1aa8ad09e2
Deprecate macOS versions below Mavericks
...
And remove all dead/unneeded code.
2019-01-27 12:27:47 +00:00
Mike McQuaid
170c5493a4
Update deprecations
...
- Add some `odeprecated`
- Make some `odeprecated` now `odisabled`
- Remove `odisabled` code.
- Remove old update migrations
- Remove GCC 4.0 compiler
- Remove Tiger-only code
- Remove 32-bit-only code
- Remove use of LD64
- Remove GCC 4.3 - 4.8 support.
2019-01-08 19:13:46 +00:00
Bryce Glover
33c3faa125
[JavaRequirement#satisfies_version
] java_version_s
: Fix regular expression.
...
The match obtained by applying the regular expression used to index into
the `stderr` member of the result of calling `system_command` in the relevant
variable assignment could yield unexpected results. The regular expression in-
volved was not strict enough and contained an unescaped period, which could
match any character, not just the expected literal decimal point. This commit
corrects this oversight by escaping the relevant character, thus addressing
@apjanke's remark in https://github.com/Homebrew/brew/pull/5280#issuecomment-437165119 on the existence of a:
> …possible bug - that `.` looks like it should be escaped as `\.` to match a
> literal ".".) …
2018-12-14 13:45:55 -05:00