203 Commits

Author SHA1 Message Date
Xu Cheng
62be981016 use Pathname#executable? directly 2015-08-22 13:21:13 +08:00
Misty De Meo
727239e12f Merge bottle install without Xcode branch
Merge branch 'bottle_hooks'
2015-08-21 11:04:22 -07:00
William Woodruff
8793a68ee4 Add no-Xcode documentation for all classes, methods 2015-08-21 11:02:33 -07:00
William Woodruff
1face808f5 Add guards to calls that would trigger Xcode install requests
add guard in Formula#file_modified? to prevent git popup

add guard in Superenv.bin before calling MacOS::Xcode.version

add guard against missing Xcode/CLT in Xcode.uncached_version

return nil instread of 0 in uncached_version when Xcode/CLT are not present, to distinguish from linuxbrew behavior

checks against pour_bottle? and needs_relocation?, add guard around keg.relocate_install_names to check pour_bottle?/needs_relocation? as well

needs_relocation? becomes skip_relocation?, use cellar attr to indicate relocation instead of does_not_need_relocation

MacOS.can_build? becomes MacOS.has_apple_developer_tools?
2015-08-21 11:02:33 -07:00
William Woodruff
91e598cf3f Install: add BuildToolsError and BuildFlagsError
Add these new errors, and guards in formula installation and
cmd/{,un,re}install to match, move can_build? to the MacOS module,
flatten conditions, remove redundant can_build? check

reinstate removed (doctor) check
2015-08-21 10:59:09 -07:00
William Woodruff
85187bf6d3 MacOS: update locate_cctool
This becomes MacOS.{install_name_tool,otool}, only do check_xcode if
xcode is installed, otherwise emit a warning
2015-08-21 10:58:13 -07:00
Dominyk Tiller
212d0b82fd xcode: update 10.11 clang 2015-08-21 03:10:18 +01:00
Xu Cheng
b121e5fd7b more core file style updated by rubocop 2015-08-06 17:23:56 +08:00
BrewTestBot
13d544e11e Core files style updates.
Closes Homebrew/homebrew#42354.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-08-03 13:22:35 +01:00
Dominyk Tiller
46d45677cc xcode: update clang expectation for 10.11 2015-07-30 18:13:41 +01:00
Dominyk Tiller
639329cf80 xcode: update regex
Ensures we capture Clang's fourth-digit when it exists. This seems to be on pre-release
versions of OS X only, but is the cause of the misdetection of CLT up-to-date status
on 10.11 several weeks ago.

For full explanation, see Homebrew/homebrew#42261.

Closes Homebrew/homebrew#42261.
2015-07-30 18:07:07 +01:00
Dominyk Tiller
6a534f569d xcode: update clang for 10.11 2015-07-09 01:22:51 +01:00
Dominyk Tiller
754c950e3e xcode: add 6.4 expectation 2015-07-08 15:36:23 +01:00
Dominyk Tiller
0d12e4e601 mac: add xcode 6.4 expectation 2015-07-08 15:36:23 +01:00
Jack Nagel
929fd12650 Remove unused method 2015-06-27 16:25:44 -04:00
Dominyk Tiller
a4cf3c273b xcode: update clang version
Closes Homebrew/homebrew#41095.

Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
2015-06-27 19:31:40 +01:00
Jack Nagel
f59b164733 Add explicit branch for 10.11 in Xcode version list 2015-06-16 20:02:10 -04:00
Jack Nagel
f4027cc9ac "Mac OS X" -> "OS X" in copy 2015-06-16 20:02:10 -04:00
Dominyk Tiller
90c8b82d38 os: initial El Capitan support 2015-06-14 18:38:55 +01:00
Dominyk Tiller
ad467f0386 os: support xcode 6.3.2
Closes Homebrew/homebrew#39909.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-05-21 13:55:02 +01:00
Xu Cheng
2ea9d7749b non_apple_gcc_version: support gcc5
Closes Homebrew/homebrew#39899.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-05-19 16:10:17 +08:00
enami tsugutomo
0b4379e049 hardware: correctly detect early 2015 MacBook Pro.
Closes Homebrew/homebrew#38996.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-04-24 18:26:42 +01:00
Dominyk Tiller
a188f343a6 mac/xcode: add xcode 6.3.1 support
Closes Homebrew/homebrew#38514.
2015-04-23 09:23:21 +01:00
Dominyk Tiller
b7844d3b85 os/mac: add xcode 6.3.1 support 2015-04-23 09:23:20 +01:00
Dominyk Tiller
4d442b0316 os: support xcode 6.3
It’s Christmas. New stable OS X version, new Swift version, new Xcode,
new CLT and a new Clang version.

