Skip to content
Snippets Groups Projects
This project is mirrored from https://github.com/Homebrew/brew.git. Pull mirroring failed .
Repository mirroring has been paused due to too many failed attempts. It can be resumed by a project maintainer or owner.
Last successful update .
  1. Sep 28, 2009
  2. Sep 26, 2009
  3. Sep 25, 2009
  4. Sep 23, 2009
  5. Sep 22, 2009
    • Adam Vandenberg's avatar
      length, not count. Fixes issue 55. · 8d7ebb8b
      Adam Vandenberg authored
      8d7ebb8b
    • Max Howell's avatar
      Remove some ohai() use · 444e2e05
      Max Howell authored
      Ohai is for titles, to separate sections of output so it is more readable, it
      truncates long lines for this purpose. So don't use it if the line you are
      outputting is likely to be long and important. Instead prefix that line with
      a summary header.
      444e2e05
    • Max Howell's avatar
      Dependency resolution with fancy syntax · 77dd27e8
      Max Howell authored
      Is it a DSL? No. But people call it that apparently.
      
      To add a dependency:
      
      class Doe <Formula
        depends_on 'ray'
        depends_on 'mee' => :optional
        depends_on 'far' => :recommended
        depends_on Sew.new
      end
      
      Sew would be a formula you have defined in this Formula file. This is useful,
      eg. see Python's formula. Formula specified in this fashion cannot be linked
      into the HOMEBREW_PREFIX, they are considered private libraries. This allows
      you to create custom installations that are very specific to your formula.
      
      More features to come, like specifying versions
      77dd27e8
  6. Sep 18, 2009
  7. Sep 17, 2009
  8. Sep 16, 2009
    • Max Howell's avatar
      Allow formulae to use __END__ · c28bd7b5
      Max Howell authored
      For this to work the "running script" must be the formulae file. Making this
      so wasn't so hard, there is now an install.rb script which is included with
      the -r flag to the ruby executable. An at_exit handler calls the install
      function.
      
      Having the install logic in its own file made it feel like there was so much
      space that I added extra error handling. So there is something to be said for
      separating functionality out into its own files.
      
      Still the error handling sucks, we'll need to marshall the exception back to
      the bin/brew command. Which is another PITA.
      
      Still overall I think this will prove worthwhile. But if it doesn't we'll
      revert.
      
      As a first usage, you can put a diff after __END__ and return DATA from
      Formula::patches to make Homebrew aware of it.
      c28bd7b5
  9. Sep 11, 2009
    • Max Howell's avatar
      Only allow --interactive with one formula argument · a793e304
      Max Howell authored
      See comments in commit for details.
      a793e304
    • Max Howell's avatar
      fdaa267f
    • Max Howell's avatar
      Dependency resolution · 0a31190f
      Max Howell authored
      Specify dependencies in your formula's deps function. You can return an Array,
      String or Hash, eg:
      
          def deps
            { :optional => 'libogg', :required => %w[flac sdl], :recommended => 'cmake' }
          end
      
      Note currently the Hash is flattened and qualifications are ignored. If you
      only return an Array or String, the qualification is assumed to be :required.
      
      Other packaging systems have problems when it comes to packages requiring a
      specific version of a package, or some patches that may not work well with
      other software. With Homebrew we have some options:
      
      1.  If the formula is vanilla but an older version we can cherry-pick the old
          version and install it in the Cellar in parallel, but just not symlink it
          into /usr/local while forcing the formula that depends on it to link to
          that one and not any other versions of it.
      2.  If the dependency requires patches then we shouldn't install this for use
          by any other tools, (I guess this needs to be decided on a per-situation
          basis). It can be installed into the parent formula's prefix, and not
          symlinked into /usr/local. In this case the dependency's Formula
          derivation should be saved in the parent formula's file (check git or
          flac for an example of this).
      
      Both the above can be done currently with hacks, so I'll flesh out a proper
      way sometime this week.
      0a31190f
    • Max Howell's avatar
      Include OS X version with fatal error details · edc0f7ba
      Max Howell authored
      So when people do what it says and list the info we know in advance their OS
      version.
      edc0f7ba
  10. Sep 07, 2009
    • Max Howell's avatar
      `brew make' becomes `brew create' · fc52e1a6
      Max Howell authored
      This is because I have observed two people confuse make with the "make" tool
      and thus assume `brew make' is `brew install'.
      
      `brew make' will be deprecated at 0.7, until then it shows a warning.
      fc52e1a6
  11. Sep 06, 2009
    • Max Howell's avatar
      Fix double newline after Interrupt · 680e2019
      Max Howell authored
      Seems to be an issue with Ruby system() call doing a double fork.
      680e2019
    • Max Howell's avatar
      FIX installed but not installed state. · 64e76715
      Max Howell authored
      Pressing CTRL-C during installs would remove the prefix but not the keg directory. brew list would then report this keg as installed, even though it was empty.
      64e76715
    • scoates's avatar
      Use ENV[EDITOR] if possible · 7709c369
      scoates authored
      Defaulting to EDITOR, then checking for the mate command, and then using
      vim as a last resort.
      
      Signed Off By: Max Howell <max@methylblue.com>
      
      Plain brew edit still uses Textmate though because a client that
      supported a project concept is required for that particular feature.
      Patches for that welcome.
      7709c369
  12. Sep 05, 2009
    • Andre Arko's avatar
      `brew search' command · c4041f44
      Andre Arko authored
      Example usage:
        brew search w  # formulae containing w
        brew search ^w # formulae starting with w
      
      No parameters lists all packages.
      
      Also adds puts_columns to util, and uses it for output.
      
      Signed Off By: Max Howell <max@methylblue.com>
      
      I changed the command from 'available' to search because this is more similar
      to how other tools call this function.
      
      The short form is -S, which is the "pacman" tool equivalent.
      c4041f44
    • Eloy Duran's avatar
      watch_out_for_spill · a4ba1c13
      Eloy Duran authored
      New method which uses RubyCocoa with the FSEvents API from Rucola to watch if
      files aren't installed outside the Homebrew prefix. Right now the paths being
      watched are: /System, /usr, /etc, /sbin, /bin, and /Applications.
      a4ba1c13
    • Adam Vandenberg's avatar
      Nehalem supports SSE4.2 · ef88db9d
      Adam Vandenberg authored
      Signed Off By: Max Howell <max@methylblue.com>
      
      I realised that -msse4.1 and -msse4.2 aren't supported by GCC 4.0, so I made
      the brash decision that we require GCC 4.2. It comes with Xcode 3.1 so people
      can upgrade if they have to.
      
      Requiring a single compiler is better for us anyway -- less possible errors
      and failures.
      
      Formulae can still request gcc-4.0.1, but at least then those formulae still
      only use a single compiler and not possibly two.
      ef88db9d
  13. Sep 04, 2009
    • Bjørn Arild Mæland's avatar
      Sort the output from `brew install` · 8b1b3d2a
      Bjørn Arild Mæland authored
      8b1b3d2a
    • Max Howell's avatar
      Fixes Homebrew/homebrew#30 -- GCC can't create executables · d11165cd
      Max Howell authored
      The fix is to error out if GCC isn't installed, and to ensure we aren't
      setting CC and CXX to something that doesn't exist.
      d11165cd
    • Max Howell's avatar
      Fix some "GCC cannot create executables" · a1256969
      Max Howell authored
      This regards Issue Homebrew/homebrew#30.
      
      Turns out -march=native isn't supported by Apple's GCC, but while investigating it I found they'd back ported the -march=core2 option, so we win anyway.
      
      Logic reverted to how it was yesterday.
      
      I moved the gcc options stuff back to brewkit.rb as we manipulate the cflags more later and it seemed bad form to split the logic for this area over two files.
      
      Additionally the brew command exits immediately on powerpc now. Brewkit doesn't throw as theoretically it is a useful library file for other projects.
      a1256969
  14. Sep 03, 2009
    • nmeans's avatar
      Fixes HOMEBREW_PRFIX when brew is outside $PATH · 91d9a707
      nmeans authored
      If brew is called with an explicit path, eg. './bin/brew',
      HOMEBREW_PREFIX is set to an empty string resulting in failure of all
      brew commands using HOMEBREW_PREFIX. This commit forces Pathname to
      compile an absolute path, setting HOMEBREW_PREFIX correctly.
      91d9a707
  15. Sep 02, 2009
Loading