Markus Reiter
b5363025a6
Refactor and document BuildEnvironment
.
2020-08-14 18:41:44 +02:00
Markus Reiter
490e503b1b
Replace Homebrew.args
with Context
.
2020-08-06 16:13:14 +02:00
Markus Reiter
bace9ecc34
Pass verbose?
to Formula#verify_download_integrity
.
2020-08-06 16:13:14 +02:00
Markus Reiter
5caafe413e
Pass debug?
to Formula#brew
and Formula#run_test
.
2020-08-06 16:12:52 +02:00
Mike McQuaid
fb0268da7e
license: handle "Public Domain".
...
Allow `:public_domain` to be used as a `license` value and ensure that
it's handled correctly by `brew info`, `brew audit` and `brew install`.
2020-08-04 10:47:41 +01:00
Bo Anderson
197c4666cf
Merge pull request #8190 from Bo98/full_name-cache
...
formula: cache based on full_name
2020-08-03 11:31:16 +01:00
Bo Anderson
a8060923ed
formula: cache based on full_name
2020-08-02 13:43:32 +01:00
Bo Anderson
8d055497c5
formula: add deprecated/disabled info to hash
2020-08-01 02:51:09 +01:00
Bo Anderson
71f9ec79c7
formula: don't catch errors in the Formula.each yield
2020-07-30 17:09:07 +01:00
Markus Reiter
e07b02fde2
Comment BUILD_FLAGS
.
2020-07-30 10:12:34 +02:00
Markus Reiter
bdb986f572
Revert unnecessary change.
2020-07-30 03:21:12 +02:00
Markus Reiter
24eff8f81a
Pass args
in SoftwareSpec
instead of using global args
.
2020-07-30 03:21:12 +02:00
Lionell Loh Jian An
52321b4fcd
Apply suggestions from code review
...
Code review changes
Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
2020-07-28 21:01:36 +08:00
lionellloh
4ff3d63978
Clean up
2020-07-28 21:01:36 +08:00
lionellloh
3982810eab
brew style --fix
2020-07-28 21:01:36 +08:00
lionellloh
797a07d555
All tests adapted to pass
2020-07-28 21:01:36 +08:00
lionellloh
9a2f84d4a5
Modify to_hash output
2020-07-28 21:01:35 +08:00
Lionell Loh Jian An
3d27894015
Apply suggestions from code review
...
Code review changes
Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
2020-07-28 21:01:35 +08:00
lionellloh
88eae0633b
overwrote license attr_rw with a special license method
2020-07-28 21:01:35 +08:00
Mike McQuaid
f6bb1f1ef8
Merge pull request #8053 from Bo98/java.io.tmpdir
...
formula: set java.io.tmpdir
2020-07-28 09:06:38 +01:00
Markus Reiter
6b0b25cd00
Pass keep_tmp?
and interactive?
instead of using global args
.
2020-07-25 02:37:10 +02:00
Maxim Belkin
152dd1ca24
Move allowed_missing_libraries: extend/os/linux/formula.rb ~> formula.rb
2020-07-24 11:06:38 +00:00
Maxim Belkin
487c4857a3
formula.rb: add a no-op allowed_missing_libraries method
2020-07-24 10:52:19 +00:00
Maxim Belkin
1b8c32c716
Move allowed_missing_libs? to linkage_checker.rb.
...
Optimize 'unexpected_broken_dylibs'
2020-07-22 14:30:52 +00:00
Bo Anderson
11b6402a2c
formula: set java.io.tmpdir
2020-07-21 15:24:36 +01:00
Maxim Belkin
7080ad5ebc
formula.rb: update missing libs feature
...
1. Raise an exception on macOS.
2. Verify that the missing libraries are specified either as Strings or
Regular Expressions.
Signed-off-by: Maxim Belkin <maxim.belkin@gmail.com>
2020-07-21 13:16:56 +00:00
Maxim Belkin
c61aba4ec3
Formula: ignore_missing_libraries DSL
2020-07-16 13:51:16 +00:00
Maxim Belkin
e7b3b8e559
Allow missing libraries
2020-07-16 13:51:16 +00:00
Bo Anderson
022d42ab08
formula: minor refactor to reduce line count
2020-07-16 02:20:13 +01:00
Tom Schoonjans
678dbc1973
std_meson_args: add release buildtype
...
By default meson compiles using the debug buildtype, which corresponds
to -O0 -g. The release buildtype changes this to -O3.
2020-07-14 11:27:49 +01:00
Bo Anderson
d5d3fc0f4b
formula: use installed_prefixes in opt_or_installed_prefix_keg
2020-07-09 23:04:15 +01:00
Mike McQuaid
82e249b92f
formula: look harder for a linked keg.
...
Add and use a `possible_names` method to find a linked keg based on
an old name or alias.
Use this both for `link_overwrite` and for `linked_keg` (which is what
`brew upgrade` uses to find outdated kegs).
2020-07-09 15:03:49 +01:00
Bo Anderson
2afa8497c0
formula: consider aliases in installed_prefixes
2020-07-09 14:08:58 +01:00
Mike McQuaid
f951ea83d4
Fix brew style
.
2020-07-07 12:23:29 +01:00
Mike McQuaid
7015fb1601
formula: fix link_overwrite?
...
Fixes #7921
2020-07-06 17:02:58 +01:00
Mike McQuaid
17ca7527f4
formula: allow link_overwrite for old name too.
2020-07-06 09:23:04 +01:00
Michka Popoff
5eae33b59d
link_overwrite: allow to overwrite files from alias
...
See https://github.com/Homebrew/homebrew-core/pull/54912#issuecomment-653893645
Formulary.factory("python") points to python@3.8, which breaks link_overwrite
for that case.
This changes checks if the formula is an alias, so that we can still override
the files during installation.
2020-07-05 22:24:03 +02:00
Sean Molenaar
0315f64550
Merge pull request #7861 from Homebrew/SMillerDev-patch-1
...
Remove outdated suggestions from Formula#test doc
2020-07-01 11:07:14 +02:00
Sean Molenaar
a721d7bc8f
Remove outdated suggestions from Formula#test doc
2020-07-01 10:11:46 +02:00
Lionell
57fd1fdc7e
Merge branch 'master' into license
2020-06-25 13:42:27 +08:00
Lionell Loh Jian An
9845091f4d
Apply suggestions from code review
...
license: code review changes
Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
2020-06-24 18:32:53 +08:00
Dawid Dziurla
4fa540b259
Merge pull request #7776 from dawidd6/gopath
...
formula: set GOPATH
2020-06-23 18:45:44 +02:00
Dawid Dziurla
f04834f02c
formula: set GOPATH
...
So we can cache dependencies and speed up subsequent builds.
2020-06-23 18:04:04 +02:00
Michka Popoff
a5025e9a9f
Merge pull request #7751 from iMichka/shared
...
formulae: add generic shared_library_extension
2020-06-22 18:25:35 +02:00
Dario Vladovic
8a62f891e1
formula: add std_cargo_args
2020-06-22 14:39:49 +02:00
Michka Popoff
955bca6574
formule: add generic shared-lib methods
...
We have strings containing hardcoded ".dylib" extensions in homebrew-core.
To be able to bring linuxbrew-core and homebrew-core closer together,
I am introducing a new generic attribute that can be used in formulae.
2020-06-20 23:14:18 +02:00
Lionell
8a6fa73dc1
Merge branch 'license' of https://github.com/MLH-Fellowship/brew into license
2020-06-13 01:04:39 +08:00
Michka Popoff
1f8ebf5d20
resource: allow on_os blocks
2020-06-10 19:29:04 +02:00
William Ma
b07685291b
Add license to formula DSL
2020-06-10 12:29:25 -04: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