Closes Homebrew/homebrew#38468.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-04-09 11:25:15 +01:00
Dominyk Tiller
1c189cfc48 os: support xcode 6.2
Presume this will need to wait for the bots to be updated, but Xcode
6.2 has landed.

Closes Homebrew/homebrew#37549.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-03-10 08:33:08 +00:00
Jack Nagel
383929f336 Include more features in Hardware::CPU.features 2015-02-27 20:38:01 -05:00
Jack Nagel
1cca304f35 Make sysctl methods private rather than protected 2015-02-27 20:38:01 -05:00
Jack Nagel
889cfcc211 Drop unnecessary $?.success? check 2015-02-27 20:38:01 -05:00
Jack Nagel
1255f7b894 Move caching from sysctl_bool to sysctl_n 2015-02-27 20:38:01 -05:00
Jack Nagel
37c394f828 Add sysctl_n and sysctl_int methods to Mac hardware module 2015-02-27 20:38:01 -05:00
Viktor Szakats
fc2818b7a5 Use more https in urls and updated some lost links
Closes Homebrew/homebrew#35531.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2015-01-04 02:13:16 -05:00
Jack Nagel
9a2f2aee7e Use Utils.popen_read to avoid shelling out in a few places 2014-12-16 15:51:57 -05:00
Dominyk Tiller
b1a2104f0a os: xcode bump
Bumps to the latest Xcode 6.1.1.

Closes Homebrew/homebrew#34632.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2014-12-03 11:50:40 +00:00
Jack Nagel
e5e206f4f1 Revert "Revert "xcode: use 6.1 on Mavericks.""
This reverts commit 2b472a6e2634a7b7592abb7084b20a098f4a488b.
2014-10-29 11:03:54 -05:00
Mike McQuaid
7b02304b64 Improve API documentation output.
And include more files.
2014-10-26 15:42:41 +00:00
Mike McQuaid
19d12aee45 Import docs from wiki.
Closes Homebrew/homebrew#33211.
2014-10-26 14:57:36 +00:00
Jack Nagel
f29376c867 Revert "xcode: use 6.1 on Mavericks."
Pending resolution of Homebrew/homebrew#33431.

This reverts commit bf434e2f7d18ba7d77ac15d54a43c555bc4019c8.
2014-10-21 17:47:30 -05:00
Dominyk Tiller
5c3c728c47 xcode: use 6.1 on Mavericks.
Closes Homebrew/homebrew#33399.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2014-10-21 14:55:12 +01:00
Mike McQuaid
b0f51ac744 xcode: check clang exists to confim install. 2014-10-17 19:36:47 +01:00
Jack Nagel
da56a45025 Prefer current CLT package ID
It seems that "com.apple.pkg.CLTools_Base" was only used for one
release. New releases are using "com.apple.pkg.CLTools_Executables"
again.

Fixes Homebrew/homebrew#33063.
2014-10-10 13:08:50 -05:00
Jack Nagel
d4fad50e76 Update CLT version check 2014-09-21 14:19:48 -05:00
Mike McQuaid
409a7bce96 XQuartz 2.7.7 2014-09-21 10:15:05 -07:00
Mike McQuaid
d4f8931027 Xcode 6.0.1 2014-09-21 10:15:05 -07:00
Jack Nagel
67a9164278 Disable outdated Xcode doctor checks until the bots are updated 2014-09-18 10:35:59 -05:00
Jack Nagel
35618c8bfe Xcode 6.0.1
Closes Homebrew/homebrew#32394.
2014-09-18 10:21:49 -05:00
Dominyk Tiller
8205ebabcb Prefer Xcode 6.1 on 10.10
More Yosemite changes. Within two weeks or so, Xcode should be made
available on the App Store, at which point 10.9 will need to go from
“5.1.1” to “6.0” but whilst Yosemite is in Beta *everyone* should be
using the Xcode Beta builds according to Apple, so Yosemite should be
on 6.1 for the foreseeable, even when Apple releases Xcode 6.0 to 10.9
& below. 6.1 is still using the same Clang version number at this point.

Closes Homebrew/homebrew#32201.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2014-09-10 00:44:37 -05:00
Jack Nagel
04056284ba Realign case statement 2014-08-09 22:01:28 -05:00
Jack Nagel
62c6b281c9 Update unreleased version check 2014-08-09 22:01:28 -05:00
Dominyk Tiller
97af5a29f7 Initial Yosemite Support
Closes Homebrew/homebrew#31435.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2014-08-09 21:57:04 -05:00