aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/requirements.rb
AgeCommit message (Collapse)Author
2014-07-21requirements: add JavaDependency.Mike McQuaid
Requested in Homebrew/homebrew-science#1039. Closes #30852.
2014-06-03add homebrew to Tex requirementdgwakeman
Closes #29834. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2014-05-30Remove build attribute from Xcode depJack Nagel
2014-05-19Remove CLTDependencyJack Nagel
Closes #29379.
2014-04-21rewrite TeX requirement messageMario Mueller
Closes #28588. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2014-03-13Stop letting GitDependency inject HOMEBREW_PREFIX/bin into the environmentJack Nagel
2014-03-12requirements: remove unneeded Python27Dependency.Mike McQuaid
PythonDependency now implies this.
2013-12-30Add python27 dependencyMisty De Meo
Fixes #25561. Fixes #25410.
2013-10-23Improve Xcode and CLT installation instructions.Mike McQuaid
2013-09-28Infer dependencies from download strategies and URLsJack Nagel
Closes #20849. Closes #22871.
2013-09-14MinimumMacOSRequirement: rename file.Mike McQuaid
Should be using minimum_mac_os_requirement.rb
2013-08-10Update URL for CLT downloadMisty De Meo
http://connect.apple.com is still down, but https://developer.apple.com/downloads has all of the Apple developer downloads available. Fixes #21812.
2013-08-01ArchRequirement: support :intel, :ppcMisty De Meo
2013-08-01fix typoMerelyAPseudonym
Closes #21601. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-07-01Remove message from default_formula'd requirementsMike McQuaid
2013-07-01CLT is just CLT now; not "for Xcode".Mike McQuaid
References #17383.
2013-06-24Add :fortran requirementAdam Vandenberg
2013-06-16Add minimum OS X version requirementAdam Vandenberg
Closes #19998. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-06-09Separate formula conflicts from requirementsJack Nagel
Closes #20357.
2013-06-03Python 2.x and 3.x supportSamuel John
New `depends_on :python` Dependency. New `depends_on :python3` Dependency. To avoid having multiple formulae with endings -py2 and -py3, we will handle support for different pythons (2.x vs. 3.x) in the same formula. Further brewed vs. external python will be transparently supported. The formula also gets a new object `python`, which is false if no Python is available or the user has disabled it. Otherwise it is defined and provides several support methods: python.site_packages # the site-packages in the formula's Cellar python.global_site_packages python.binary # the full path to the python binary python.prefix python.version python.version.major python.version.minor python.xy # => e.g. "python2.7" python.incdir # includes of python python.libdir # the python dylib library python.pkg_config_path # used internally by brew python.from_osx? python.framework? python.universal? python.pypy? python.standard_caveats # Text to set PYTHONPATH for python.from_osx? python.if3then3 # => "" for 2.x and to "3" for 3.x. Further, to avoid code duplication, `python` takes an optional block that is run twice if the formula defines depends_on :python AND :python3. python do system python, 'setup.py', "--prefix=#{prefix}" end Read more in the Homebrew wiki.
2013-06-02PostgresqlDependency: use canonical name for default formulaJack Nagel
2013-05-10Allow requirements to specify a default formula.Mike McQuaid
This allows default resolution of requirements without user intervention. Closes #19627.
2013-05-06ArchRequirement: takes a single archMisty De Meo
Fixes #19646.
2013-04-17Add :hg build requirement.Adam Vandenberg
Closes #19074.
2013-04-02Shrink requirements.rbJack Nagel
2013-04-02Simplify setting this ivarJack Nagel
2013-04-02Fix chicken scheme importsJack Nagel
2013-04-02Move x86_64 Requirement into coreJack Nagel
Closes #18886.
2013-04-02Use satisfy syntax for CLTDependencyJack Nagel
2013-04-01Fix X11 env setupJack Nagel
2013-04-01Requirement: env DSL is evaluated in context of self, not ENVJack Nagel
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-02-19Fix X11 proxy constant lookup under 1.9+Jack Nagel
2013-02-12Establish a convention for Requirement namesJack Nagel
The name attribute of requirements is used when generating options for the :optional and :recommended dependency tags. Unless otherwise specified, the name attribute of a Requirement will be populated by stripping any module prefixes from the beginning and "Dependency" or "Requirement" from end of the class name and downcasing the result. Closes #17759.
2013-02-09ConflictRequirement: pass argument to superclass initalizerJack Nagel
2013-02-08LanguageModuleDependency: foward args to superclass initalizerJack Nagel
2013-02-02Ensure :cairo and :pixman resolve to standard formula depsJack Nagel
We do not use X11 to satisfy these deps for consistency reasons, but we should continue to support the symbols for compatibility.
2013-01-31Proper recursive expansion of requirements with filteringJack Nagel
Expand requirements recursively while applying the same optional? and recommended? filters that dependencies are run through. Options generated by requirements are now checked against the correct list of requirements, eliminating the temporary "best guess" logic in the installer.
2013-01-31Create proxy classes for "partial" X11 dependenciesJack Nagel
When a formula's dependency tree contains more than one X11 dependency, they are de-duplicated by comparing the min_version attribute. However, this can result in broken dependency trees if one of the X11Dependency objects was actually specified as e.g. `:libpng`. In practice, this only matters when one or more of the dependencies has additional metadata that makes it distinct from the rest, i.e. an :optional or :recommended tag. To combat this, make these special, "partial" X11 dependencies instances of different classes so that they are not de-duped. It will still be necessary, at the time when requirements are expanded by the installer, to de-duplicate any remaining X11 dependencies after applying the optional/recommended filters in order to avoid duplicated modifications to the environment (as ENV.x11 is not idempotent). c.f. #17369.
2013-01-28LanguageModuleDependency: call super() to generate tags listJack Nagel
Fixes #17379.
2013-01-28Allow specifying a name attribute for X11DependencyJack Nagel
2013-01-27Invoke super() in requirement subclassesJack Nagel
2013-01-26Split dependency classes into separate filesJack Nagel
2013-01-26Tag Xcode and CLT requirements as build-timeJack Nagel
This way they can be skipped when installing bottles.
2013-01-26Add "depends_on :clt"samueljohn
2013-01-22Infer path to be added for requirements that search PATHJack Nagel
When a requirement is specified like: satisfy { which "foo" } There is no reason that we should inject all of ENV.userpaths! into the build environment. Instead, infer the directory to be added to PATH from the Pathname that is returned. This is another step towards condensing the "which program" requirements down into a one-liner DSL element.
2013-01-21Use new requirement syntaxJack Nagel
2013-01-21Block-style env DSL examplesJack Nagel
2013-01-21ENV.with_build_environmentJack Nagel
2013-01-14fix grammarAdam Vandenberg
2013-01-13Add tex requirementXiyue Deng
* Detect `latex' and `bibtex' commands. * Recommend installing MacTeX when no LaTeX installation is found. Signed-off-by: Adam Vandenberg <flangy@gmail.com>