aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/formula.rb
AgeCommit message (Collapse)Author
2015-11-16add Formula#pinned_versionXu Cheng
2015-11-11Formula.racks: exclude empty rackXu Cheng
Fixes https://github.com/Homebrew/homebrew-bundle/issues/121 Closes Homebrew/homebrew#45879. Signed-off-by: Xu Cheng <xucheng@me.com>
2015-11-08set up Python sys.path from install HOMETim D. Smith
Necessary to allow system Python to find Python modules installed by Homebrew. Closes Homebrew/homebrew#45076. Fixes Homebrew/homebrew#43919. Probably fixes Homebrew/homebrew#44813.
2015-11-01formula.rb: define `elisp` and `opt_elisp`Alex Dunn
Closes Homebrew/homebrew#45567. Signed-off-by: Alex Dunn <dunn.alex@gmail.com>
2015-11-01add Formula#bottle_defined?Xu Cheng
2015-10-24formula: update bottle criteria explanationDominyk Tiller
2015-10-19Formula: add bottle disable DSLXu Cheng
2015-10-14FormulaValidationError: include full_nameBaptiste Fontaine
Closes Homebrew/homebrew#44946. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2015-10-14add Formula#aliasesXu Cheng
Fixes Homebrew/homebrew#44331. Closes Homebrew/homebrew#44709. Signed-off-by: Xu Cheng <xucheng@me.com>
2015-10-14add alias_table and alias_reverse_table for core and tapXu Cheng
2015-10-14add Formula.core_alias_filesXu Cheng
2015-10-08handle TapFormulaWithOldnameAmbiguityErrorXu Cheng
Closes Homebrew/homebrew#44705. Signed-off-by: Xu Cheng <xucheng@me.com>
2015-10-07link_overwrite if the owning keg no longer existsRobin Neatherway
2015-09-30cache tapsXu Cheng
There are plenty of IO operations inside Tap object, and it will be more when implementing formula alias reverse look up(e.g. list all of alias names for a formula). So let's cache them. Some benchmark: $ time brew info $(brew ruby -e 'puts Formula.tap_names') > /dev/null Before: 6.40s user 2.42s system 96% cpu 9.134 total After: 4.75s user 0.77s system 97% cpu 5.637 total Closes Homebrew/homebrew#44377. Signed-off-by: Xu Cheng <xucheng@me.com>
2015-09-24Formula#system: fix log output for travisXu Cheng
2015-09-23Formula#system: print dot for travisXu Cheng
2015-09-23formula: increase fail log lines, allow config.Mike McQuaid
The default is almost never useful. 15 seems like a good medium as it'll not fill a 80x24 default but provides a bit more context. Also allow it to be overriden for developers and `test-bot`.
2015-09-13Formula: add alias_full_namesXu Cheng
2015-09-13Formula#core_names: use core_filesXu Cheng
2015-09-13uniq before sortXu Cheng
http://blog.askit.org/post/18152870794/performance-of-sortuniq-vs-uniqsort
2015-09-13Formula#to_hash: add bottle infoXu Cheng
Closes Homebrew/homebrew#43848. Signed-off-by: Xu Cheng <xucheng@me.com>
2015-09-13Formula: add tap aliasXu Cheng
Closes Homebrew/homebrew#43851. Signed-off-by: Xu Cheng <xucheng@me.com>
2015-09-06remove Formula#file_modified?Alex Dunn
It's been more trouble than it's worth. Fixes Homebrew/homebrew#43607. Closes Homebrew/homebrew#43049. Closes Homebrew/homebrew#43615. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-09-02Formula#file_modified?: use Utils.git_available?Xu Cheng
2015-08-29More API documentation.Mike McQuaid
And remove the documented stuff from the `example-formula.rb`. Closes Homebrew/homebrew#43241. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-08-25Formula#file_modfiled?: remove unnecessary git dir checkXu Cheng
It's already covered by `$?.exitstatus == 0` in below.
2015-08-25formula: use which over locateDominyk Tiller
2015-08-24Formula#file_modified?: fix for Xcodes without gitMisty De Meo
Fixes Homebrew/homebrew#43206.
2015-08-23add link_overwrite DSLXu Cheng
Sometimes we accidentally install files outside prefix. After we fix that, users will get nasty link conflict error. So we create a whitelist here to allow overwriting certain files. e.g. link_overwrite "bin/foo", "lib/bar" link_overwrite "share/man/man1/baz-*" During FormulaInstaller#link, the whitelist conflict files will be backup into HOMEBREW_CACHE/Backup
2015-08-21Merge bottle install without Xcode branchMisty De Meo
Merge branch 'bottle_hooks'
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-20also lock oldname when appliedXu Cheng
2015-08-18unnecessary calls to .select simplifiedBaptiste Fontaine
These are minor perf optimizations. Closes Homebrew/homebrew#43028. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2015-08-14add Formula.racksXu Cheng
Also exclude symlink when enumerating installed racks.
2015-08-10formula: add oldname methodVlad Shablinsky
- add Formula#oldname to get oldname for formula - add formula_renames.rb to store information about formula renames
2015-08-06favor flat_map over map...flattenXu Cheng
2015-08-03Core files style updates.BrewTestBot
Closes Homebrew/homebrew#42354. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-08-01formula: define opt_pkgshare helper method.Dominique Orban
Closes Homebrew/homebrew#42023. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-08-01enumerate all formulae by files rather than namesXu Cheng
Before ``` $ time brew readall brew readall 10.63s user 0.36s system 99% cpu 11.003 total ``` After ``` $ time brew readall brew readall 5.62s user 0.24s system 99% cpu 5.859 total ``` Closes Homebrew/homebrew#42302. Signed-off-by: Xu Cheng <xucheng@me.com>
2015-07-31Formula: add set_acitve_spec methodXu Cheng
2015-07-31Formula: add any_version_installed? methodXu Cheng
2015-07-31Formula#installed_prefix: use PkgVersionXu Cheng
Also check stable_prefix when current acitve_spec is not :stable
2015-07-31Formula#pkg_version: return the result based on current active_specXu Cheng
2015-07-31Formula: add active_spec_symXu Cheng
2015-07-29Revert "formula: create empty zshrc when zsh is shell"Xu Cheng
This reverts commit be55c800d0bf2750902df71d092906b49b49ffce.
2015-07-24formula: create empty zshrc when zsh is shellDominyk Tiller
One minor consequence of our seizing of the HOME variable during builds for sandboxing purposes is that if you're doing an interactive or git installation zsh flags up that it hasn't found any config files and throws you into the `zsh-newuser-install` area. Not really a problem, just a nuisance. Since the check is just for existence rather than content, we can work around this by creating an empty config file when the `SHELL` environmental variable includes zsh.
2015-07-22tests: fix patching test for no-compat modeXu Cheng
Closes Homebrew/homebrew#41977. Signed-off-by: Xu Cheng <xucheng@me.com>
2015-07-21move deprecated codes into compatXu Cheng
Closes Homebrew/homebrew#41974.
2015-07-18formula: always override user homeDominyk Tiller
Closes Homebrew/homebrew#40444. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-07-18fetch/build formula from source when modifiedAlex Dunn
closes Homebrew/homebrew#36068 Closes Homebrew/homebrew#41397. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>