Commit Graph
828 Commits
Author SHA1 Message Date
Adam Vandenberg f9f90beaa1 brew audit: --strict warning for using $ in caveats
For multiple lines of commands to enter at a prompt, don't use
$ as a prompt marker to make it easier to copy/paste.
2011-04-04 16:40:38 -07:00
pascalbertrand 4992f31e05 GitHub - use git for smart https repos
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-04-04 14:09:41 -07:00
Adam Vandenberg ff7ae0cc1c brew doctor: add check for GREP_OPTIONS 2011-04-04 09:21:44 -07:00
Adam Vandenberg d0b7e64f65 brew doctor: update expat check
Apaprently both expat.framework and libexpat.framework exist
and interfere with CMake.
2011-04-04 08:48:42 -07:00
Adam Vandenberg c84a7424b4 Fix CLICOLOR_FORCE check 2011-04-01 13:42:12 -07:00
Charlie Sharpsteen 03c8d6bbf1 Fix brew-audit Fortran check
The Fortran regex only allowed for trailing whitespace after:

    depends_on 'gfortran'

This missed conditional dependencies, such as:

    depends_on 'gfortran' if something?

Such a dependency was present in the NetCDF formula.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-04-01 13:00:07 -07:00
Adam Vandenberg d280809248 brew doctor - only check unique path folders 2011-03-29 12:45:54 -07:00
Adam Vandenberg 0301f4d634 Add warning about m4 macros. 2011-03-29 10:02:56 -07:00
Dave Lee 43db934da6 Use Formula#installed_prefix for brew --prefix formula
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-03-28 22:47:21 -07:00
Adam Vandenberg c1bde07bc8 Fix inheritance style in download strats. 2011-03-28 19:53:43 -07:00
Adam Vandenberg 093e2b4af5 brew doctor - add check for CLICOLOR_FORCE 2011-03-28 11:57:57 -07:00
Adam Vandenberg 78d85b357a brew doctor - reword stray dylib message 2011-03-28 11:51:59 -07:00
Adam Vandenberg 71c074dbed brew doctor - also check permisisons on share 2011-03-28 11:48:45 -07:00
Adam Vandenberg 3e053428f2 Use MacOS.xcode_prefix 2011-03-28 11:14:32 -07:00
Adam Vandenberg bb28adf138 reword audit 2011-03-28 11:08:42 -07:00
Adam Vandenberg b792d98ad8 remove whitespace 2011-03-26 10:19:45 -07:00
Adam Vandenberg 966e1822eb Move 'fails_with_llvm' into formula DSL.
Existing method moved to compatibility layer.
2011-03-25 23:31:28 -07:00
Austin Ziegler 304d9af671 Adding version detection to sf.net /download urls
SourceForge links can end with /download which appears to be part of
what is used to drive mirror selection. Modifying the version detection
extension of pathname.rb to detect this case for both sourceforge.net
and sf.net download selections.

This is sufficient for version detection but may not be sufficient for
other uses of /download links. I have not found any problems with links
that use /download, though.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-03-25 22:30:10 -07:00
Simon COURTOIS 2fcc7af678 Removing svn+ when using svn+http to avoid Undefined tunnel scheme error
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-03-22 10:18:23 -07:00
Jonas Pfenniger 23c35d5909 brew up: star installed formulae
When running `brew up`, if a mentioned formulae is also installed,
it will get a wildcard start at the end.
It makes it easier to see if any installed formulae is impacted.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-03-21 22:10:39 -07:00
Jonas Pfenniger 3b4b11b00e utils.rb: removed unused cols argument
cols is calculated in the function body

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-03-21 22:10:30 -07:00
Adam Vandenberg 67385c9efc update manpage for brew audit --strict
This removes the single use of 'brew audit --warn' and
changes it to --strict as well.
2011-03-21 13:07:14 -07:00
Adam Vandenberg 564c2db1a0 brew audit: add strict check for <Formula spacing 2011-03-21 13:07:14 -07:00
Adam Vandenberg 649f91e02b Add audit for xcodebuild.
xcodebuild should be passed an explicit SYMROOT, since the user
can override this.

