Jack Nagel
6096ec9568
Unset LIBRARY_PATH before builds
...
See https://gcc.gnu.org/onlinedocs/gcc/Environment-Variables.html
Closes Homebrew/homebrew-versions#592 .
2014-12-17 14:40:05 -05:00
Jack Nagel
1a69ceaf7e
Recognize rpm file magic
2014-12-09 01:22:55 -05:00
Mike McQuaid
52cda8fd80
Allow searching/installing Homebrew Casks.
...
People want to install things like GIMP using Homebrew so let's make it
easier for them to find a decent installation method.
Closes Homebrew/homebrew#34496 .
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2014-11-30 17:59:02 +00:00
Jack Nagel
0578f1ff5a
Pull initialization code out of begin block
2014-11-09 18:17:10 -06:00
Jack Nagel
3c9cc18c17
Add ARGV.git?
2014-11-03 21:39:11 -06:00
Jack Nagel
cb09660516
Always set sysroot for Xcode-only systems
...
Fixes Homebrew/homebrew#33431 .
2014-10-29 11:03:54 -05:00
Jack Nagel
aaaab946ec
Make inreplace errors fatal
...
Closes Homebrew/homebrew#32649 .
Closes Homebrew/homebrew#32703 .
2014-09-28 01:11:31 -05:00
Jack Nagel
cb69f339b8
Intercept calls to sub! in inreplace blocks
2014-09-27 19:11:40 -05:00
Jack Nagel
e409aa3084
Clean up inreplace regexps
...
- use literal syntax
- escape interpolated variables
- remove intermediate variables
- remove unnecessary capture
2014-09-26 22:35:37 -05:00
Jack Nagel
2d16f8c202
Make Pathname#atomic_write truly atomic
...
As we know, files cannot be moved across filesystems atomically. In that
case, FileUtils.mv will make a copy. But if we create the temp file in
the same directory as the target, we can avoid this and use File.rename
directly.
Additionally, the rename should be the absolute last step, so that the
original file is preserved if altering ownership and permissions fails.
2014-09-20 17:11:16 -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
04dae13ae7
Replace CompilerQueue with predetermined priority lists
2014-09-18 15:50:54 -05:00
Jack Nagel
ae88549797
Remove fails_with? from the formula instance
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
b544f3e5f1
Clear GOBIN in environment setup
...
Closes Homebrew/homebrew#32014 .
2014-09-07 18:39:00 -05:00
Jack Nagel
b14851903c
Add a method for retrieving only flags from ARGV
2014-08-29 19:38:32 -05:00
Jack Nagel
db04b04135
Simplify implementation of ARGV.flag? and ARGV.switch?
2014-08-28 22:11:08 -05:00
Jack Nagel
54348f55d8
Use two-argument form of String#slice
2014-08-28 22:11:08 -05:00
Jack Nagel
e18da89f3c
Implement ARGV.named in terms of ARGV.options_only
2014-08-28 22:11:08 -05:00
Jack Nagel
7a5e4f5cca
ARGV.spec should be private
2014-08-28 21:35:52 -05:00
Mike McQuaid
58cb4444da
etc.install: handle recursive directory installs.
...
We need to install the helper module not just on `etc` but also on all
subdirectories of it too. Also, handle the case where we install
a subdirectory with etc.install.
Closes Homebrew/homebrew#26145 .
2014-08-26 08:30:47 +01:00
Jack Nagel
b0c1e5f7d6
Fix redefinition of x11 reader method in superenv
2014-08-24 14:32:10 -05:00
Jack Nagel
00220c40db
Don't overwrite optimization flag map in ENV.clang
2014-08-18 16:02:53 -05:00
xxxajk
1dc384b4c4
Fix mktmp to be generic as-per SUS/BSD.
...
Closes Homebrew/homebrew#31586 .
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2014-08-14 10:36:07 +01: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
5a2ae61e66
Add another TODO
2014-08-03 15:28:51 -05:00
Jack Nagel
fded4d0385
Remove an is_a check
2014-08-03 10:47:47 -05:00
Adam Vandenberg
fbee511eba
Pathname.binread
2014-07-29 07:25:27 -07:00
Adam Vandenberg
5af3d319d6
backport binwrite from Ruby 2.1+
2014-07-27 16:21:35 -07:00
Adam Vandenberg
8e96ce0aa5
Rename write_binary to binwrite
2014-07-27 15:30:46 -07:00
Adam Vandenberg
10e5fea01d
add Pathname.write_binary
2014-07-27 11:14:51 -07:00
Jack Nagel
a5895ad1fe
Check nil? || empty? instead of to_s.empty?
2014-07-18 11:43:37 -05:00
Jack Nagel
3439703c65
Drop pointless to_s call
2014-07-18 11:43:37 -05:00
Phillip Calvin
d4b6d8ec96
Remove commentary from error message
...
It might be best not to use the word "lame" here, as it's often considered to be an ableist slur.
Closes Homebrew/homebrew#30915 .
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2014-07-17 12:11:57 -05:00
Adam Vandenberg
12fe7e2771
nudge formatting
...
Needed for Emacs' ruby highlighting to work past this point in the file.
2014-07-13 12:04:45 -07:00
Jack Nagel
fe0c018a1a
No need to cache lookup that is only done once
2014-07-13 10:50:56 -05:00
Jack Nagel
c259866517
Raise Errno::ENOENT instead of RuntimeError from Pathname#install
2014-07-10 22:00:43 -05:00
Jack Nagel
284389a6bd
Make comment in Pathname#install more accurate
2014-07-10 15:39:55 -05:00
Jack Nagel
cf4080a9e0
Remove a RUBY_VERSION check, add a FIXME comment
2014-07-05 16:01:09 -05:00
Camillo Lugaresi
4001c6f8f1
stop Xcode tools from overriding deps when CLT is not installed
...
Closes Homebrew/homebrew#30641 .
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2014-07-03 16:25:59 -05:00
Jack Nagel
618b894c3e
Replace ComparableSet with a Requirements collection
2014-07-03 14:50:57 -05:00
Jack Nagel
ef9f6ec4af
Accept -s as shorthand for --build-from-source
...
This is experimental and will be reverted if it causes problems.
Closes Homebrew/homebrew#30392 .
2014-07-02 23:15:22 -05:00
Jack Nagel
32d84377d5
Move constants so we don't have to load all of ENV to get them
2014-07-02 21:58:43 -05:00
Jack Nagel
177eee419a
Replace find_all + each with grep
2014-07-01 21:39:15 -05:00
Jack Nagel
70f22fc31e
Use canonical_name in the exception message
2014-06-26 22:59:45 -05:00
Jack Nagel
cfd02fd415
Use canonical_name when checking LinkedKegs and opt
...
name is the user-provided string and may be an alias, path, or URL.
2014-06-26 22:57:49 -05:00