aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/extend
AgeCommit message (Collapse)Author
2014-04-23shared: don't warn about non-Apple compilers now.Mike McQuaid
2014-04-22Only directories are candidates for superenv binJack Nagel
2014-04-22Simplify conditions for superenv activationJack Nagel
`MacOS::Xcode.without_clt? && MacOS.sdk_path.nil?` should never be true. In its earliest form, this would raise a bare RuntimeError in an effort to have the bug reported. Later, it was changed to silently disable superenv. But we don't want to do that. If there's a bug, or the user's system is misconfigured, we want to know, so that we can fix the bug, or the user can fix their system. So let's remove the condition.
2014-04-21Rework make_relative_symlink error handling and move it into kegJack Nagel
2014-04-20Remove obsolete DEVELOPER_DIR hacksJack Nagel
These days Homebrew refuses to do anything if the xcode-select path is busted, so this workaround is unnecessary.
2014-04-14Use quiet_system to silence some useless warningsJack Nagel
2014-04-14Remove overzealous exceptionsJack Nagel
2014-04-06Recognize and extract xar filesJack Nagel
2014-04-06pathname: use ln_sf in install_symlink.Mike McQuaid
Closes #28136.
2014-04-06Handle untarred bzip2 filesJack Nagel
Fixes #28187.
2014-04-06Use a case statement in Pathname#compression_typeJack Nagel
2014-04-05Remove obsolete guards around canonical_name return valueJack Nagel
2014-04-05Avoid realpath where it is not necessaryJack Nagel
Symlinks in opt and LinkedKegs point directly at a keg in the cellar, so only resolving one symlink should suffice, and make it clear what path we are actually interested in.
2014-04-04Clean up some concatentation inside interpolationJack Nagel
2014-04-040644 is not executableJack Nagel
2014-03-28Add ENV.refurbish_args helperMisty De Meo
Rationale: our arg refurbishment is normally only turned on when called via the `make` wrapper, for compatibility reasons. However, there are numberous places we'd like this to be turned on elsewhere, like software that builds via `python setup.py` where bad flags from the system python can be pulled in. This helper appends 'O' to CCCFG, which enables refurbishment for all calls of the compiler shims.
2014-03-27Return early so we can reduce nesting of conditionalsJack Nagel
2014-03-27Fix overly defensive handling of src parameter in make_relative_symlinkJack Nagel
This method is for internal use only. It is unsuitable for use in formulae, which should use install_symlink to create relative symlinks. Thus callers are required to pass a Pathname, not a string, and we can remove this conditional. Further, if src is not absolute, then src.relative_path_from(dirname) will fail. All callers currently pass absolute pathnames. Therefore we don't need to call expand_path when printing it.
2014-03-27extend/string: backport #rpartitionMisty De Meo
2014-03-27Don't let broken symlinks halt linkingJack Nagel
2014-03-27Fix conflicting symlink adviceJack Nagel
Closes #27899.
2014-03-26Fall back to Process.gid if we aren't a member of the file's groupJack Nagel
2014-03-26Put tempfile into binmode before writingJack Nagel
2014-03-22Preserve permissions when using Pathname#atomic_writeJack Nagel
2014-03-22Remove unnecessary swearing.Mike McQuaid
2014-03-19Expand paths before making relative symlinkJack Nagel
Fixes #27702. Fixes #27704.
2014-03-18Make relative symlinks in Pathname#install_symlinkJack Nagel
Closes #27672.
2014-03-15Prefer opt prefix over linked keg entry when picking active kegJack Nagel
2014-03-15Add an extra sanity checkJack Nagel
2014-03-15Refactor ARGV.kegsJack Nagel
2014-03-15Use canonicalized name in NoSuchKegError messageJack Nagel
cf. #22778.
2014-03-14Use Formula#system and existing error handling in scons helperJack Nagel
Fixes #27553.
2014-03-13Use ARGV.envJack Nagel
2014-03-13Simplify ARGV.filter_for_dependenciesJack Nagel
2014-03-13Make debug an installer modeJack Nagel
2014-03-13Make verbose an installer modeJack Nagel
2014-03-13Make interactive an installer modeJack Nagel
2014-03-13Add ARGV.envJack Nagel
2014-03-10Reduce the number of things that trigger ARGV.build_from_source?Jack Nagel
The newly generalized bottle implementation removes the need to defensively check for --devel, --HEAD, and others in this method.
2014-03-10Make build_bottle an explicit installer modeJack Nagel
2014-03-08Remove "--fresh" option from installerJack Nagel
Turns out that this doesn't really work at all. `brew install` _never_ reuses options in the first place, and using this option with `brew upgrade` results in some nasty corner cases in passing options to dependencies.
2014-03-08Symbol#to_proc: fix with arrays of arraysMisty De Meo
Previously, with nested arrays, the Symbol#to_proc would iterate over the first item in the nested array instead of the array itself, e.g.: [[1,2], [3,4]].map(&:first) #=> NoMethodError: undefined method `first' for 1:Fixnum
2014-03-08Revert "ENV: request no byte code Python when bottling."Mike McQuaid
This reverts commit b603c96276cf7fe1417d2355eebc47fb15da0b8c.
2014-03-02ENV: request no byte code Python when bottling.Mike McQuaid
2014-02-28move scons helper to fileutilsAdam Vandenberg
2014-02-27Add an xcodebuild helper and deprecate system "xcodebuild"Jack Nagel
In the future we can remove the ENV munging branch from Formula#system. Closes #27081.
2014-02-19Fix building universal binaries on 32-bit CPUscadrpear
[jn: style, update comment] Closes #25728. Fixes #26834. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2014-02-18Stop exporting HOMEBREW_VERBOSE to build environmentJack Nagel
This flag no longer affects the output of the compiler wrappers, since everything is buffered by the build process rather than each individual tool. Additionally, this is a user-facing knob that affects ARGV.verbose?, and the combination of these two issues broke the --quieter feature.
2014-02-18Inline static exception text to remove a rescueJack Nagel
2014-02-14ARGV.help?: anchor to end of stringMisty De Meo
Fixes #26735.