111 Commits

Author SHA1 Message Date
Xu Cheng
5241932b45 keg_relocate: fix absolute symlink 2015-09-11 18:32:35 +08:00
Xu Cheng
a88c40b8c8 core file style update 2015-08-22 13:15:33 +08: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
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
Mike McQuaid
ea5840ed61 keg_relocate: fix syntax error.
Closes Homebrew/homebrew#42408.
2015-08-03 14:25:38 +01:00
Xu Cheng
d62095710f More core files style updates 2015-08-03 20:38:20 +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
Xu Cheng
de6a9ff055 keg_relocate: relocate libtool files 2015-07-23 16:29:37 +08:00
Mike McQuaid
70739e9f05 keg_relocate: also relocate executable text files.
There are times (e.g. `ocaml`) when the `text_executable?` test will
match even although `file` does not consider it a text file. Ensure
that it's relocated in this case correctly.

References Homebrew/homebrew#41663.
Closes Homebrew/homebrew#41926.
2015-07-20 12:06:13 +01:00
Mike McQuaid
5db82b46b1 keg_relocate: don't match "text" in filenames. 2015-07-20 08:34:03 +01:00
Mike McQuaid
b9cdfe21fc keg_relocate: relocate all text files.
Work out what's text and what's not using `file`. Also, rename
`keg_fix_install_names` to `keg_relocate` because that's a more
accurate description of what it does now.

Closes Homebrew/homebrew#41663.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-07-18 19:52:56 -07:00