Jack Nagel
99976efeed
Make usage of ObserverPathnameExtension more obvious
...
Remove use of globals.
Closes #21795 .
2013-08-10 19:02:00 -05:00
Adam Vandenberg
de9ff43b81
ENV: add usage note to ncurses_define
2013-08-05 14:47:02 -07:00
Jack Nagel
3cf3749e6e
Pathname#write: don't check ARGV.force?
...
Closes #21390 .
2013-07-22 21:26:42 -05:00
Phil Smith
da774ad4d9
typo
...
Closes #21385 .
Signed-off-by: Adam Vandenberg <flangy@gmail.com >
2013-07-22 11:24:40 -07:00
Jack Nagel
b2c50ef57d
Add String#end_with?
...
I'm tired of not remembering if start_with?/end_with? are portable, so
just add them both if they're not defined.
2013-07-19 22:32:57 -05:00
Jack Nagel
57ad4d40c5
Fix String#start_with? implementation
...
It is supposed to accept a variable number of prefixes, and also to
check if they are convertible to strings. This matches behavior
documented in RubySpec.
2013-07-19 22:31:07 -05:00
Adam Vandenberg
d53c3ee48a
add ARGV.value
2013-07-17 06:58:10 -07:00
Jack Nagel
411d064725
Handle NULs in link targets in Pathname#resolved_path_exists?
...
Fixes #19475 .
Fixes #21184 .
2013-07-13 16:56:43 -05:00
Jack Nagel
0e46fbb295
Remove unreachable branch in ENV.fortran
...
Now that this is handled by a Requirement with a default formula, this
code cannot be triggered under normal circumstances.
The advice given has now been moved to the Formula Cookbook on the wiki.
2013-07-11 13:03:25 -05:00
Jack Nagel
64ae87bb92
Don't use install_p directly
2013-07-06 11:29:33 -05:00
Mike McQuaid
6815e701ef
ARGV: filter build-bottle from dependencies.
...
Fixes #20682 .
2013-06-26 19:25:39 +01:00
Adam Vandenberg
80135fe5a9
Add Fortran ENV helpers
2013-06-24 07:38:25 -07:00
Mike McQuaid
7eb6117444
ARGV: ensure ? methods return truth values.
2013-06-22 11:13:59 +01:00
Jack Nagel
7a9ed17fbb
Splatted parameter is always an array
2013-06-20 16:22:55 -05:00
Jack Nagel
73a949b769
Fix another constant reference
2013-06-14 11:49:00 -05:00
Jack Nagel
0cc9b4d416
Fix constant reference
2013-06-14 11:09:53 -05:00
Jack Nagel
53fbb54af7
Favor compound if over compound unless
2013-06-14 10:34:20 -05:00
Jack Nagel
e955cf55ca
Use ||= instead of unless
2013-06-14 10:34:20 -05:00
Jack Nagel
47d07b24b0
Remove outdated comment
2013-06-14 10:34:20 -05:00
Jack Nagel
c3b163fab8
Assign this inline
2013-06-14 10:34:19 -05:00
Jack Nagel
e539faabff
Delete rather than assign nil
2013-06-14 10:34:19 -05:00
Jack Nagel
f9d73212ac
Simplify nested conditional
2013-06-14 10:34:19 -05:00
Jack Nagel
343ad0cbb3
Use has_key? rather than accessing the value
2013-06-14 10:34:18 -05:00
Jack Nagel
aaec242d11
Rename single-letter variable
2013-06-14 10:34:18 -05:00
Jack Nagel
f9c0275797
Make flag lists into constants
2013-06-14 10:34:18 -05:00
Jack Nagel
b5105dc693
ENV: clean up set_cpu_flags and set_cpu_cflags usage
2013-06-14 10:34:18 -05:00
Jack Nagel
e17d2a24fc
Use Hardware::CPU module
2013-06-14 10:34:17 -05:00
Adam Vandenberg
f7fbbe79f4
Remove adamv-alt references.
...
Closes #20364 .
2013-06-09 07:32:06 -07:00
Misty De Meo
30c79ab65b
Add :ld64 dependency
...
This allows formulae which won't build with Tiger's ld to conditionally
request a dependency on the ld64 formula. This modifies the build
environment appropriately, and will only be active on Tiger.
2013-06-08 19:10:38 -05:00
Adam Vandenberg
ebc38db960
Sniff for non-tarred gzips
...
Don't try to untar non-tarred gzips.
2013-06-08 15:37:32 -07:00
Jack Nagel
a41d7942a0
Add Enumerable#group_by
2013-06-08 12:23:14 -05:00
Jack Nagel
1f19374e37
Move oldest_cpu to Hardware
2013-06-06 16:02:27 -05:00
Samuel John
072e8f903c
ENV.userpaths! Hotfix to prefer brewed stuff
...
The depends_on 'nose' => :python
tests fails even if people did `pip install nose`
with their brewed pythons because during
the tests the PATH is set up such that
/usr/bin comes before HOMEBRE_PREFIX/bin.
This is a hot fix. Proper fix need resorting
the PATH.
2013-06-04 22:33:24 +02:00
Jack Nagel
0759cce3c2
Extract attr_rw from Formula for reuse
...
Closes #20239 .
2013-06-04 11:06:18 -05:00
Jack Nagel
b433d51586
Require hardware where it is needed
2013-06-01 19:38:48 -05:00
Jack Nagel
2959017123
Simplify implementation of ARGV.flag? and .switch?
2013-05-20 22:34:54 -05:00
Jack Nagel
e697c1ab6f
Fix set_cpu_flags invocations in ENV.fortran
...
Fixes #19013 .
Fixes #19862 .
Fixes #19921 .
2013-05-19 11:18:53 -05:00
Mike McQuaid
646150ade9
Fix --build-bottle CFLAGS.
...
The CFLAGS were previously not generic enough.
References #18944 .
References #19179 .
2013-05-11 12:18:25 +01:00
Desmond Brand
fc565bee26
Overwrite broken symlinks with --overwrite
...
Closes #19480 .
Signed-off-by: Misty De Meo <mistydemeo@gmail.com >
2013-05-09 09:21:34 -05:00
Jack Nagel
e51d0e4d0c
Only remove DS_Store on ENOTEMPTY
2013-04-27 15:21:05 -05:00
Jack Nagel
9d1a86cda1
Avoid calling to_s on the same Pathname multiple times
2013-04-20 13:50:42 -05:00
Jack Nagel
4a0d57283e
Performance fix for Pathname#prepend_prefix
...
See 05a456c231dc6da7cb0f7c70cb21feaf9a0d803c; same story.
2013-04-14 22:38:18 -05:00
Jack Nagel
05a456c231
Performance fix for Pathname#chop_basename
...
This is an internal method, but is called a bunch of times in
performance-critical codepaths, and is ultra slow because the constant
is interpoplated into the Regexp each time the method is called.
Alas, this has been fixed in Ruby 1.9+.
2013-04-14 21:56:04 -05:00
Jack Nagel
bd15c06992
Recognize 7z files by magic bytes, not filename
2013-04-03 23:30:32 -05:00
Jack Nagel
d839567f1f
Requirement: env DSL is evaluated in context of self, not ENV
...
This was meant to support:
env do |req|
append_path 'PATH', req.some_method
...
end
i.e., the block was evaluated in the context of ENV. But it turned out
to be not so useful after all, so I'm ripping it out before something
actually depends on it.
2013-04-01 16:17:35 -05:00
Jack Nagel
6078e757bb
extend/fileutils: suppress discarded method definition warnings
2013-03-28 17:37:29 -05:00
Misty De Meo
e7f66519dc
Hardware: separate out CPU values into CPU module
...
* CPU functions now exist in Hardware::CPU
* Added compatibility functions in compat/hardware_compat.rb
* Names are less specific to Mac hardware, e.g. CPU.family instead of
Hardware.intel_family
* Hardware::CPU.family works for both Intel and PowerPC
* New helper methods on CPU, like .sse4? and .altivec?
Signed-off-by: Misty De Meo <mistydemeo@gmail.com >
2013-03-23 13:40:18 -05:00
Misty De Meo
3608c33429
Replace remaining shelled-out whiches
2013-03-21 08:37:51 -05:00
Jack Nagel
832288e2fc
ENV: clear influential include path vars
2013-03-16 13:51:30 -05:00
Mike McQuaid
22322867a1
Don't run certain functions on non-MACOS.
2013-03-11 18:26:25 +00:00