38364 Commits

Author SHA1 Message Date
Adam Vandenberg
fa4671f59f Fix brew info --github 2010-07-27 06:37:49 -07:00
Adam Vandenberg
f2f68c6beb brew doctor - add check for non-standard X11
XQuartz is not known to work with Homebrew, though if you have it working
on your machine let us know.
2010-07-25 12:07:41 -07:00
Adam Vandenberg
5f5f820d12 Add Pathname.resolved_path 2010-07-25 12:07:35 -07:00
Adam Vandenberg
5d3a226149 Fix brew info --all 2010-07-25 11:26:00 -07:00
Adam Vandenberg
16bc177a4a Allow HOMEBREW_EDITOR for non-project editing.
If set, use "HOMEBREW_EDITOR" when editing a single file, or multiple
files in the same folder.

Note that this setting does not affect `brew edit`, since opening
all of Homebrew at once requires an editor with proper project support.
2010-07-25 10:58:00 -07:00
Adam Vandenberg
78ca4f35fb GitHub - use git for smart http repos 2010-07-23 21:39:12 -07:00
Adam Vandenberg
bd51ae3343 Add depends_on spacing checks to brew_audit 2010-07-23 21:31:32 -07:00
Adam Vandenberg
b355d6af25 Bump Xcode recommendation to 3.2.2 2010-07-21 09:45:31 -07:00
Adam Vandenberg
b2d034b661 brew deps --1 does not recurse 2010-07-21 09:09:15 -07:00
Adam Vandenberg
1f1da9266c Fix message and undent for external deps 2010-07-21 09:09:15 -07:00
Adam Vandenberg
f17a92ff40 Clean up test script & use system ruby to run tests 2010-07-20 21:16:33 -07:00
Adam Vandenberg
070421f441 Fix top-level formula having duplicate deps
If the top-level formula being installed has any keg-only
dependencies, the lib/include/bin/pkg-config paths for those
deps will be added twice to the ENV vars.

This doesn't break anything, but does make debug output somewhat longer
than it needs to be.

Tidy this up by calling uniq on deps before iterating.

(The cause of this duplication is related to how top-level formula are
run, to support keeping patches in __END__ blocks.)

Fixes Homebrew/homebrew#1110
2010-07-20 08:58:37 -07:00
Adam Vandenberg
14f0556d1c Remove "test/formula_test.rb"
This diagnostic script has been replaced by the "brew audit" external command.
2010-07-19 20:15:04 -07:00
Max Howell
bc5ee7c482 brew.h info takes a formula parameter rather than a string
* Preference is for commands to take instantiated formulae as parameters
  rather than formula names, so alias resolution can be centralized.
2010-07-18 13:52:01 -07:00
Max Howell
a496ca0166 Make expand_deps a class function 2010-07-18 10:45:57 -07:00
Max Howell
5d75197c04 Some String.dedent action 2010-07-18 10:44:44 -07:00
Adam Vandenberg
826ab8be71 Use build_head here too. 2010-07-18 10:44:31 -07:00
Adam Vandenberg
21c37fbac6 Add ARGV.build_head? and use it.
This allows both "--HEAD" and "-H" to be used consistently, which was the
intention in the first place.
2010-07-16 09:09:39 -07:00
Kyle Fuller
161296e5c6 When outputting a brew install -vd insert the formula name
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-07-14 07:19:03 -07:00
Adam Vandenberg
ee794cd21a Add command "brew --env"
"brew --env" will set up a build environment and then dump certain ENV
variables (CC, CXX, LD, CFLAGS, CXXFLAGS, MAKEFLAGS).

If any of CC, CXX, LD are symlinks, now also output the target compiler.
(Typically these will be symlinks from eg /usr/bin/cc to /usr/bin/gcc-4.2).

This is a diagnostic command which may be merged into --config, turned
into an external command, or removed if it doesn't turn out to be useful.
2010-07-13 14:20:52 -07:00
Adam Vandenberg
2bac03ef92 Use regex in brew-audit and add path concat test. 2010-07-12 10:38:06 -07:00
Adam Vandenberg
984d0bd05d CurlUnsafeDownloadStrategy
This Download Strategy is provided for use with sites that
only provide HTTPS and also have a broken cert.
Try not to need this, as we probably won't accept the forulae
into trunk.
2010-07-10 12:00:11 -07:00
Adam Vandenberg
b5ba49b90e Usage should mention manpage. 2010-07-09 12:16:06 -07:00
Adam Vandenberg
95d4de0454 Document 'brew install --HEAD'; sort ENV vars. 2010-07-09 12:13:17 -07:00
Adam Vandenberg
d637e0a139 brew doctor and GitDownloadStrategy now check for Git.
GitDownloadStrategy now fails if git isn't in the path, same as other
VCS strategies.

