1276 Commits

Author SHA1 Message Date
Jack Nagel
cf5c97bbcb Don't use 'obj == nil' 2013-06-26 18:47:00 -05:00
Jack Nagel
a89c501486 audit: don't try to audit missing deps
Refs Homebrew/homebrew#20829.
2013-06-26 18:09:12 -05:00
Jack Nagel
ce4b621874 Clean up brew options 2013-06-26 15:11:34 -05:00
Adam Vandenberg
dbc1df51f4 Reword uses comment 2013-06-26 11:33:31 -07:00
Jack Nagel
c8ae97dde8 uses: fail fast if invalid formula names are given
Fixes Homebrew/homebrew#20819.
2013-06-26 12:59:46 -05:00
Adam Vandenberg
faaac9482e Fix info --github
Closes Homebrew/homebrew#20780.
2013-06-25 11:21:04 -07:00
Adam Vandenberg
371c1acfe4 Add 'From:' to GitHub url for formula
Closes Homebrew/homebrew#20724.
2013-06-24 07:43:29 -07:00
Adam Vandenberg
41352cf1a8 Update audit for Fortran dependency 2013-06-24 07:38:25 -07:00
Adam Vandenberg
ad320c96fd irb: pass strings to factory, not symbols 2013-06-23 13:07:55 -07:00
Adam Vandenberg
3dd2715ec8 remove no-op code in bottle.rb
ARGV.formulae returns formulae, so no need to pass through factory
2013-06-23 13:02:10 -07:00
Jack Nagel
083b3c84d0 Add Utils::JSON to wrap the JSON implementation 2013-06-22 21:34:02 -05:00
Jack Nagel
2356a6d874 deps: allow "--installed --tree" 2013-06-22 12:54:46 -05:00
Jack Nagel
a02d5f33b4 deps: use OpenStruct to capture the mode 2013-06-22 12:54:46 -05:00
Jack Nagel
c2faf2a0ca deps: remove need for Array extension 2013-06-22 12:54:45 -05:00
Jack Nagel
6790f6adb0 deps: extract output methods 2013-06-22 12:54:45 -05:00
Mike McQuaid
79f9da3c22 bottle: sort --merge output in OS X version order. 2013-06-22 11:13:59 +01:00
Jack Nagel
c0eb1f10de Don't clean up lockfiles if the directory doesn't exist
Fixes Homebrew/homebrew#20673.
2013-06-21 18:38:39 -05:00
Jack Nagel
3b56cb02ea Clean up lockfiles 2013-06-21 15:42:14 -05:00
Samuel John
d456d42813 doctor: share/python no longer needed in PATH
Check for HOMEBREW_PREFIX/share/python and python3
in PATH and tell about the new location and that
files from there can be removed. Also instructions
on how to upgrade python packages are given.
2013-06-19 12:27:50 +02:00
Jack Nagel
50db35e5d3 Use Hardware::CPU module 2013-06-14 10:34:17 -05:00
Simon Sigurdhsson
776c08490f Fix bug in brew list --pinned
Pinned formulae which were pinned at a previous version but then upgraded
would not be listed by `brew list --pinned`. This is due to the good old
"File.exist? thinks broken symlinks don't exist" gotcha, so the test in
the select block in list_pinned has been changed to check if the pin file
exists _or_ is a symlink.

