Require hardware where it is needed

This commit is contained in:
Jack Nagel 2013-06-01 16:27:53 -05:00
parent fa05fc2451
commit 41af459205
7 changed files with 3 additions and 9 deletions

View File

@ -1,3 +1,5 @@
require 'hardware'
module HomebrewEnvExtension
# -w: keep signal to noise high
SAFE_CFLAGS_FLAGS = "-w -pipe"

View File

@ -1,4 +1,5 @@
require 'os/mac/version'
require 'hardware'
module MacOS extend self

View File

@ -1,5 +1,4 @@
require 'testing_env'
require 'hardware'
class EnvironmentTests < Test::Unit::TestCase
def test_ENV_options

View File

@ -1,7 +1,6 @@
require 'testing_env'
require 'download_strategy'
require 'bottles' # XXX: hoist these regexps into constants in Pathname?
require 'hardware' # XXX: wat. fix this require mess!
class SoftwareSpecDouble
attr_reader :url, :specs

View File

@ -1,9 +1,6 @@
require 'testing_env'
require 'requirements/language_module_dependency'
# XXX: Figure out what env file needs to require hardware
require 'hardware'
class LanguageModuleDependencyTests < Test::Unit::TestCase
def assert_deps_fail(spec)
l = LanguageModuleDependency.new(*spec.shift.reverse)

View File

@ -1,8 +1,5 @@
require 'testing_env'
require 'formula_support'
# XXX: grrrrr
require 'hardware'
require 'bottles'
class SoftwareSpecTests < Test::Unit::TestCase

View File

@ -1,7 +1,6 @@
require 'testing_env'
require 'version'
require 'os/mac/version'
require 'hardware'
class MacOSVersionTests < Test::Unit::TestCase
def setup