Commit Graph
1352 Commits
Author SHA1 Message Date
Max Howell 57c8539ee2 Assist more in the template from brew create 2012-03-01 13:25:10 +00:00
Max Howell 8ba811d304 Show doctor error if xcode-select path is invalid
Fixes #10598.

Ideally we would show a message for builds that use xcodebuild etc. But there is no easy mechanism for this in place.
2012-03-01 10:19:55 +00:00
Adam Vandenberg 68efcdf67b Formula.rb: update a comment 2012-02-29 21:45:47 -08:00
Adam Vandenberg 0c215884c6 Add support for Luarocks dependencies. 2012-02-29 20:52:20 -08:00
Max Howell f78970f6b9 Some additional aid for brew create 2012-02-29 02:03:26 +00:00
Max Howell 63a8f466a5 Play nice with case-sensitive filesystems 2012-02-29 01:28:23 +00:00
Max Howell 9092b0690e Remove empty directories during uninstall
About time we did this right?
2012-02-29 01:23:49 +00:00
Jack Nagel 6bcd44fe62 Set GIT_DIR when staging git clones
Some build scripts want to inspect the git history, e.g. to determine
version strings. Rather than copy the repository into the build tree,
just setting GIT_DIR is enough for things to "just work".

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-02-28 18:35:09 -06:00
Max Howell d272d75bb3 Revert "Writability for /usr/local is no longer required"
This reverts commit 21acfc1c7e.

This was reverted because we tried to leave /usr/local with root permissions, but
this caused problems for us. Sorry Rogue Amoeba. I'd suggest not installing your
App's tools into /usr/local. It's outside your App's domain, so you can't be sure
what will happen there.
2012-02-28 18:49:40 +00:00
Jack Nagel ec1f2faf22 audit: automake, autoconf, and libtool are build-time deps
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-02-28 11:36:12 -06:00
Jack Nagel 4ab1f7ab8e Show real path to x11 in --config output
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-02-27 23:43:56 -06:00
Adam Vandenberg 3e0027bf18 Remove some whitespace here 2012-02-27 21:19:25 -08:00
Max Howell 56125019d7 Set ACLOCAL_PATH so that things work
This should mean all those formula that pass options to aclocal don't need to anymore, but I'm not risking changing them.
2012-02-27 04:06:39 +00:00
Max Howell b0c81fcc5d Autoconf, Automake and Libtool
We need these now for Xcode-4.3/CLT4X installations.

Also prevent m4 error in installer. And prevent brew doctor complaining if we're Xcode 4.3 or above.

Closes #10349. Fixes #10423. Refs #9179.
2012-02-27 03:35:11 +00:00
Adam Vandenberg adbee7b892 audit: check sbin too
Apply the 'bin' audit to 'sbin' too, and also complain if subfolders are
installed to either.
2012-02-26 16:33:44 -08:00
Jack Nagel 8d307119bd Fix IO redirection in ENV.xcrun
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-02-26 15:01:01 -06:00
Max Howell 56046b541a Make xcode_version work with CLI4.3X
Closes #10460.
2012-02-26 12:59:12 +00:00
Adam Vandenberg 0568780cd0 List offending jar files when installed to lib 2012-02-25 20:57:21 -08:00
Adam Vandenberg 9659468ed3 inreplace: also warn on plain gsub! usage 2012-02-25 22:41:20 -06:00
Jack Nagel dbde261512 inreplace: warn if no substitutions were made
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-02-25 22:37:29 -06:00
Adam Vandenberg 3e2af8de39 Only call patches once 2012-02-25 17:24:45 -08:00
Adam Vandenberg dfcc838b66 Add "require hardware" to formula.rb
Now individual formulae don't need to require this if they want to use
Hardware methods outside of `def install`.
2012-02-25 15:22:32 -08:00
Second Planet c4027c4051 Add more external dep options
* Chicken Scheme
* Node.js
* Rubinius

Closes #8466.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-02-25 10:19:59 -08:00
Adam Vandenberg 8bf54c485c Add buildpath to Formula 2012-02-24 21:35:51 -08:00
Adam Vandenberg 55f3c49a9e Introduce block form of mkdir 2012-02-24 21:35:51 -08:00
Jack Nagel 44e13dffc9 Replace UI uses of 'folder' with 'directory'
There are still methods and variables with the word "folder" in the
name, but at least user-facing messages and warnings should use the
correct terminology.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-02-24 19:43:40 -06:00
Jack Nagel f770f2af27 Formula#system: sanitize args before exec
This prevents passing nested arrays to exec; the same thing is done in
safe_system.

