aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
AgeCommit message (Collapse)Author
2013-09-03brew search <user>/<repo> [substring]Samuel John
For example `brew search homebrew/science` to get a list of all formulae from that tap, even if not yet tapped. `brew search <user>/<repo>/<substr>` or `brew search <user>/<repo> <substr>` to grep for `<substr>` inside of the tap `<user>/<repo>`.
2013-09-03doctor: be more helpful with suggestion about PATHSamuel John
- Show a one liner that will append to the user's ~/.bash_profile. In 95% this will be ok and we assume zsh people are smart enough to know what they have to do.
2013-09-03PythonInstalled: Allow formulae to set/append PYTHONPATHSamuel John
Improve robustness of `PYTHONPATH` by first unsetting it (during `satisfy`) so that the `PythonInstalled` can get the `python.version` and so forth and then, after that, setting the `PYTHONPATH` to our `global_site_packages`. In the `python_helper` we append to the `PYTHONPATH` so if that var has been set in a formula, it is respected. Brew audit does no longer complain about setting the `ENV['PYTHONPATH']`.
2013-09-03PythonInstalled: Adding a private_site_packagesSamuel John
that live in the `libexec` dir of a `Cellar`.
2013-09-03python_helper: Comment wordingSamuel John
2013-09-02Formula: record full path to non-core formulaMisty De Meo
If a formula is passed with a relative path, the build process might try to expand it in the wrong directory, where it doesn't exist. Fixes #22266.
2013-09-01Remove attr_rw for CompilerFailure version attributeMisty De Meo
This reverts commit 7db9ef9650a44ef8155bf66efd88703e580057b0.
2013-09-01CompilerFailure: specify attr_rw for versionMisty De Meo
2013-09-01Remove HOMEBREW_CC warning from ENV.compilerMisty De Meo
ENV.compiler is called outside setting up the build environment, where values unsupported for user input might have been specified - for example, GNU GCC executables.
2013-09-01Check dependencies for a compatible C++ stdlibMisty De Meo
There are now a few possible C++ standard libraries a given build could be using, with subtle incompatibilities and possibility of breakage when mixed. This makes sure that the dependency chain was compiled in a compatible manner. Fortunately all of the Apple compilers use the same libstdc++, and we don't yet support building with libc++, so this will primarily only nag users trying to use GNU gcc who already have software installed with Apple compilers. Future TODOs: * Add general support for building with libc++ (compatibility checking already handled here) * Possibly track formulae which actually build C++ bindings, so that users aren't bothered by spurious nagging re: interpreted languages, pure-C software, etc.
2013-09-01Tab: track C++ stdlib in useMisty De Meo
There are subtle incompatibilities between Apple's libstdc++ and the libstdc++ used by the various GNU GCC formulae. In addition, we'll likely also be supporting libc++ in the future, and that's also incompatible with the other stdlibs. Tracking it in the tab lets us make sure that dependencies are all built against the same stdlib to avoid subtle breakage.
2013-09-01Move Tab creation into build processMisty De Meo
The parent process doesn't have access to the selected compiler, which will be important in the next commit. Fortunately the child process already has a filtered and massaged ARGV, so it has enough information to build the tab itself.
2013-09-01Implement fails_with for non-Apple compilersMisty De Meo
This adds support for non-Apple GCC compilers in the fails_with code. A fails_with block for a non-Apple compiler looks like: fails_with :gcc => '4.8.1' do cause 'Foo' end Non-Apple compilers don't have build numbers, so compiler failures are based on version strings instead. Internally non-Apple compilers can be distinguished because they are passed around as strings instead of symbols. In addition, this alters the priority list for compilers, with the following changes: * Apple GCC 4.2 and LLVM-GCC swap positions, with GCC now taking priority. (Maybe LLVM-GCC should just go away.) * Non-Apple GCC compilers are ranked below GCC 4.2 but above LLVM-GCC and Apple GCC 4.0.
2013-09-01Provide reusable GNU GCC constants in ENVMisty De Meo
2013-09-01Experimental support for non-Apple GCCsMisty De Meo
2013-09-01formula_installer: handle post_install exceptions.Mike McQuaid
Warn users and point them to `brew postinstall` (which can provide a backtrace). Closes #21887.
2013-09-01brew-postinstall: add new command.Mike McQuaid
Runs post-install jobs in case they failed or need rerun for any reason.
2013-09-01brew-reinstall: don't list --force in args.Mike McQuaid
2013-09-01brew-reinstall: don't try and rebuild bottles.Mike McQuaid
2013-09-01Allow forcing bottle installation.Mike McQuaid
2013-08-31Add test for option description rulesJack Nagel
2013-08-31Push dependency option generation into BuildOptionsJack Nagel
2013-08-31Add test for dependency optionsJack Nagel
2013-08-31Workaround for debrewAdam Vandenberg
See #21720.
2013-08-30ENV: only set fortran flags in one placeJack Nagel
2013-08-30ENV: use fc accessorJack Nagel
2013-08-30Fix conditional in ENV.fortranJack Nagel
2013-08-30ENV: use cflags setterJack Nagel
2013-08-30ENV: use cc accessorJack Nagel
2013-08-30ENV: add cc and cxx settersJack Nagel
2013-08-30Simplify handling custom FCFLAGSJack Nagel
2013-08-30Remove PATH hack from ENV.fortranJack Nagel
2013-08-30Show list of dependencies prior to installing themkaizoku
Closes #22205. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-08-30Use system path for more tools, for Linux compat.Dan Hughes
Closes #22196. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-08-30Fix wrong assumption in MacOS::Xcode.without_clt?Jack Nagel
Fixes #22221.
2013-08-30Unify compiler selection logicMisty De Meo
This unifies the logic for selecting a compiler between superenv and stdenv. A variation of superenv's `determine_cc`, which now returns a symbol, has been moved into the shared ENV extension. Stdenv uses the result of this directly (as it's always used symbols), while superenv translates that back into a compiler string. This also has the effect of disabling HOMEBREW_USE_(gcc|llvm|clang) in stdenv, which have already been marked as deprecated for some time, and enables the HOMEBREW_CC= environment variable syntax from superenv in stdenv.
2013-08-30Add --cc= syntax for selecting compilersMisty De Meo
2013-08-29universal_archs returns ArchitectureListExtensionShaun Jackman
Closes #22210. Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
2013-08-29Remove default values from ENV.{cc,cxx}Jack Nagel
Closes #22138.
2013-08-29Allow conflicts_with to accept multiple formula namesJack Nagel
Closes #22202.
2013-08-28Check for valid --bottle-arch= when buildingMisty De Meo
2013-08-28Allow building bottles with custom architecturesMisty De Meo
This allows overriding the "oldest CPU" behaviour - for instance, to build Intel bottles for a newer CPU than Core 2, to build a PPC bottle with or without Altivec on the same computer, etc.
2013-08-28cleaner: don't change permissions on paths marked skip_cleanJack Nagel
2013-08-28Don't consider files in the Cellar as RacksSamuel John
Otherwiese a `Cellar/.DS_Store` may lead to an error about `.ds_store.rb` not found during `brew upgrade`.
2013-08-27PythonInstalled: set PYTHONPATH, not prependSamuel John
An issue could arise when brewing a formula that has Python 2.x and 3.x support and 2.x is the system Python but 3.x is a brewed one. The idea about prepending was that user configured PYTHONPATH could be used in formulae. Now, instead and if needed, inside the `python do` block one can still append to PYTHONPATH.
2013-08-27PythonInstalled, name includes modulesSamuel John
If `depends_on :python => ['modulename', :optional]` then the generated option is now `--with-python-modulename`, so that it is possible to actually make depending on python modules optional. Further, `brew options` becomes more meaningful.
2013-08-26Simplify conditionJack Nagel
2013-08-26Prefer interpolation to concatenationJack Nagel
2013-08-26Only perform coercion to string once in ENV.{append,prepend}Jack Nagel
2013-08-26Add some tests for ENV.{append,prepend} behaviorJack Nagel