aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/formula.rb
AgeCommit message (Collapse)Author
2015-06-21Formula: cache methods' output to reduce ioXu Cheng
Closes Homebrew/homebrew#40855. Signed-off-by: Xu Cheng <xucheng@me.com>
2015-06-17Add opt_frameworks helperJack Nagel
2015-06-16Rename requirements named *Dependency.Mike McQuaid
Dependency is another similar, related class and it's super confusing to have some Requirements that are named *Dependency. Closes Homebrew/homebrew#38891. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-06-11remove Pathname#find_formulaXu Cheng
Closes Homebrew/homebrew#40486. Signed-off-by: Xu Cheng <xucheng@me.com>
2015-06-07formula#to_hash: record requirementsXu Cheng
Closes Homebrew/homebrew#40451. Signed-off-by: Xu Cheng <xucheng@me.com>
2015-06-02Add support for fish shell completionsJohannes Wienke
* Library/Homebrew/caveats.rb: add caveats comparable to other shells * Library/Homebrew/formula.rb: define completion directory along the conventions explained in the fish documentation for $fish_complete_path * Library/Homebrew/keg.rb: add fish shell to check function for installed completions Closes Homebrew/homebrew#39828. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-05-29Formula: add full_name variableXu Cheng
2015-05-27Formula#installed: loading using Formulary.from_rackXu Cheng
Also handle TapFormulaAmbiguityError
2015-05-27add Formula.core_names Formula.tap_names and Formula.full_namesXu Cheng
2015-05-27add Formulary.core_path method, deprecate Formula.pathXu Cheng
2015-05-25Add a desc field to FormulaNikolaus Wittenstein
2015-04-25Add Formula#logsJack Nagel
2015-04-12formula: add more API docs for directories.Mike McQuaid
Closes Homebrew/homebrew#38571.
2015-04-09cmake: adjust standard built typeDominyk Tiller
Moves from None to Release, but comments out the standard release CFLAGS so we can continue using our own. Bumped Libgit2 as an example/test to play with. Closes Homebrew/homebrew#37332, hopefully. Closes Homebrew/homebrew#37361. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-04-09Keep Homebrew site-packages in sys.path during brew testTim D. Smith
Formulas that build python things and which are tested with system Python will encounter test failures unless system Python is configured to add Homebrew's site-packages to sys.path. This change makes sure that configuration is performed in the test environment. Both lines are needed; the first reads and processes .pth files and the second makes sure that Homebrew's site-packages is read before the system extras, so that formulas depending on Homebrew/python/numpy get the Homebrew/python version and not the old system version. Closes Homebrew/homebrew#38466.
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-14Switch to a more useful serialization of tap infoJack Nagel
Closes Homebrew/homebrew#37383.
2015-03-04move formula_specialties to compatXu Cheng
Closes Homebrew/homebrew#37365. Signed-off-by: Xu Cheng <xucheng@me.com>
2015-02-19ruby 1.8 doesn't have `sort_by!`Xu Cheng
Closes Homebrew/homebrew#36935 Closes Homebrew/homebrew#36936. Signed-off-by: Xu Cheng <xucheng@me.com>
2015-02-13Move "path or URL" tap string to global constant.Mike McQuaid
2015-02-08cmd/info: prevent duplicate dependency display.Xu Cheng
Before: $ brew info llvm ==> Dependencies Build: xz ✔, xz ✔, xz ✔, xz ✔, xz ✔, xz ✔ $ brew info --json=v1 llvm ... "dependencies":["xz","xz","xz","xz","xz","xz"], ... After $ brew info llvm ==> Dependencies Build: xz ✔ $ brew info --json=v1 llvm ... "dependencies":["xz"], ... Closes Homebrew/homebrew#36653. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-02-07formula: sort installed version in to_hashXu Cheng
https://github.com/Homebrew/homebrew-brewdler/pull/43#discussion_r24248760 Closes Homebrew/homebrew#36611. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-02-07Save and restore build attributeJack Nagel
This probably doesn't matter in practice, but I don't want to take any chances.
2015-02-07Always respect build options when invoking post_installJack Nagel
Fixes Homebrew/homebrew#36335.
2015-02-07Use a local instead of an instance variableJack Nagel
2015-01-22Remove unnecessary early returnJack Nagel
Iterating over an empty list is a no-op so we can remove this early return.
2015-01-22Hide "Patching" message when there aren't any patchesJack Nagel
2015-01-22Use formula patches accessorJack Nagel
2015-01-20Expose bottle details on the formula objectJack Nagel
Fixes Homebrew/homebrew#36032.
2015-01-12Omit post-install warning unless formula defines itJack Nagel
Closes Homebrew/homebrew#34744.
2015-01-09formula: set HOME to testpath in tests.Mike McQuaid
2015-01-04Include selected spec in Formula#inspectJack Nagel
2015-01-04Make active_spec protectedJack Nagel
2015-01-04Doc most DSL methods as write-onlyJack Nagel
The public readers for these attributes are on the instance, not the class.
2015-01-04Fix markupJack Nagel
2015-01-04Top-level DSL methods only manipulate the stable specJack Nagel
2014-12-30Use block-form of File.openJack Nagel
2014-12-30Log build environment on failureJack Nagel
2014-12-30Always dump full configurationJack Nagel
2014-12-27One less external call to #active_specJack Nagel
2014-12-26Decouple applying patches from staging the sourceJack Nagel
2014-12-26Finally stop exposing url on FormulaJack Nagel
2014-12-26Unroll validation loopJack Nagel
2014-12-26Overriding #initialize is not supported, so drop late validationJack Nagel
2014-12-26formula: add/improve more API docs.Mike McQuaid
Closes Homebrew/homebrew#35266.
2014-12-26Fix method redefinition warningJack Nagel
test_defined? gets defined in the method_added hook.
2014-12-22The class-level keg_only_reason is private APIJack Nagel
2014-12-22Use "@api private" instead of "@private"Jack Nagel
http://www.rubydoc.info/gems/yard/file/docs/Tags.md#private http://www.rubydoc.info/gems/yard/file/docs/Tags.md#api
2014-12-20Typo in skip_clean? documentationBaptiste Fontaine
Closes Homebrew/homebrew#35142. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2014-12-12Formula#install has public visibilityJack Nagel
It is called with an explicit receiver in build.rb, so the base class method should also be public.