`brew doctor` will also warn if Git isn't installed.
2010-07-09 07:15:28 -07:00
Adam Vandenberg
4c2d3e1f7f Improved Subversion support.
Homebrew will now use the svn binary pointed to by HOMEBREW_SVN if set,
use a Homebrew-installed svn if present, finally falling back to the
system-provided svn binary.

If a formula (mplayer) requires a newer version of Subversion than what
Leopard provides, it can use the "StrictSubversionDownloadStrategy"
download strategy to warn the user.

These changes also fix an issue with forcing exports not working on a
stock Leopard subversion, but letting the user either specify a specific
binary or install Subversion via Homebrew and pick that up instead.
2010-07-08 22:45:03 -07:00
Adam Vandenberg
281768cc07 Add some HOMEBREW env vars to the dump 2010-07-08 22:45:01 -07:00
Adam Vandenberg
7c4661edcf Comment the detect_download_strategy patterns. 2010-07-08 22:41:51 -07:00
Adam Vandenberg
0cc253964b Remove un-needed 'unless' in brew update 2010-07-08 22:41:51 -07:00
Adam Vandenberg
41e8245534 Clarify cellar comment 2010-07-08 22:41:51 -07:00
Adam Vandenberg
696e49e87a Move exceptions from global to utils; remove duplicate defintions 2010-07-08 22:41:51 -07:00
Adam Vandenberg
6b1a8be58e External command "brew which"
A work-in-progress command, "brew which" will show which versions of formulae
you have installed based on what symlinks exist from HOMEBREW_PREFIX back into
the Cellar.

Thus, if you happen to have symlinks into two different versions of a brew in
the Cellar (typically an error), both of those versions will be listed.

This is a diagnostic command, but some of this code will be the basis for
possible future better handling of multiple-versions-at-once.
2010-07-08 22:41:51 -07:00
Adam Vandenberg
a6b6de63a9 Move method from ObserverPathnameExtension to extend/Pathname
* This method is generally useful, even without the Observer extensions.
2010-07-08 22:41:50 -07:00
Adam Vandenberg
c2c0f681f5 brew fetch shouldn't try to checksum VCS checkouts
Fixes Homebrew/homebrew#1802
2010-07-07 21:31:55 -07:00
Adam Vandenberg
375f8094d3 Add debian style names to version checker. 2010-07-06 13:17:50 -07:00
Adam Vandenberg
4ae8029557 Update version tests 2010-07-06 13:17:43 -07:00
Adam Vandenberg
350aea60dc Pathname - fix RC version detection. 2010-07-04 14:10:04 -07:00
Adam Vandenberg
b06e9ce841 external command 'brew readall' that tries to import all brews
This can be useful for debugging when making changes to formula.rb,
since that can cause problems across all formuale.
2010-07-04 11:23:32 -07:00
Adam Vandenberg
7d852f10a7 Update Pathname version checks.
* allow capital 'RC'
* allow 'stable' suffix
2010-07-04 11:02:54 -07:00
Adam Vandenberg
f666addeac Remove dupliate 'wxwidgets' entry from blacklist. 2010-07-04 10:46:16 -07:00
Adam Vandenberg
55db2e5da6 'brew fetch' now shows MD5 2010-07-04 10:44:07 -07:00
Adam Vandenberg
40c8af111f Move data into updater class 2010-07-03 23:22:51 -07:00
Adam Vandenberg
14d84be78e brew doctor - add whitelist to dylibs 2010-07-03 22:58:17 -07:00
Adam Vandenberg
63f6cb03df Blacklist setuptools in favor of distribute. 2010-07-03 21:55:34 -07:00
Adam Vandenberg
c37294e9d3 Allow user to override temp folder with HOMEBREW_TEMP 2010-07-03 21:48:37 -07:00
Adam Vandenberg
ecb5ce103e Remove $PATH from --config and build dumps.
While it is useful to be able to see the user's path in bug reports, it is
perhaps slightly too intrusive to post this without the user's permission.

A path can have usernames or other project sensitive information, and several
Homebrew users were editing their bug reports to omit this information.

`brew doctor` will still report on the path issues that we typically care
about, so dropping automatic posting of PATH.
2010-07-02 09:34:40 -07:00
Adam Vandenberg
8806d91662 Brew doctor now checks that lib/pkgconfig is writable.
If previous non-Homebrew software was installed to /usr/local with "sudo",
then a pkgconfig folder may have been created with restricted permissions.
This will prevent brews (such as glib) from symlinking their .pc files
correctly.
2010-07-01 10:16:15 -07:00
Adam Vandenberg
98f550e946 Use http URL for "brew update".
This allows users behind firewalls to pull down updates to Homebrew itself.
Fixes Homebrew/homebrew#1086
2010-07-01 09:22:55 -07:00
Adam Vandenberg
aac072c47a Tweak CurlPostDownloadStrategy 2010-06-30 10:21:56 -07:00
Adam Vandenberg
4490b739d5 Add flat-.pkg support to CurlDownloadStrategy 2010-06-30 10:14:33 -07:00