1196 Commits

Author SHA1 Message Date
Sean Molenaar
157fed329c
service: install linux service file 2021-05-04 16:22:28 +02:00
Carlo Cabrera
309504a32c
formula: add rpath helper method
About 40 formulae set `CMAKE_INSTALL_RPATH` to `lib` or `opt_lib`, but
this breaks bottle relocatability.

The correct solution is to use `@loader_path/../lib`, but this is macOS
specific, so it requires some OS-specific logic. Rather than replicating
this logic over many formulae, we may as well define a helper method for
it.

See https://github.com/Homebrew/homebrew-core/issues/75458.
2021-04-19 09:23:33 +01:00
Bo Anderson
842a2ea890
Merge pull request #11159 from Bo98/cmake-no-tests
formula: add `-DBUILD_TESTING=OFF` to `std_cmake_args`
2021-04-16 23:32:24 +01:00
Bo Anderson
0db7c0ba8a
formula: add -DBUILD_TESTING=OFF to std_cmake_args 2021-04-15 23:07:18 +01:00
Bo Anderson
635e58e9aa
software_spec: fix bottle domain fallback handling 2021-04-15 19:24:25 +01:00
Chris Ayoub
7c16da70ac Fix regression with bottle URLs in brew info JSON output 2021-04-12 21:41:42 -04:00
Mike McQuaid
bd3f1d28e7
Fix GitHub Packages filenames.
They don't need escaped like the Bintray ones did.

Fixes https://github.com/Homebrew/brew/issues/11090 (but note this may
require the cache entry to be cleared and the package to be
redownloaded).
2021-04-09 16:31:04 +01:00
Mike McQuaid
4633ec7bff
Formula#bottle_hash: various fixes/updates.
- remove `cellar` because it's no longer global
- remove `prefix` because it's no longer customisable
- add `cellar` for each bottle tag
- fix `url` for GitHub Packages
2021-04-09 15:44:37 +01:00
Mike McQuaid
576ec2c9a3
Merge pull request #9517 from SMillerDev/plist_generator
formula: allow plists to be generated
2021-04-09 13:59:55 +01:00
Mike McQuaid
1ab2726e76
Cleanup service plist code. 2021-04-09 13:30:43 +01:00
Mike McQuaid
d73351251c
Deprecate, disable, delete code for next major/minor version.
Do the usual dance for bumping our major/minor version.
2021-04-09 09:30:36 +01:00
Sean Molenaar
b927ecfd85
Fix formulae method loading
Co-authored-by: nandahkrishna <me@nandahkrishna.com>
2021-04-08 10:16:57 +02:00
Sean Molenaar
4427fa283f
formula: allow plists to be generated 2021-04-08 10:16:57 +02:00
Mike McQuaid
d9032ff01a
Download and use tabs from GitHub Packages 2021-04-01 17:37:16 +01:00
Bo Anderson
65f52806f6
formula: make bazel write to .brew_home 2021-03-29 11:53:06 +01:00
Bo Anderson
86beda7f19
formula: add ldflags parameter to std_go_args 2021-03-23 16:39:01 +00:00
Bo Anderson
e49a338896
Implement caching for dependency expansion 2021-03-20 16:56:00 +00:00
nandahkrishna
8e5451df2f
style: use parentheses for assignment in conditions 2021-02-12 18:33:37 +05:30
Mike McQuaid
04804c6db5
formula: add bottle_hash method.
Extract this method from `#to_hash` so it can be used in `brew bundle`.
2021-02-10 10:36:40 +00:00
Rylan Polster
455af85235
Merge pull request #10547 from Rylan12/prepare-bottle-syntax-deprecations
Prepare deprecations for the old bottle syntax
2021-02-08 19:13:37 -05:00
Carlos Álvaro
aebf4c9100
Safe access to tap attributes
Prevent calling name tap attribute when the tap is nil

