aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/extend
AgeCommit message (Collapse)Author
2012-11-11Teach Pathname how to scan for metafilesAdam Vandenberg
2012-11-11Move vendored .pc files to ENVAdam Vandenberg
Closes #15961.
2012-11-06Inject framework paths into stdenv compiler flagsJack Nagel
2012-10-29Add support for 7zip archivesSijawusz Pur Rahnama
Closes #15723. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-10-27Pathname: add exec and jar helpersAdam Vandenberg
Closes #13318.
2012-10-25ComparableSet#merge returns selfJack Nagel
Set#merge is supposed to return self, and Formula#recursive_requirements depended on this being true. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-10-24Return the block value in ARGV.filter_for_dependenciesJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-10-20brew ln --force is now brew ln --overwriteMisty De Meo
* Renames --force to --overwrite, freeing up brew ln --force for #13349 * Changes --dry-run to preview linking by default, rather than overwriting. An overwrite dry-run can be simulated via both --dry-run --overwrite * Adds some basic Keg tests
2012-10-15Manage Requirements using ComparableSetMisty De Meo
ComparableSet only allows a single object of a given class, choosing the object with the greatest value. This was mainly created for Requirements, so that, e.g., two X11Dependencies of differing strictness don't both end up in the same requirement set. Fixes #15240.
2012-10-04Don't count mkpath in ObserverPathnameExtensionMisty De Meo
mkpathed directories aren't really "linked" or "unlinked" per se, and link/unlink handle directories differently. It's easier just to ignore them, which finally synchronizes link/unlink counts.
2012-09-30Don't use bottles for HEAD, devel or universal.Mike McQuaid
2012-09-28Fix ENV.fortran info textsMax Howell
They were being truncated.
2012-09-27Improve text_executable heuristicJack Nagel
Previously we detected this by reading the first line of the file. However, "first line" is meaningless when dealing with binary files, but IO#readline will happily keep reading until it finds a newline character, which can result in some unnecessarily large buffers. Aside from the performance issue, this causes an additional problem under Ruby 1.9: trying to match the binary string against a pattern will raise ArgumentError (unless the binary string just happens to also be valid UTF-8, heh). Fix both issues: only read the first 1024 bytes, as no sane shebang will ever be that long, and use a plain read(), which returns an ASCII encoded string even on 1.9. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-09-27FileUtils: backport #copy_metadata fixMisty De Meo
Entry_#copy_metadata has a nasty bug that makes copying symlinks across filesystems fail. This lasted all the way through 1.9.3p194 before *finally* being fixed. This backports the official fix. Fixes #14710.
2012-09-26stdenv: stop setting LDMisty De Meo
superenv stopped setting LD in 8e4c0a141171666270529da4be026d529d474467, seems sensible to follow suit in stdenv too. See #14943. Fixes #15090.
2012-09-25ENV.fortran adds back superenv removed PATHsMax Howell
Fixes #15103.
2012-09-25Clean up and improve build-error output and logsMax Howell
All logs are now stored from each command executed in Formula.install. Error output is truncated to five lines in an attempt to not overwhelm the user and to encourage users to read the error output and report the bug properly. Maybe we can get that figure up from 70% to 90%.
2012-09-18Fix building bottles from source.Mike McQuaid
2012-09-17ARGV: add .jsonMisty De Meo
Used by brew info; may be used by other commands in the future.
2012-09-05ENV: put X11 aclocal dir in ACLOCAL_PATH when appropriateJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-09-03Sort out remaining XQuartz/stdenv issuesJack Nagel
We use PKG_CONFIG_LIBDIR to reset the default search path, overriding whatever is baked into the pkg-config executable. This way, we can later append XQuartz paths here while still allowing any brewed libs to take precedence, keg-only or not. Hopefully this will resolve any remaining issues, and let us get rid of some per-formula hacks. c.f. #14474. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-09-03ENV: update commentJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-09-03Stop warning in ENV.x11Jack Nagel
It has been long enough since `depends_on :x11` was introduced that we can make it the caller's responsibility to ensure X11 is present before invoking ENV.x11, so stop outputting a warning. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-29Don't catch build errorsMax Howell
2012-08-29Block form of chdir can only be used onceMax Howell
If you nest them, the library complains. So let's not do that. /cc @jacknagel
2012-08-29Use fortran from std-env in superenvMax Howell
Fixes #14524.
2012-08-29Ensure mktemp cleans up after itselfMax Howell
Ignore interrupts.
2012-08-29superenv: build-environments that just workMax Howell
1. A minimal build environment, we don't set CFLAGS, CPPFLAGS, LDFLAGS, etc. the rationale being, the less that is set, the less variables we are introducing that can break builds. 2. A set of scripts that replace cc, ld, etc. and inject the -I, -L, etc. flags we need into the args passed to the build-tools. Because we now have complete control over compiler instantiations we do a variety of clean-up tasks, like removing bad flags, enforcing universal builds and ensuring makefiles don't try to change the order of library and include paths from ones that work to ones that don't. The previous ENV-system is still available when --env=std is specified. superenv applies to Xcode >= 4.3 only currently.
2012-08-29Record HEAD SHA and date of installs in receiptMax Howell
2012-08-29Produce good error messages for bad tarballsMax Howell
2012-08-25Miscellaneous bottle code cleanup.Mike McQuaid
2012-08-25Fix ARGV and bottles circular dependency.Mike McQuaid
2012-08-25Move used_options and unused_options to ARGV.Mike McQuaid
2012-08-25Fix tests and NoMethodError with no X11 installed.Mike McQuaid
2012-08-23Compact whitespace when removing flagsJack Nagel
This prevents multiple calls to flag-modifying ENV methods from resulting in large amounts of consecutive spaces. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-23Xcode-only: Clean up compiler flags. Use CPATH.samueljohn
- When using CPATH, we only need -isysroot and not the other -I spam. - LDFLAGS use -isysroot instead of -L Turns out that the linker also understands the -isysroot flag which behaves more natural (in the sense: "like the internal defaults `/usr/lib` etc.) than adding `-L$(SDKROOT). Especially for duplicates, the linker first searches through all `-L` dirs and then looks at the sysroot or internal defaults. This is what we want. - Pkg-config needs CC with CFLAGS passed to configure. Closes #14351. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-21Support ENV[VERBOSE]Max Howell
2012-08-18Add ARGV.ignore_deps?Jack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-18Deprecate MacOS.version? style methodsJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-18Replace version strings with Version objectsJack Nagel
2012-08-18Move version detection to Version classJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-14Improve libiconv diagnostic and suggestionMax Howell
This is coming up a lot at the moment, so here is an attempt to be more helpful.
2012-08-13Don't fail if ENOENTMax Howell
2012-08-12Don't require the WHOLE of Homebrew from ARGV.rbMax Howell
This was slowing down every instantiation of brew significantly. Hopefully doesn't break anything that had become accustomed to not having to require 'formula' or 'keg'. /cc @mikemcquaid
2012-08-06Fix issues with writable? detection in brew doctorBrandon Black
Closes #13689. Signed-off-by: Max Howell <mxcl@me.com> There are subtle distinctions between writable? and writable_real? we don't understand precisely why we need this, but it fixes the bugs :/
2012-08-06Adjust XQuartz/X11 module naming schemeJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-04Use LC_CTYPE rather than LANG for most specific ML sed fix.Mike McQuaid
Fix #11728, fix #12890, fix #13653, fix #13734, fix #13787, fix #13818, fix #13939.
2012-08-02Fix Mountain Lion sed by setting LANG.Mike McQuaid
It's also necessary to delete LC_ALL or it overrides the new LANG. LC_COLLATE is the problem variable but is affected by LANG and LC_ALL so just use them instead. Extends the fix made to geoip in dc955c. Fix #11728, fix #12890, fix #13653, fix #13734, fix #13787, fix #13818.
2012-08-01Move X11 machinery into MacOS::XQuartz namespaceJack Nagel
In order to better support Xcode-only systems, where X11 libs and executables live under /usr/X11 but headers live in the SDK, move the x11_* helper methods into a new module. This allows us to keep some of the CLT/Xcode-only and Apple X11/XQuartz logic hidden from outside code, like ENV.x11. Since Apple's X11 is actually XQuartz, name the module "MacOS::XQuartz".
2012-07-29Provide missing .pc files for 10.8Misty De Meo
10.8 no longer ships four .pc files which were included in previous versions, though it does still include the libraries which they pointed to. This commit provides copies of the .pc files for all of these, and prepends Library/Homebrew/pkgconfig to PKG_CONFIG_PATH on 10.8. The .pc files in question are: lib curl, lubexslt, libxml-2.0, libxslt Fixes #13673. Fixes #13627. Fixes #13652. Fixes #13482. Closes #13572. Signed-off-by: Misty De Meo <mistydemeo@gmail.com>