ilovezfs
197392b56d
Revert "Fix operator spacing."
2017-06-01 04:06:40 -07:00
Markus Reiter
d34ba7395b
Fix operator spacing.
2017-05-31 19:53:41 +02:00
Bob W. Hogg
e2c707d8b1
Stdenv: Add ENV.libxml2 and ENV.x11 for Linux
...
Add ENV.libxml2 primarily for the use of test do blocks.
Add a dummy ENV.x11 function.
See Linuxbrew/brew#356 and Linuxbrew/brew#382
2017-05-30 10:37:26 -07:00
Markus Reiter
4d5d6a65e3
Rename PATH#validate
to PATH#existing
.
2017-04-30 21:11:28 +02:00
Markus Reiter
314483f75c
Remove Array#to_path_s
.
2017-04-30 21:11:27 +02:00
Markus Reiter
3e4fe279b0
Use to_path_s
for determine_pkg_config_libdir
.
2017-04-30 21:11:27 +02:00
Mike McQuaid
45a7730f61
Fix and remove various TODOs.
...
Fix those that can be done so without tearing Homebrew to pieces and
remove the comments for those that can never be done.
2017-04-23 15:10:18 +01:00
Mike McQuaid
e50102d91e
ENV: deprecate old methods.
...
These should have been deprecated long ago but we didn’t really have
the necessary framework to do so.
2016-12-30 20:20:13 +00:00
Markus Reiter
84b2276fd8
Use guard clauses.
2016-11-13 23:00:47 +01:00
Markus Reiter
6c6a4c9fa7
RuboCop: Style/AccessorMethodName
2016-09-24 19:28:26 +02:00
Markus Reiter
58e36c7319
Fix Style/GuardClause.
2016-09-24 12:24:35 +02:00
Markus Reiter
e851c9bf6c
Style/Alias: Prefer alias
.
2016-09-23 18:19:53 +02:00
Markus Reiter
fe2d51e0b9
Fix Style/IfUnlessModifier.
2016-09-23 15:30:07 +02:00
Mike McQuaid
3982950e61
rubocop --auto-correct all hash-rocket usage.
2016-09-17 16:14:13 +01:00
Mike McQuaid
c3dab72e37
extend/ENV/std: fix Rubocop warnings.
2016-09-13 07:57:04 +01:00
Mike McQuaid
498e81c9fc
stdenv: port to generic OS. ( #456 )
2016-07-12 11:39:39 +01:00
msbit
01e8e180a8
ENV: mark gcc-6 as supporting C++11 ( #349 )
...
Add SharedEnvExtension#gcc_with_cxx11_support? to centralise the
logic for checking whether a compiler is known to support C++11.
Update logic to accept GCC 4.8 and above (including 6). Thereby also
address oversight in #163 where support for GCC 6 was added without
updating the C++11 compiler whitelist.
Add tests for Superenv#cxx11.
Closes #346 .
2016-06-16 14:15:28 +02:00
Mike McQuaid
375efe0945
Remove LLVM-GCC support. ( #252 )
...
At this point it's never a good compiler to use so let's just remove it.
2016-05-22 09:40:08 +01:00
Mike McQuaid
e316cc9296
Make development tools code cross-platform.
2016-05-08 16:51:22 +01:00
Misty De Meo
da643d942e
Explicitly list -arch in LDFLAGS on Leopard
2016-04-22 22:37:21 -07:00
Misty De Meo
967fa41e41
Set -faltivec in CFLAGS on Tiger
...
Setting -mcpu and -mtune on Tiger with gcc-4.2 exposes a bug in one of the
system headers, causing certain builds to fail. This can be fixed by
adding -faltivec to CFLAGS.
See: http://trac.macports.org/ticket/34213
2016-04-22 22:37:21 -07:00
Misty De Meo
35385e8c59
stdenv: stop setting ACLOCAL_PATH
2016-04-21 09:36:30 -07:00
Xu Cheng
ce7b32cec8
add HOMEBREW_ENV_PATH internal variable
...
`Library/ENV` like `Library/Homebrew` is part of Homebrew basecode. It
should be able to be accessed during the `brew tests`.
By adding HOMEBREW_ENV_PATH variable, we allow test suit to locate these
codes.
2016-03-21 19:07:38 +08:00
Tim D. Smith
fe37cc5271
Revert "Avoid constructing paths by string interpolation"
...
This reverts commit 8c7f3d859e8f715b6c63e4fe75e7a636aee4167f.
2016-03-19 19:14:50 +08:00
Tim D. Smith
87781f2a37
Avoid constructing paths by string interpolation
...
Closes Homebrew/homebrew#50154 .
2016-03-19 19:14:50 +08:00
Ryan Hendrickson
8ce81af67a
ENV: warn_if_universal_binaries_not_supported
...
Raise an error when attempting to create universal binaries with a GCC
that can't do so.
Closes Homebrew/homebrew#46630 .
Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2015-12-10 11:23:11 +01:00
Xu Cheng
3a68b915eb
Stdenv: add note on possible future deprecation
...
Closes Homebrew/homebrew#46043 .
Signed-off-by: Xu Cheng <xucheng@me.com>
2015-11-17 18:52:00 +08:00
Xu Cheng
baf3ca09b2
Stdenv should be tagged as private rather deprecated
2015-11-17 18:52:00 +08:00
Xu Cheng
06806f860d
remove unnecessary require statements
2015-10-18 22:57:42 +08:00
Mike McQuaid
2c959a7d58
More API documentation.
...
And remove the documented stuff from the `example-formula.rb`.
Closes Homebrew/homebrew#43241 .
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-08-29 15:43:16 +01: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
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
Jack Nagel
1bba5fd88a
Pass full match to warn_about_non_apple_gcc
2015-06-21 21:18:23 -04:00
Jack Nagel
aad4ed7faa
Undocument return value of ENV.deparallelize
...
It's not clear whether it returns MAKEFLAGS with or without -j<n>, and
neither is particularly useful behavior, given you can easily get the
exact value by calling ENV["MAKEFLAGS"]. So let's not commit to this
API.
2015-06-12 20:14:07 -04:00
なつき
3649b31765
ENV: Add gcc-5 to compilers support C++11
...
Closes Homebrew/homebrew#39758 .
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2015-05-16 11:16:55 -04:00
なつき
6181a786c0
compilers: support gcc 5
...
Closes Homebrew/homebrew#39470 .
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2015-05-08 22:23:30 -04:00
Misty De Meo
f5d6d80d5b
ENV.deparallelize: add block form for temporary change
...
Closes Homebrew/homebrew#39026 .
2015-04-25 12:45:31 -07:00
Jack Nagel
318c103802
Remove unnecessary encoding comments
...
These files do not contain any non-ASCII characters.
2015-01-03 23:44:26 -05:00
Jack Nagel
662f887e9a
Call reset in the superclass implementation of setup_build_environment
2014-09-18 16:44:20 -05:00
Jack Nagel
c5f2f6b539
Make --cc override the compiler selector
2014-09-18 15:50:54 -05:00
Jack Nagel
28c1c4ee15
Use only strings in ENV.x11
2014-09-11 16:56:21 -05:00
Jack Nagel
1c5995776f
The build environment should only deal with strings
2014-09-11 16:50:56 -05:00
Jack Nagel
c98fe91f13
Don't directly assign Pathname objects to environment variables
...
Fixes Homebrew/homebrew#32234 .
2014-09-11 16:50:56 -05:00
Jack Nagel
00220c40db
Don't overwrite optimization flag map in ENV.clang
2014-08-18 16:02:53 -05:00
Jack Nagel
e0f86a1a86
Pull effective arch detection into a method
2014-08-09 14:57:09 -05:00
Jack Nagel
9f6bd0798f
Use opt_bin
2014-08-06 20:52:36 -05:00
Jack Nagel
0fda322e0e
Use Pathname#split
2014-06-22 18:38:30 -05:00
Shaun Jackman
42c20b0979
Move the compiler-selecting methods to ENV/shared
...
Closes Homebrew/homebrew#30210 .
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2014-06-22 18:30:15 -05:00
Jack Nagel
6eb220d78f
Share code for sanitizing ENV between both build environments
2014-05-26 14:10:24 -05:00
Mike McQuaid
2fb6d2fdbe
ENV/std: use full paths to gcc versions.
...
This is consistent with how e.g. `gcc-4.2` is handled.
This means e.g. `ghc` can find `gcc-4.8` at runtime.
Fixes Homebrew/homebrew#28934 .
2014-05-06 16:45:50 +01:00