aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/software_spec.rb
AgeCommit message (Collapse)Author
2017-09-24Rubocop: manual rule fixes.Mike McQuaid
2017-08-07software_spec: improve no resource version error.Mike McQuaid
This should make it clearer to us that they needed to `brew update`. Fixes https://github.com/Homebrew/homebrew-core/issues/16075 Fixes https://github.com/Homebrew/brew/issues/2944
2017-07-21Enable more deprecations.Mike McQuaid
It's been long enough that these have been commented out so let's enable them globally.
2017-07-02software_spec: rescue TapFormulaUnavailableError in recursive_dependenciesilovezfs
2017-06-28Refactor using `Forwardable` and `DelegateClass`.Markus Reiter
2017-06-25software_spec: define recursive deps and reqsilovezfs
2017-05-29Fixup all RuboCop warnings.Mike McQuaid
2017-04-25software_spec: process macOS versions on Linux.Mike McQuaid
This module doesn't actually have any behaviour that's problematic at runtime on Linux so we may as well use it to properly sort macOS versions there.
2017-04-22More deprecations.Mike McQuaid
Deprecate more methods. Internal APIs have been verified to be unused elsewhere and removed. External APIs have had deprecation methods added. Existing deprecations have been either upgraded to produce warnings or no longer deprecated and the reasoning documented.
2016-12-20Deprecate 32-bit options.Mike McQuaid
These were formerly supported but as it has been a very long time since 32-bit software was necessary on macOS these have been deprecated with a `brew audit` warning and a future `odeprecated`.
2016-12-13audit: flag use of "fails_with :llvm".Mike McQuaid
Also, add TODOs for deprecating this properly at a later point.
2016-11-23Do not remove unknown bottle tagsShaun Jackman
2016-11-05software_spec: no `_or_later` in bottle filenames.Mike McQuaid
It's more useful to be able to "bless" an existing bottle to be used on later OSs (e.g. where it cannot yet be built) than it is to have to create a new, identical bottle just to have a different filename.
2016-09-23Style/Alias: Prefer `alias`.Markus Reiter
2016-09-23Fix DoubleNegation.Markus Reiter
2016-09-23Fix RuboCop CaseEquality.Markus Reiter
2016-09-18Use new "macOS" naming where appropriate.Mike McQuaid
Not quite a mass replacement as I've used OS X and Mac OS X where describing specific older versions and added compatibility methods for things in the DSL.
2016-09-17Improve rescue nesting.Mike McQuaid
2016-09-17rubocop --auto-correct all remaining files.Mike McQuaid
But remove some manual `.freeze`s on constants that shouldn't be constants.
2016-08-18Rename bottle's revision to rebuild.Mike McQuaid
2016-08-05various: eliminate the usage of `any?` (#638)Xu Cheng
`any?` is not the opposite of `empty?`. Besides the case that `[false, nil].any?` will return false, `any?`(O(n)) has much worse performance than `empty?`(O(1)).
2016-07-17software_spec: use version dups for resources (#534)Uladzislau Shablinski
Also prevent the commit of formula's HeadVersion from passing to the resource. This is a fix of #531
2016-07-16Unify Version.create usageVlad Shablinsky
Substitue each Version.new and HeadVersion.new with Version.create to unify Version and HeadVersion instantiation among core code. Note that this does not relate to Mac::OS::Version class.
2016-07-16Use HeadVersion for install/reinstallVlad Shablinsky
2016-05-08Make bottle code cross-platform.Mike McQuaid
2016-04-21Formula: include bad value in invalid-option error messageAndrew Janke
Makes identifying which line in a formula has the bad use of 'option' easier. Closes #120. Signed-off-by: Andrew Janke <andrew@apjanke.net>
2016-03-22software_spec: add ExternalPatch to dependency_collectorXu Cheng
Since we support `apply` DSL in the `patch` block, external patch files could be any compressed archive. As result, it could introduce dependencies like xz, 7z etc. Add the resource of ExternalPatch to dependency_collector, so we could track these resource dependencies. Closes Homebrew/homebrew#50318. Signed-off-by: Xu Cheng <xucheng@me.com>
2016-02-18formula: add new pour_bottle DSL with reason.Mike McQuaid
This allows there to be a user-visible description of why a bottle is not being installed.
2016-02-18software_spec: add new bottle check class.Mike McQuaid
2016-01-15build: store source modified time in tabfileXu Cheng
2015-12-15Allow multiple option_names in dep/reqs.Mike McQuaid
This means that dependencies can be merged but still maintain all their option names. Closes Homebrew/homebrew#46916. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-11-01add Formula#bottle_defined?Xu Cheng
2015-10-19Formula: add bottle disable DSLXu Cheng
2015-08-21Add no-Xcode documentation for all classes, methodsWilliam Woodruff
2015-08-21Add guards to calls that would trigger Xcode install requestsWilliam Woodruff
add guard in Formula#file_modified? to prevent git popup add guard in Superenv.bin before calling MacOS::Xcode.version add guard against missing Xcode/CLT in Xcode.uncached_version return nil instread of 0 in uncached_version when Xcode/CLT are not present, to distinguish from linuxbrew behavior checks against pour_bottle? and needs_relocation?, add guard around keg.relocate_install_names to check pour_bottle?/needs_relocation? as well needs_relocation? becomes skip_relocation?, use cellar attr to indicate relocation instead of does_not_need_relocation MacOS.can_build? becomes MacOS.has_apple_developer_tools?
2015-08-21BottleSpecification: add does_not_need_relocation fieldWilliam Woodruff
Toggled with does_not_need_relocation method in bottle block. Also declare needs_relocation? accessors in software/bottle specs.
2015-08-03Core files style updates.BrewTestBot
Closes Homebrew/homebrew#42354. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-07-06support downloading bottles through 3rd-party mirrorXu Cheng
Closes Homebrew/homebrew#41328. Closes Homebrew/homebrew#41332. Signed-off-by: Xu Cheng <xucheng@me.com>
2015-07-06auto resolve bottle root_url based on tapXu Cheng
2015-05-29SoftwareSpec: add full_name fieldXu Cheng
2015-04-06add SoftwareSpec#go_resourceTim D. Smith
by analogy to similar code in formula.rb. Permits Homebrew/homebrew#37877. Closes Homebrew/homebrew#38330.
2015-03-28software_spec: ignore bottles compatibility if `--force-bottle` is passedXu Cheng
Closes Homebrew/homebrew#38123. Signed-off-by: Xu Cheng <xucheng@me.com>
2015-03-17software_spec: check if bottles are compatible.Mike McQuaid
The `bottled?` method makes more sense when it also checks for compatibility. This is particularly useful for the case in `brew info` so it prints out `(bottled)` correctly depending on the `Cellar`. Closes Homebrew/homebrew#37636. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-02-26Remove SourceForge references.Mike McQuaid
It was fun but we just love Bintray more than you. Closes Homebrew/homebrew#37211. Closes Homebrew/homebrew#37213. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-02-19Switch bottle provider over to Bintray.Mike McQuaid
2015-02-19software_spec: use homebrew Bintray subdomain.Mike McQuaid
Also: split into two variables so they can be used for taps.
2015-02-17Add initial Bintray upload support.Mike McQuaid
2015-01-08Remove the direct url writer from ResourceJack Nagel
2014-10-19formula: add spec deprecated_option DSL.Mike McQuaid
2014-10-19Add deprecated_option to software_spec.Mike McQuaid
Allows remapping one option name to another and updates build options and flags accordingly.