aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
AgeCommit message (Collapse)Author
2013-06-18Linking Frameworks correctly if multiple.Samuel John
For example python and python3 both provide a `Python.framework` and OS X Frameworks are made to deal with this by putting them into `Versions` and linking the default one as `Current`. However, brew did not respect this and cleaned out stuff making neither of the two versions work because `Current` is replaced by an empty directory. This commit fixes that. However, still one of the two `Python.frameworks` has to remove it's `Current` and `Headers` links, because brew cannot decide alone which one is the "default" and allowed to set the `Current` link. A similar situation might apply to Qt 4 vs. 5..
2013-06-18Python module deps, ext. python fix and 10.6 fixSamuel John
* Fixes #20572 by tweaking the logic that decides which python is used by the `python` object inside a formula. There was a bug when on 10.6 there is no Python 2.7 but a :recommended Python was still treated as being available. * Use the user's PATH when looking for an external Python. Until now only brewed or OS X system's python have been found by `depends_on :python`. But now we support any Python in PATH (e.g. pyenv's python). * Further, instead of handling python modules and import tests in LanguageModuleDependency, these are now handled by: depends_on :python => 'numpy' # for example The old style depends_on 'numpy' => :python is still supported and is only an alias for the newer style (only for :python, the other languages are not altered by this commit). The reasoning is that if a formula requires a python module, it basically also needs python itself - and further that specific version of python has to provide the module. So the `PythonInstalled` is the natural place to check for the availability of a python module. Using a python module and other tags like :optional or :recommended is done like so: depends_on :python => [:optional, 'numpy'] Specifying another PyPi (Python Package index) name than the module import name is seldom used but supported, too: depends_on :python => ['enchant'=>'pyenchant'] A last note: For clarity, you can define multiple depends_on statements with different modules to be importable.`
2013-06-17Fix Xcode builds on 10.9.Clemens Gruber
CLT-only builds are still broken and need to be fixed at some point. Closes #20524. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2013-06-16Add minimum OS X version requirementAdam Vandenberg
Closes #19998. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-06-15Simplify regexp matchJack Nagel
2013-06-15These also get coerced to stringsJack Nagel
2013-06-15Push MacOS.cat logic down into MacOS::VersionJack Nagel
2013-06-15Add MacOS::Version.from_symbolJack Nagel
2013-06-15Avoid unnecessary float to string conversionJack Nagel
2013-06-14Run tests under actual OS versionJack Nagel
2013-06-14Simplify setting MACOS_VERSIONJack Nagel
2013-06-14Pass these as strings, they get converted anywayJack Nagel
2013-06-14Remove Version#to_a aliasJack Nagel
Exposing this as "to_a" was a mistake, versions are not arrays and it causes incorrect behavior when splatted or using Kernel#Array(). Use the more correct name "tokens" instead.
2013-06-14Fix pretty namesAdam Vandenberg
2013-06-14Move pretty_name into MacOS::VersionAdam Vandenberg
Closes #20507. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-06-14Fix another constant referenceJack Nagel
2013-06-14Fix constant referenceJack Nagel
2013-06-14Favor compound if over compound unlessJack Nagel
2013-06-14Use ||= instead of unlessJack Nagel
2013-06-14Remove outdated commentJack Nagel
2013-06-14Assign this inlineJack Nagel
2013-06-14Delete rather than assign nilJack Nagel
2013-06-14Simplify nested conditionalJack Nagel
2013-06-14Use has_key? rather than accessing the valueJack Nagel
2013-06-14Rename single-letter variableJack Nagel
2013-06-14Make flag lists into constantsJack Nagel
2013-06-14ENV: clean up set_cpu_flags and set_cpu_cflags usageJack Nagel
2013-06-14Use Hardware::CPU moduleJack Nagel
2013-06-14Freeze optimization flags hash rather than duping itJack Nagel
2013-06-13Xcode 4.6.3Jack Nagel
2013-06-13ScriptFileFormula: remove override warningAdam Vandenberg
Closes #20445.
2013-06-13superenv: apply apr-1-config fix to 10.8+Clemens Gruber
Fixes #20417. Closes #20474. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2013-06-13Fix bug in `brew list --pinned`Simon Sigurdhsson
Pinned formulae which were pinned at a previous version but then upgraded would not be listed by `brew list --pinned`. This is due to the good old "File.exist? thinks broken symlinks don't exist" gotcha, so the test in the select block in list_pinned has been changed to check if the pin file exists _or_ is a symlink. Closes #20423. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2013-06-12Remove unused variableJack Nagel
2013-06-12Rename variables for clarityJack Nagel
2013-06-12Extract search_taps methodJack Nagel
2013-06-12Pull tap list into a constantJack Nagel
2013-06-12Remove use of global variableJack Nagel
2013-06-12Rename methodJack Nagel
2013-06-12Extract query constructionJack Nagel
2013-06-12Use inspect instead of escaping quotesJack Nagel
2013-06-12Move require out of methodJack Nagel
2013-06-12install: remove overcautious array manipulationJack Nagel
2013-06-11Fix version misdetection from fa582cb9ac65Jack Nagel
2013-06-11Check method existence rather than Ruby versionJack Nagel
2013-06-11FormulaInstaller: ensure locks are always releasedJack Nagel
2013-06-11Recognize OS X 10.9 and Xcode 5.0Clemens Gruber
Closes #20410. Closes #20401. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2013-06-11Add doctor check for OS X > 10.8Jack Nagel
2013-06-11doctor: add check for osx-gcc-installerMisty De Meo
This might not detect all cases, but should detect the two most common ones.
2013-06-10Cast deps to formula before passing them to superenvJack Nagel
Dependency names retain the "tap prefix", e.g. the "homebrew/dupes" part of "homebrew/dupes/zlib". However formula objects do not, and this is desired because we do not record the tap name as part of the installation prefix. So we need to ensure the correct dep names are passed to superenv, otherwise it will not add the correct directories to various environment variables.