Jack Nagel
db05618561
Use Dir.mktmpdir instead of shelling out to mktemp
...
Closes Homebrew/homebrew#37616 .
2015-03-14 20:45:21 -04:00
Jack Nagel
316d8d756c
Reduce scope of ensure block, remove conditionals
2015-03-10 23:26:54 -04:00
Xu Cheng
144453368e
test-bot pathname: use Utils.popen_read instead of backticks
...
Closes Homebrew/homebrew#37418 .
Signed-off-by: Xu Cheng <xucheng@me.com>
2015-03-06 22:19:24 +08:00
Xu Cheng
328fa80f41
pathname: skip directory in env_script_all_files
...
Closes Homebrew/homebrew#37180 .
Signed-off-by: Xu Cheng <xucheng@me.com>
2015-02-25 20:17:22 +08:00
Jack Nagel
f438af9915
Don't prune cellar paths when cellar is in /opt
...
Fixes Homebrew/homebrew#35382 .
2015-02-07 13:54:33 -05:00
Jack Nagel
120bd43f87
Buffer 16K at a time
2015-01-05 10:45:05 -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
318c103802
Remove unnecessary encoding comments
...
These files do not contain any non-ASCII characters.
2015-01-03 23:44:26 -05:00
Jack Nagel
a955665102
Preserve backtrace from original exception
2014-12-29 15:23:01 -05:00
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