Commit Graph
368 Commits
Author SHA1 Message Date
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
Mike McQuaid bf0a97b79c Add with_system_path to run using system PATHs.
Needed for Linux compatibility.
2013-03-11 18:26:25 +00:00
Mike McQuaid 6c32a0d075 Add current Ruby globals.
Allows access to the Ruby path. Needed for Linux
porting.
2013-03-11 18:26:25 +00:00
Jack Nagel d52032f748 Adjust BOTTLE_EXTNAME_RX for :snow_leopard_32 2013-03-09 17:38:49 -06:00
Jack Nagel 79a7cf6ab1 Index pkgconfig directories by MacOS.version 2013-03-09 14:46:01 -06:00
Mike McQuaid 4e1d37ebdc Add environment variable to build bottles. 2013-03-01 17:49:09 +00:00
Mike McQuaid 041060e28f Support 32-bit 10.6 bottles.
Closes #17735.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2013-03-01 17:49:09 +00:00
Jack Nagel 4d341f2115 Don't shadow outer local variables 2013-02-18 12:13:36 -06:00
Jack Nagel 1f7e3e7ec8 Remove redundant return 2013-02-15 00:36:03 -06:00
Jack Nagel a19b7d5793 Make this more idiomatic 2013-02-15 00:35:52 -06:00
Jack Nagel 18ff8a67fb Fix Regexp encoding under 1.9/2.0 2013-02-10 15:26:07 -06:00
Jack Nagel 37f198542d Move ruby methods to FileUtils extension 2013-02-02 11:24:55 -06:00
Mike McQuaid 1da2d5dd92 Remove MD5 support.
Closes #17317.
2013-01-30 22:36:12 -08:00
Mike McQuaid 3318b08a2e Don't use underscores in (new) bottle filenames.
Closes #14270
2013-01-29 17:14:09 -08:00
Mike McQuaid e9eac42daa Cleanup old bottle syntax. 2013-01-29 17:14:00 -08:00