Fixes #10295.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-02-24 17:29:02 -06:00
Charlie Sharpsteen ab7067c9af ENV.rb: Set flags for Objective-C
We set defaults for C and C++, might as well do the same for Objective-C and
Objective-C++.

Closes #10354.
2012-02-21 21:34:48 -08:00
Adam Vandenberg 1771fcacb7 Yield to the inevitable 2012-02-21 20:14:56 -08:00
Adam Vandenberg 0f28c93f0e audit: flag imake as a build dep 2012-02-21 18:57:27 -08:00
Camillo Lugaresi cdb406fe2f Make fix_install_names more robust
fixes a problem with the opencv formula

Closes #10291.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-02-21 19:39:37 -06:00
Max Howell 14478ee12b Fixes #10369; Doctor output is unreadable. 2012-02-21 15:50:35 +00:00
Max Howell c1911f7ae2 Convert to Pathname if not Pathname as we need it to be 2012-02-21 12:45:45 +00:00
Max Howell 8585c69af6 Warn, don't advertise with a status header 2012-02-21 12:45:20 +00:00
Max Howell 9c9d9a7133 Move this code into FormulaInstaller
The correct location for it IMO. Also added warning for the user.
2012-02-21 11:40:06 +00:00
Max Howell 6b2340fd92 Don't hang if xcode-select -print-path is "/"
Introducing MacOS.xctools_fucked?.

Refs #10293.
2012-02-21 10:33:03 +00:00
Jack Nagel 8ee2a1d8b0 Remove -Qunused-arguments in ENV.enable_warnings
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-02-21 00:41:47 -06:00
Jack Nagel 3709168a71 Remove unused :force switches
The :force behavior for ENV.gcc has been the default for some time, and
was used to force vanilla gcc in case the gcc symlink pointed at
llvm-gcc; for ENV.clang, this doesn't mattera as clang is just clang.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-02-21 00:22:27 -06:00
Jack Nagel b1f5faea0a Silence unused argument warnings from clang
The clang frontend ignores a number of options that are accepted by gcc
and llvm-gcc. However, it produces a warning for each unused argument at
each invocation, which can result in many lines of noise, e.g.

   clang: warning: argument unused during compilation: '-rdynamic'

Since these arguments do not affect compilation, let's just silence the
warnings by passing '-Qunused-arguments' to clang by default.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-02-21 00:22:17 -06:00
Jack Nagel 3d3d7c6c88 ENV: clean up set_cpu_cflags a bit
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-02-21 00:20:29 -06:00
Adam Vandenberg d58cdae12e Complain about non-exes in bin and non-libs in lib 2012-02-20 18:03:31 -08:00
Jack Nagel fbb583719b upgrade: unlink relative to the correct keg
Calling Keg#unlink on "#{f.rack}/#{f.version}" will perform the unlink
relative to the _new_ keg, rather than the keg we are upgrading from.
Fix this by resolving the linked_keg entry and unlinking relative to it.

Fixes #10296.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-02-20 15:14:31 -06:00
Max Howell 341f9e1da4 Be more verbose for the /usr/bin /usr/local/bin PATH doctor 2012-02-20 18:25:13 +00:00
Max Howell 45552fcf4c Don't hang if xcode-select is set to "/" 2012-02-20 18:24:36 +00:00
Jack Nagel 18672b95bb brew --env: fix path to xcrun
Fixes #10327.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-02-19 20:32:06 -06:00
Jack Nagel 28e86f004a cleaner: remove lib/charset.alias files
This file is installed by a number of packages, but it really shouldn't
be. It is meant to be updated by packages that use it, but this is
broken (1) by software that doesn't do this correctly and (2) by the
symlink being overwritten by Homebrew's linking code.

It's presence can cause issues with tools that use libiconv/gettext.

Instead let's follow MacPorts' example and just remove it during the
clean stage.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-02-19 16:53:37 -06:00
Adam Vandenberg f7d4e5715d don't quit if already installed 2012-02-19 14:07:42 -08:00
Camillo Lugaresi 5ae547ad79 add ENV.O1
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-02-19 11:45:15 -08:00
Jack Nagel e961f35b57 test: returning false indicates failure
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-02-18 21:33:36 -06:00
Jack Nagel 71b10a04ce audit: use a heredoc for this long line
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-02-18 20:49:51 -06:00