Closes Homebrew/homebrew#20423.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2013-06-13 10:22:03 -05:00
Jack Nagel
630aa27c56 Rename variables for clarity 2013-06-12 14:48:17 -05:00
Jack Nagel
5482092bd0 Extract search_taps method 2013-06-12 14:48:17 -05:00
Jack Nagel
e0fba99699 Pull tap list into a constant 2013-06-12 14:48:17 -05:00
Jack Nagel
c30f00c37c Remove use of global variable 2013-06-12 14:48:17 -05:00
Jack Nagel
d1a1a3b031 Rename method 2013-06-12 14:48:16 -05:00
Jack Nagel
1d1c292bcb Extract query construction 2013-06-12 14:48:16 -05:00
Jack Nagel
90768d03d2 Use inspect instead of escaping quotes 2013-06-12 14:48:16 -05:00
Jack Nagel
13a2ceef5c Move require out of method 2013-06-12 12:23:45 -05:00
Jack Nagel
2045217a68 install: remove overcautious array manipulation 2013-06-12 09:02:20 -05:00
Jack Nagel
652e0982f0 Add doctor check for OS X > 10.8 2013-06-11 10:18:24 -05:00
Misty De Meo
ef054a2d02 doctor: add check for osx-gcc-installer
This might not detect all cases, but should detect the two most
common ones.
2013-06-11 08:13:24 -05:00
Jack Nagel
f1df7f208f info: remove unreachable code 2013-06-09 15:32:08 -05:00
Jack Nagel
8b9a3a560f Separate formula conflicts from requirements
Closes Homebrew/homebrew#20357.
2013-06-09 13:45:25 -05:00
Jack Nagel
d28deee516 deps: move recursive_deps_tree into Homebrew module 2013-06-09 12:59:42 -05:00
Adam Vandenberg
a60eed48bc Remove adamv-alt references.
Closes Homebrew/homebrew#20364.
2013-06-09 07:32:06 -07:00
Adam Vandenberg
4c9ac19e87 Consolidate sudo checks.
Closes Homebrew/homebrew#20318.
2013-06-08 20:44:56 -07:00
Jack Nagel
bae36f0830 Make Test::Unit assertions available in formula tests
Closes Homebrew/homebrew#18753.
Closes Homebrew/homebrew#20358.
2013-06-08 21:31:44 -05:00
Mike McQuaid
4b35539978 brew-bottle: merge arg for bottle metadata files.
Closes Homebrew/homebrew#20266.
2013-06-08 16:48:43 +01:00
Mike McQuaid
517889d6fb brew-bottle: split output and use a bottle object. 2013-06-08 16:47:11 +01:00
Mike McQuaid
4a7c68763e brew-test: add five minute timeout. 2013-06-08 16:41:44 +01:00
Samuel John
031a0ae54e Improved audit of python stuff 2013-06-07 17:58:55 +02:00
Jack Nagel
79a769215f Decouple bottle tags from MacOS.cat 2013-06-06 16:02:27 -05:00
Jack Nagel
9a741810c8 cleanup: use String#[] instead of "captures.first rescue nil" 2013-06-06 12:34:47 -05:00
Jack Nagel
816531e28d Remove postgresql and mysql audit noise
Closes Homebrew/homebrew#20159.
2013-06-04 11:15:31 -05:00
Samuel John
c524895666 Python 2.x and 3.x support
New `depends_on :python` Dependency.
New `depends_on :python3` Dependency.

To avoid having multiple formulae with endings -py2 and -py3,
we will handle support for different pythons (2.x vs. 3.x)
in the same formula.
Further brewed vs. external python will be transparently supported.

The formula also gets a new object `python`, which is false if
no Python is available or the user has disabled it. Otherwise
it is defined and provides several support methods:

python.site_packages # the site-packages in the formula's Cellar
python.global_site_packages
python.binary # the full path to the python binary
python.prefix
python.version
python.version.major
python.version.minor
python.xy # => e.g. "python2.7"
python.incdir # includes of python
python.libdir # the python dylib library
python.pkg_config_path # used internally by brew
python.from_osx?
python.framework?
python.universal?
python.pypy?
python.standard_caveats # Text to set PYTHONPATH for python.from_osx?
python.if3then3 # => "" for 2.x and to "3" for 3.x.

Further, to avoid code duplication, `python` takes an optional
block that is run twice if the formula defines depends_on
:python AND :python3.

python do
  system python, 'setup.py', "--prefix=#{prefix}"
end

Read more in the Homebrew wiki.
2013-06-03 17:29:43 +02:00
Adam Vandenberg
903c340664 Audit url/devel/head for redundant :using 2013-05-27 22:25:34 -07:00
Adam Vandenberg
0e7d47332c Add brew search --debian <f> 2013-05-27 17:32:27 -07:00
Jack Nagel
1a7ea33ba5 audit: drop redundant 'each' after 'grep' 2013-05-27 18:31:18 -05:00
Jack Nagel
52d84ba7cf doctor: check git SSL settings on <= 10.5 2013-05-27 10:06:45 -05:00