Co-Authored-By: Rylan Polster <rslpolster@gmail.com>
2021-02-08 13:20:41 +01:00
Carlos Álvaro
a20b601120
Add tap to formula json output 2021-02-08 13:20:40 +01:00
Rylan Polster
f68a3961c7
Prepare deprecations for the old bottle syntax 2021-02-06 14:27:03 -05:00
Mike McQuaid
d4d31c1906
formula: require language/java.
This was indirectly required before so let's explicitly require it now.
2021-02-01 12:47:20 +00:00
EricFromCanada
a427de5bee capitalization fixes
"curl" is the binary, while "cURL" is the umbrella project.
2021-01-26 15:36:44 -05:00
Michka Popoff
3eea1434cc bottle: tag specific cellars 2021-01-19 10:14:25 +01:00
Jonathan Chang
ce45868973 Improve documentation and add type signatures. 2021-01-11 10:40:59 +11:00
Seeker
b9854bd4cf rubocops: add unless_multiple_conditions 2021-01-08 10:33:54 -08:00
Michka Popoff
5e91802470 checksum: simplify, use only sha256
We use only one sha type right now.

Needed for https://github.com/Homebrew/brew/pull/10186
2021-01-07 20:46:13 +01:00
Seeker
509b977b50 formula: return "*.dylib" for shared_library("*") on macOS 2020-12-24 08:53:32 -08:00
Rylan Polster
5f10a8ea76 formula: add disable/deprecation dates and reasons to json output 2020-12-23 09:56:46 -05:00
Rylan Polster
2eb34b0b27 formula: add deprecation_date and disable_date methods 2020-12-23 02:58:14 -05:00
Mike McQuaid
2c4aea93cd
Merge pull request #10062 from SeekingMeaning/postinstall-env
formula: activate env extensions for postinstall
2020-12-22 08:24:25 +00:00
Michka Popoff
986f65b973 formula: add std_configure_args
Most commonly used configure args
libdir is set to lib to enforce the usage of the single lib folder
on linux, instead of installing to lib64 on some systems.
2020-12-19 22:27:29 +01:00
Seeker
19c118d002 formula: activate env extensions for postinstall 2020-12-18 12:35:06 -08:00
Mike McQuaid
74fb058c7e
More deprecations
More deprecations, disabling and removal for Homebrew 2.7.0.
2020-12-18 14:17:37 +00:00
Mike McQuaid
4dfcf74fb2
Merge pull request #9478 from MikeMcQuaid/deprecate-disable-date
formula: deprecate!/disable!: deprecate missing or non-ISO 8601 dates.
2020-12-18 12:15:51 +00:00
Mike McQuaid
87dd13aea6
Deprecate cask requirements.
This probably has to wait until 2.7.0 now and will require a bunch of
formula changes/deprecations but we should probably start moving in this
direction given we're not installing any of these on our CI any more.
2020-12-15 14:19:45 +00:00
Mike McQuaid
f87ce3fffb
formula: deprecate!/disable!: deprecate missing or non-ISO 8601 dates.
As requested in https://github.com/Homebrew/homebrew-core/issues/66360
2020-12-11 14:03:21 +00:00
Mike McQuaid
0f9bad0052
Fix bottle prefix and repository handling
We were previously only looking at the `cellar` value when pouring
bottles and ignoring the `prefix` and (implicit) `repository`.

Actually look at these values and set the defaults for each platform.

Also, when we're relocating to create or pour bottles when `prefix`
and `repository` are equal then skip relocating the `repository` and
always use references to the `prefix` instead.

Fixes #9453
2020-12-09 13:53:10 +00:00
Seeker
a2af19360b extend: add on_os (for on_macos/on_linux) 2020-12-07 10:36:51 -08:00
Mike McQuaid
9216d8abe6
rubocop-rails: make fixes. 2020-12-02 10:43:04 +00:00
Jonathan Chang
0d058666d8 formula: widen type for system args
We can pass Integers here too, for e.g. make flags

```
TypeError: Parameter 'args': Expected type T.any(Pathname, String), got type Integer with value 4
Caller: /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/pypy.rb:68
Definition: /usr/local/Homebrew/Library/Homebrew/formula.rb:1985
```
2020-12-01 01:20:18 +01:00
Markus Reiter
7d9758a05e Fix RuboCop offenses. 2020-11-30 22:50:15 +01:00
danielnachun
7d8f6d9d22 explicitly specify CMake libdir as lib 2020-11-27 17:56:03 +11:00
Markus Reiter
1690f064a2 Add types for Formula. 2020-11-25 17:36:52 +01: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
0184e271d8 Fix RuboCop offenses. 2020-11-17 11:09:55 +01:00
Markus Reiter
1b732ec7b2 Fix RuboCop offenses. 2020-11-16 02:05:29 +01:00
Rylan Polster
50890ebd51 fix Lint/DuplicateBranch style 2020-11-16 02:02:52 +01:00