aboutsummaryrefslogtreecommitdiffstats
path: root/Library
AgeCommit message (Collapse)Author
2012-08-23Fix keg-only on pre-Mountain Lion formulae.Mike McQuaid
2012-08-22audit: be a bit more lenientAdam Vandenberg
2012-08-22audit: allow certain ARGV usagesAdam Vandenberg
2012-08-22audit: complain until we use option and buildAdam Vandenberg
2012-08-22Don't use XQuartz for e.g. :libpng on 10.8.Mike McQuaid
XQuartz isn't added to the default library paths so if something is linked against a Homebrew libpng then it doesn't work against the XQuartz libpng. The CLT provides X11 on Lion so don't request users install XQuartz if it isn't needed on Mountain Lion. Fixes Homebrew/homebrew#14325.
2012-08-22Cache found svn binaryAdam Vandenberg
2012-08-22Honor GIT env varAdam Vandenberg
2012-08-21factory: rescue NameErrorJack Nagel
Due to the new const_defined? checks, passing certain names (such as those that start with a digit) that are illegal constant names will raise NameError. Catch this and error out gracefully, as we would have previously. Fixes Homebrew/homebrew#14342. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-21keg_fix_install_names doesn't need FindJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-21mach-o: use any? instead of map and include?Jack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-21Support ENV[VERBOSE]Max Howell
2012-08-21`brew irb` uses correct RubyMax Howell
Conversation here: 0a45d96b21a5056e5131f136e94533a6a57bf808
2012-08-21conflicts_with message: recommend unlinkMax Howell
Yes uninstall works, but lets not push people towards that, they can presumably guess that, in the rare case they'd prefer that option.
2012-08-21Better message if multiple kegs need linkingMax Howell
2012-08-21Formula.EnumerableMax Howell
Deprecated Formula.all, replaced usage with more appropriate enumerable options. Just check out how much nicer `brew audit` runs now.
2012-08-21In fact, there are 2 xcode-select files to deleteMax Howell
2012-08-20Simplify MacOS.locateJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-20MacOS.dev_tools_path: return nil if not foundJack Nagel
This matches the semantics of other path methods, such as Xcode.prefix. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-20Simplify build options APIJack Nagel
Simplify access to the different forms of a formula's build options by making options into real objects rather than strings, and expose both the 'name' and 'flag' form.
2012-08-20HOMEBREW_CONTRIBJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-19factory: don't reload previously defined formulaeJack Nagel
build.rb calls Formula.factory to get a usable Formula object to pass to its install method. However, because the formula file is the actual executing script, its class is already defined, and loading it again causes the class to be re-evaluated, which, unfortunately, is not idempotent. This bug has existed for a very long time, and its side effects include duplicate entries the deps array and mirrors array, among others. Fortunately, the fix is very simple. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-18Don't lie about upgrading up-to-date formulaeJack Nagel
Usually, the "foo-version already installed" error is printed by FormulaInstaller. However, if an up-to-date formula that has outdated deps is passed on the command line, we proceed to upgrade the deps and then print a message saying that the formulae given on the command line is already installed. Catch this earlier, when the outdated list is being populated, print an appropriate message, and skip the up-to-date formula. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-18upgrade: filter ARGV when expanding depsJack Nagel
This serves the same purpose as similar code in FormulaInstaller, but we duplicate it because we do the dependency expansion in an ad-hoc fashion here. Fixes Homebrew/homebrew#11863. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-18Add ARGV.ignore_deps?Jack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-18Test version interrogation methodsJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-18Simplify version comparison testsJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-18Version: build-in devel version comparisonsJack Nagel
The heuristic used by the default version comparison is simple. A version string is scanned for strings of digits, split into an array of these strings, and then an element-wise comparison is done. This fails when presented with something like Version.new("1.0.0beta7") <=> Version.new("1.0.0") because the first three digits match, and the fourth digit of the receiver (7) is greater than the assumed fourth digit of the parameter (0). Fix this by defining an element-wise comparator on a new VersionElement class. This allows us to correctly compare "alpha", "beta", and "rc" style version strings, and keeps the logic out of the main version comparison. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-18brew-mirror-check: update for new specs APIJack Nagel
This was missed as part of the specs refactor. Fixes Homebrew/homebrew#14280. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-18Refer to the real keg when dying because the keg existsJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-18Refactor `brew missing`Jack Nagel
The heuristic for determining whether something is installed changes from "f.installed?" to "f.rack.exist? and f.rack.subdirs.length > 0" in order to properly consider outdated formulae. 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-18Add custom comparator for MacOS.versionJack Nagel
This will allow us to do comparisons like if MacOS.version >= :lion and hopefully deprecate the MacOS.<name>? family of methods, which are counterinitutive.
2012-08-18Add small DSL for defining comparatorsJack Nagel
2012-08-18outdated: use new version comparison machineryJack Nagel
2012-08-18keg: add method to return the corresponding VersionJack Nagel
2012-08-18Add support for custom version schemesJack Nagel
A version scheme is a class that inherits from Version and reimplements Version#<=>. This will allow formulae to specify a custom comparison method that will be used instead of the default, for cases where the default is insufficient.
2012-08-18SoftwareSpec: simplify conditionalJack Nagel
2012-08-18Add Version#detected_from_url?Jack Nagel
2012-08-18Replace version strings with Version objectsJack Nagel
2012-08-18Further version test refactoringJack Nagel
2012-08-18Move version detection to Version classJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-18Initial version comparison implementationJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-18Preliminary version test refactoringJack Nagel
2012-08-18Add Version classJack Nagel
2012-08-17Add Xcode 4.4.1 to standard compilers mapJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-17Remove executable bits from audit.rb and bottle.rbJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-17Fix syntax error, sorry about that.Max Howell
Didn't test properly, it was a side-fix. Bad mxcl.
2012-08-17Stop warning about CLT w/o XcodeMax Howell
Also made the latest_versions checks smarter. Hopefully correct too.
2012-08-17Forgot to remove install_homebrew.rbMax Howell
It's now in the go branch.
2012-08-17Add special :xcode dependencyAdam Vandenberg
Signed-off-by: Jack Nagel <jacknagel@gmail.com>