aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/language
AgeCommit message (Collapse)Author
2016-09-23Fix Style/IfUnlessModifier.Markus Reiter
2016-09-17rubocop --auto-correct all hash-rocket usage.Mike McQuaid
2016-09-10language/python_virtualenv_constants: fix Rubocop warnings.Mike McQuaid
2016-09-10language/python: fix Rubocop warnings.Mike McQuaid
2016-09-10language/node: fix Rubocop warnings.Mike McQuaid
2016-09-10language/haskell: fix Rubocop warnings.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-08-02python: tweak script linking in virtualenv (#613)Martin Afanasjew
* python: tweak script linking in virtualenv Instead of making the formula author use a slightly awkward block like venv.link_scripts(bin) { venv.pip_install buildpath } avoid exposing this implementation detail and offer the more familiar: venv.pip_install buildpath, :link_scripts => bin * Add non-block form and use instead of recursion * Update 'pip_install' documentation * Remove obsolete 'link_scripts' * Add test for 'pip_install' with linking scripts Also drop no longer relevant (and broken) `link_scripts` test, that served as a template for the new test. * Restore compatibility with Ruby 1.8.7 * Replace option hash with 'pip_install_and_link' * Avoid confusing 'Object#tap' and fix silly bug * Avoid side effects in mock object parameter check * Simplify argument check (no need for a block)
2016-07-31Allow virtualenvs to find Python bindings provided by deps (#608)Tim D. Smith
Allow virtualenvs to find Python bindings provided by deps Closes #603.
2016-07-29Refurbish args in virtualenv (#600)Tim D. Smith
Instead of adding additional lines to formula.rb: https://git.io/vKxxh just turn on argument refurbishment for any formula that creates a virtualenv. cf Homebrew/ruby-macho#50, Homebrew/homebrew-core#1663
2016-07-26Add helper class for Python virtualenvsTim D. Smith
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-10languages/go: die on empty arrays if HOMEBREW_DEVELOPERDominyk Tiller
2016-07-09language/python: fix bogus requireMartin Afanasjew
Including the extension is not an error, but we don't normally do this.
2016-05-21Haskell::Cabal: fix overquoting of flagsilovezfs
Since `system` escapes its own spaces, cabal was interpreting `--flags='webapp s3'` as `+'webapp +s3'` rather than `+webapp +s3`. Closes #267. Signed-off-by: ilovezfs <ilovezfs@icloud.com>
2016-05-02Update Homebrew/homebrew references in commentsMartin Afanasjew
Replace `homebrew` with `brew`, `homebrew-core`, or `legacy-homebrew` depending on context.
2016-04-27Language::Node.npm_install_args: add helper method (#37)Christian Moritz
* add Language::Node helper module This adds a language module for Node module based formulas. It contains the 2 public methods `std_npm_install_args(libexec)` and `local_npm_install_args`: * `std_npm_install_args` is intended to be used in formulas for standard node modules and returns `npm install` args for a global style module installation to libexec. * `local_npm_install_args` is for formulas, in which the `npm install` step is only one of multiple parts of the installation process and returns `npm install` args for a default local installation in place. Both methods have in common, that they are * making sure that a working copy of npm and node-gyp from node's libexec is prepended to the PATH (to not rely of a user managed npm) * seting the npm cache to HOMEBREW_CACHE/npm, which fixes issues caused by overriding $HOME resulting in long install times + high disk usage (see https://github.com/Homebrew/brew/pull/37#issuecomment-208840366) * audit: update npm install check for Language::Node * cleanup: remove npm_cache too * doc: add Node-for-Formula-Authors.md
2016-02-25Haskell: cap cabal-install make jobs at 64Misty De Meo
Fixes Homebrew/homebrew#49509. Closes Homebrew/homebrew#49511. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2016-02-22haskell: fix empty flags build failuresilovezfs
Fixes a regression introduced by Homebrew/homebrew#47950 in 9e3ee3e causing build failures with the error cabal: The file does not exist ''. This will occur whenever the optional :flags key isn't in the options hash passed to install_cabal_package. Closes Homebrew/homebrew#49425. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2016-02-22git-annex: force-enable "webapp" flagCedric Staub
To address issue Homebrew/homebrew#47346 (git-annex-webapp missing), we explicitly enable the "webapp" flag for git-annex. This should prevent git-annex from being built without the webapp and make the build fail if there is e.g. a dependency issue. Closes Homebrew/homebrew#47950. Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
2016-02-21go: warn about no-op stage_deps callsBaptiste Fontaine
Closes Homebrew/homebrew#49389. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2016-02-21Haskell#cabal_install more robust deps resolutionilovezfs
The default max-backjumps can be too low, especially since Language::Haskell::Cabal doesn't guarantee an LTS config. In particular, this fixes a git-annex build failure in Homebrew/homebrew#47950 Closes Homebrew/homebrew#49158. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2016-01-03languages/haskell: style nitsDominyk Tiller
2016-01-03language/haskell: wrap options in parensDominyk Tiller
Fixes: language/haskell.rb:65: warning: `*' interpreted as argument prefix
2015-12-30Haskell: call fails_with on correct objectMisty De Meo
Fixes Homebrew/homebrew#47533.
2015-12-25Improve Haskell language supportMiëtek Bak
Removes the need to call setup_ghc_compilers in every Haskell language formula, by automatically calling fails_with. Adds a :home option to the cabal_sandbox method. This option allows a specific temporary HOME to be used instead of the current working directory, and in turn allows a single Cabal package database to be reused between multiple calls to this method. Avoids updating the Cabal package database more than once if cabal_sandbox is called multiple times. Removes the need to call cabal_clean_lib whenever cabal_sandbox is called, by automatically cleaning the lib directory. Adds a :keep_lib option to the cabal_sandbox method. This option allows opting out of the automatic cleaning. Ensures build products are always removed from the current working directory. Removes a workaround for versions of cabal-install older than 1.20.0.0. Adds a cabal_sandbox_add_source method. Adds a :using option to the install_cabal_package method. This option allows specifying the Haskell language tools that are required to install a particular formula, and in turn allows formulae to be simplified by replacing calls to multiple methods with a single call to this method. Allows customizing the call to install_cabal_package by giving a block. Removes empty method shells. Closes Homebrew/homebrew#47293. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-12-07Overhaul, simplify and cleanup documentation.Mike McQuaid
Remove duplication, link to the API documentation more often, tweak wording, add `@UniqMartin` as a maintainer, note `@jacknagel`'s and `@adamv`'s significant past contributions to Homebrew, delete some outdated or unneeded documentation, add some missing `Formula` API. entries and simplify/improve `CONTRIBUTING.md`. Closes Homebrew/homebrew#46179. Closes Homebrew/homebrew#46618. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-08-03Core files style updates.BrewTestBot
Closes Homebrew/homebrew#42354. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-05-28Cabal: move fails_with to a class methodMisty De Meo
Fixes Homebrew/homebrew#39950.
2015-05-13ghc: cleanup/decruft.Geoff Nixon
- Fix static GMP - Remove --32-bit option (ghc 7.6 or newer is needed to build). - Building with llvm-gcc and 7.6.3 works on Snow Leopard and Lion. Closes Homebrew/homebrew#39134. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-03-13java overridable_java_home_envXu Cheng
Closes Homebrew/homebrew#37622
2015-03-03language/python: add package_available? helperTim D. Smith
Add helper to check whether a module is importable. Closes Homebrew/homebrew#37345. Signed-off-by: Tim D. Smith <git@tim-smith.us>
2015-02-28java: move java_dependency into a separate file and add ↵Xu Cheng
Language::Java.java_home_env Also update activemq to test against it Closes Homebrew/homebrew#37218. Signed-off-by: Xu Cheng <xucheng@me.com>
2015-01-17language/haskell: optionally add args to install.Mike McQuaid
2015-01-09language/python: add --no-user-cfg to setuptools optionsTim D. Smith
Closes Homebrew/homebrew#35681.
2014-12-10Language::Python.setup_install: add deprecation warningTim D. Smith
2014-12-10language/python: setup_install_argsTim D. Smith
Add a helper like std_cmake_args that returns the correct incantation for invoking setup.py in a consistent way and with our preferred arguments. Replaces setup_install.
2014-11-14language/python: make sure site_packages is writableTim D. Smith
2014-11-10language/python: new setup_install methodTim D. Smith
Closes Homebrew/homebrew#33988.
2014-11-02language/python: add helper methods for pth detectionTim D. Smith
2014-09-07Avoid intermediate arrayJack 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-06-22Move deprecated Formula class methods to compatJack Nagel
These have all been moved to Formulary.
2014-05-07git-annex: 5.20140421Gaëtan Lehmann
installing git-annex with cabal-install is quite long and requires to install some heavy packages. It also has several external lib dependencies and needs a few configuration flags to build so it is quite difficult to install too. This formula should make it easy and quick to install with a bottle. The huge number of haskell dependencies is built within the formula and statically linked to git-annex. The haskell libraries built are discarded - cabal-install should be used instead of this package in order to keep them.
2014-03-12Add Language::Python module.Mike McQuaid