Also added --strict, so certain audits can be ignored in most
cases (including this one.)
2011-03-21 12:54:00 -07:00
Adam Vandenberg 4ee43a4a20 Remove ENV dump from top of verbose install.
If an install fails, the ENV dump at the end of the output is more
useful, as it reflects any ENV changes done in def install.
2011-03-21 10:23:18 -07:00
eregon eb121eeabb use Module#const_get instead of eval
* may be a problem if the constant is scoped (like A::B), but this is not the case
  (const.split('::').inject(Object) { |c, part| c.const_get part } would solve that)
* this was noticed in a comment of 9afc85ad but it has disappeared

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-03-20 19:12:29 -07:00
Yasuharu NAKANO a4920c60b6 Fix for installing from_url
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-03-20 09:06:51 -07:00
Adam Vandenberg 3b750d26d8 Use --depth 1 more conservatively 2011-03-19 14:30:35 -07:00
Adam Vandenberg af5b0f91bc Fix brew --cellar foo 2011-03-19 11:06:51 -07:00
Adam Vandenberg 94efc8f452 brew options: allow --all 2011-03-19 09:58:42 -07:00
Adam Vandenberg 4f63836bb7 Add methods to ArchitectureListExtension 2011-03-19 09:49:17 -07:00
Adam Vandenberg 5d30ca7316 Use backticks instead of popen
Using popen here breaks brew install -v due to the way
the error pipe is passed around during install.
2011-03-19 09:14:59 -07:00
Adam Vandenberg edeace562e Add MacOS.prefer_64_bit?
Moved snow_leopard_64? to compatibility and replaced it with
a function MacOS.prefer_64_bit?. This method is in a better
place and has a better name once Lion comes out.

Fixes #4710
2011-03-18 10:30:26 -07:00
Camillo Lugaresi 394780776c make fails_with_llvm work when cc is llvm-gcc
Closes #4693.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2011-03-17 17:49:14 +00:00
Mike McQuaid 52b86699c8 Use xcode_path for GCC as well as LLVM. 2011-03-17 17:21:42 +00:00
Adam Vandenberg ec6521e7c4 Fix keg-only, non-system dupes 2011-03-15 22:46:20 -07:00
Adam Vandenberg 3338b146b8 install - change keg-only warning 2011-03-15 22:04:13 -07:00
Adam Vandenberg 9eb7c1995f keg-only: provide more info about system dupes
System duplicates can now provide more information about why
they are included in Homebrew.
2011-03-15 22:03:23 -07:00
Adam Vandenberg 309ae6bca5 keg - use proper inheritance style 2011-03-15 21:48:24 -07:00
Adam Vandenberg c8508a3b95 brew audit: check that homepage includes the protocol 2011-03-15 21:40:09 -07:00
Adam Vandenberg 599c4f034a Fix regex for svn+http
Fixes #4683
2011-03-15 09:41:23 -07:00
Adam Vandenberg e00e8747a8 Fix reporting of build errors. 2011-03-14 15:48:35 -07:00
Mike McQuaid 015498c25f Don't make brew doctor complain about Xcode 4. 2011-03-14 21:00:51 +00:00
Mike McQuaid 51733b3612 X11 is part of OSX, not Xcode. 2011-03-14 21:00:51 +00:00
Adam Vandenberg d376926e2e Add comment to ENV.libxml2 2011-03-14 13:58:30 -07:00
Adam Vandenberg 0548224213 Fix bug in reporting curl errors 2011-03-14 13:30:46 -07:00
Joshua Peek 474e6277bc brew info should fetch remote formula info
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-03-14 10:18:39 -07:00
Adam Vandenberg a630932cf3 Add ruby lib to folders handled specially by keg.link 2011-03-13 12:19:27 -07:00
Max Howell c281011e5b Remove unused exception; Closes #4652
If version cannot be determined, then instruct the user to add one.
2011-03-13 16:16:17 +00:00
Max Howell 73c7a3aa1b Optimise/simplify brew help
Be more useful by being more concise. I referenced dozens of other mature commands’ usage to figure out what to do here.

Also separated out the help into its own command for consistency.
2011-03-13 12:54:30 +00:00