aboutsummaryrefslogtreecommitdiffstats
path: root/Library
AgeCommit message (Collapse)Author
2012-07-08Restore some things to failed install config dumpJack Nagel
Closes Homebrew/homebrew#11091. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-07-08Display compiler build numbers in config dumpJack Nagel
But only display them if they are out of sync with the corresponding Xcode version. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-07-08Always output X11 version and path in config dumpJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-07-08fetch: remove dead codeJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-07-08Prevent error pipe object from being finalizedJeff Clites
When the first error pipe object is finalized, the underlying file descriptor is closed, breaking the pipe between the build script and the main Homebrew process. Keep a reference to this object so it isn't closed. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-07-07Remove `brew install foo --help`Adam Vandenberg
This command was undocumented, only for autotools, and it is enough to do `brew install foo -i` and then `./configure --help` in two steps.
2012-07-07doctor: update xcode chceckAdam Vandenberg
* 4.3.3 is the latest on 10.7 * Give up if we don't know what the latest is (10.8 and beyond)
2012-07-06DownloadStrategy: Detect classesMisty De Meo
2012-07-06Keg#unlink: skip find for non-extant filesMisty De Meo
In 1.8, Pathname.find would work (and do nothing) if the source path didn't exist. In 1.9 this throws an exception instead, so check whether the file exists before trying.
2012-07-05Stop stripping binary filesAdam Vandenberg
2012-07-05tests: expect that mirror lists are empty, not nilJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-07-05Decouple pathname from bottlesJack Nagel
Pathname is one of the basic building block classes in Homebrew, and as such it is preferrable that `require`ing it does not drag in other Homebrew code; thus avoiding circular dependency situations. Its dependency on bottles.rb gave it an implicit dependency on formula.rb, among other things. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-07-05Remove compat's implicit dependency on formulaJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-07-05Fix 'or' precedence errorsJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-07-05SoftwareSpec: initialize @mirrorsMisty De Meo
Since methods were being called on it without verifying its type.
2012-07-04bottles: protect against a nil bottleJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-07-04Homebrew 0.9.20.9.2Jack Nagel
0.9.2 includes the formula specs refactoring. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-07-04Give SoftwareSpec an initializerJack Nagel
Tools like `brew create` need to create and manipulate SoftwareSpec objects. It is useful to be able to do this directly, rather than by proxy through the special methods that serve the main formula DSL. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-07-04Teach download strategies to take a SoftwareSpecJack Nagel
Now that a URL, version, and the (for lack of a better term) "specs" associated with said URL (e.g. the VCS revision, or a download strategy hint) are neatly bundled up in a SoftwareSpec object, it doesn't make sense to pass them individually to download strategy constructors. These constructors now take only the formula name and a SoftwareSpec as parameters. This allows us to move mirror handling out out of Formula#fetch and into the download strategies themselves. While doing so, we adjust the mirror implementation a bit; mirrors now assume the same "specs" as their owner's URL. They are still only useable by the CurlDownloadStrategy, but this provides a basis for extending mirror support to other strategies. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-07-04fetch: use new checksum verificationJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-07-04Refactor download strategy detectionJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-07-04tests: clean up whitespaceJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-07-04Demonstrate that bottles are selected correctlyJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-07-04Prune some requires from test filesJack Nagel
testing_env already requires utils; set up the ARGV and ENV extensions there as well. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-07-04Refactor checksummingJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-07-04audit: handle new formula specsJack Nagel
2012-07-04info: display available formula specsJack Nagel
2012-07-04fetch: make use of new formula specsJack Nagel
2012-07-04Introduce new formula specsJack Nagel
2012-07-02Cache Hardware.is_64_bit?Jack Nagel
IO#popen is called for each call to Hardware.is_64_bit?; this becomes costly when it is repeatedly invoked. Luckily it is an invariant, so we can store it in a class variable. False is a valid value for this method, so the usual ||= idiom is not applicable. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-07-01Update formula template for new X11 dependencyJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-07-01Dump Cmake environment variables in brew --envJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-07-01Update doctor checks for XQuartzJack Nagel
- pkg-config no longer defaults to checking /usr/X11/lib/pkgconfig; instead this path is added via ENV.x11 or depends_on :x11. Formulae that expect X11 libs should be explicitly marked as depends_on :x11. - Remove warning about /usr/X11 as a symlink. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-07-01Better describe X11 in brew --configCamillo Lugaresi
2012-07-01Better error message for unknown dep symbolCamillo Lugaresi
2012-07-01ENV.x11 automatically if depends_on :x11Camillo Lugaresi
2012-07-01Add depends_on :libpng as an alias to :x11Camillo Lugaresi
Some formulae ask for the x11 environment with ENV.libpng; mirror this in the new dependency form.
2012-07-01Simplify DependencyCollector#addCamillo Lugaresi
2012-07-01depends_on :x11 syntax supportCamillo Lugaresi
2012-07-01add method to find XQuartz versionCamillo Lugaresi
2012-07-01use XQuartz when presentCamillo Lugaresi
2012-06-30Clarify commentJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-06-30Address some style issues in MacOS moduleJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-06-29doctor: suggest the correct xcode-select path to the usersamueljohn
Shortened the part about the CLT-only systems, because this message is never shown to them. Closes Homebrew/homebrew#13061. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-06-29Add mdfind method to MacOS moduleJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-06-29Refactor PATH setupJack Nagel
- Make ORIGINAL_PATHS an array of Pathnames instead of strings - Append the dev tools path once in global.rb instead of build.rb Closes Homebrew/homebrew#13075. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-06-28Organize compiler methodsJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-06-27Extract MacOS module to separate fileAdam Vandenberg
2012-06-27Refactor MacOS.Adam Vandenberg
* call `xcode-select` once and cache the result * reuse functions where appropriate
2012-06-27remove confusing commentsAdam Vandenberg