aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/software_spec.rb
AgeCommit message (Collapse)Author
2015-04-06add SoftwareSpec#go_resourceTim D. Smith
by analogy to similar code in formula.rb. Permits #37877. Closes #38330.
2015-03-28software_spec: ignore bottles compatibility if `--force-bottle` is passedXu Cheng
Closes #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 #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 #37211. Closes #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.
2014-09-18Remove fails_with? from the formula instanceJack Nagel
2014-09-01Add Go language module, resourcesMisty De Meo
This introduces a new GoResource category of resource. GoResources have a specialized stage method which allows a resource to stage itself into a gopath. The new Go language module provides a one-liner to stage all GoResources present in the formula.
2014-08-29Add a method for retrieving only flags from ARGVJack Nagel
2014-08-28Single character options should not be used in a formulaJack Nagel
2014-08-19Make fails_with available in spec blocksJack Nagel
Closes #31706.
2014-08-13Replace Options.coerce with an alternate constructorJack Nagel
2014-08-13Always pass an Options instance to the BuildOptions constructorJack Nagel
2014-08-13Revert "Always pass an Options instance to the BuildOptions constructor"Mike McQuaid
This reverts commit e143bcef259ca76b2124e6e73bd9bdf872418723. Closes #31557. Closes #31559. Closes #31561. Closes #31562.
2014-08-13Revert "Replace Options.coerce with an alternate constructor"Mike McQuaid
This reverts commit 8d2ef974a3a87bf4207f71ccb8a7b4776e16a016.
2014-08-12Replace Options.coerce with an alternate constructorJack Nagel
2014-08-12Always pass an Options instance to the BuildOptions constructorJack Nagel
2014-08-10Handle legacy options in the method_added hookJack Nagel
We only need to process the legacy options at load time, not each time the class is instantiated, and only when there is an options method defined.
2014-08-07Use predefined options for universal, cxx11, and 32-bit optionsJack Nagel
:universal and :cxx11 are now handled directly, so we don't need to always convert symbols to strings in this method. Symbols should be reserved for future use.
2014-08-07Move management of options collection to the spec objectJack Nagel
2014-08-07Raise ArgumentError for argument errorsJack Nagel
2014-07-31Hide the options data structure betterJack Nagel
2014-07-31Make options available on the spec objectsJack Nagel
2014-07-30Rename resource? to resource_defined?Jack Nagel
2014-07-29Simplify internal representation of patchesJack Nagel
- remove support for IO objects, since we no longer access ::DATA directly - since we don't need to support IO objects, use a separate class for string patches and stop wrapping strings in StringIO ojects
2014-07-22Stop exposing the downloader as an attributeJack Nagel
2014-07-22Hide the downloader implementation from the installerJack Nagel
2014-07-18Add a factory method that accepts a formula objectJack Nagel
2014-07-18Ask the filename object for the prefixJack Nagel
2014-07-18Move bottle URL construction to the bottle objectJack Nagel
2014-07-18Move bottle filename construction to a classJack Nagel
2014-07-17Spell out "formula" in parameter nameJack Nagel
2014-07-16Rename fetch_bottle_for to fetch_checksum_forJack Nagel
2014-07-15Implement []= on BottleCollectorJack Nagel
2014-05-27Make some constant strings into actual constantsJack Nagel
We only need one copy of each of these strings, not ~7500.
2014-04-01Extract tag and checksum selection from DSL methodJack Nagel
2014-04-01Remove now unnecessary branching from bottle DSL methodsJack Nagel
2014-04-01Stop jumping through hoops to get at the collector objectJack Nagel
2014-03-18Set bottle download strategy directlyJack Nagel
We know what strategy we want, so going through DownloadStrategyDetector is wasted work. Now we can remove those patterns from the detector and have two fewer branches each time through.
2014-03-14Detect build-time deps from resource downloadsJack Nagel
2014-03-13Enable new patch implementation with compatibility layerJack Nagel
2014-03-13New patch implementation and DSLJack Nagel
This commit introduces a new patch implementation that supports checksums and caching. Patches are declared in blocks: patch do url ... sha1 ... end A strip level of -p1 is assumed. It can be overridden using a symbol argument: patch :p0 do url ... sha1 ... end Patches can be declared in stable, devel, and head blocks. This form is preferred over using conditionals. stable do # ... patch do url ... sha1 ... end end Embedded (__END__) patches are declared like so: patch :DATA patch :p0, :DATA Patches can also be embedded by passing a string. This makes it possible to provide multiple embedded patches while making only some of them conditional. patch :p0, "..."
2014-03-13Set bottle name so `brew fetch --retry` worksJack Nagel
2014-03-13Revert "software_spec: set a name for bottles."Mike McQuaid
This reverts commit 7cdcd13aa08ed91a73837b73dc185ad9147f7130.
2014-03-13software_spec: set a name for bottles.Mike McQuaid
Avoids errors on `brew fetch --retry` with bottles.
2014-03-10Wrap cellar compatibility check in a methodJack Nagel