Commit Graph
184 Commits
Author SHA1 Message Date
Jack Nagel 01f5dc0dce libextractor: add runtime dependency on libtool
Fixes #23306.
2013-10-18 20:14:16 -05:00
Mike McQuaid 31526f154a audit: fix go audit problems. 2013-10-16 08:36:32 +01:00
Jack Nagel 55f130397c Remove audit check for XZ
Any formula with a URL that ends in ".xz" now gets this dependency
automatically, so this check no longer does anything.
2013-10-15 22:56:04 -05:00
Adam Vandenberg e15a90f826 don't audit jp sourceforge URLs 2013-09-22 22:06:53 -07:00
Jack Nagel 92449566f5 More precise output for spec audits 2013-09-19 12:55:13 -05:00
Jack Nagel 69067e32fe Audit spec resources 2013-09-19 12:55:13 -05:00
Jack Nagel 7fbf2ab8e4 Extract ResourceAuditor from FormulaAuditor 2013-09-19 12:55:12 -05:00
Mike McQuaid 0675ba2946 Rename PythonInstalled to PythonDependency.
Make it more consistent with other requirements.
2013-09-14 12:21:49 +01:00
Mike McQuaid c053779a98 audit: print warning and description. 2013-09-07 17:38:15 +01:00
Samuel John d2fea17e17 PythonInstalled: Allow formulae to set/append PYTHONPATH
Improve robustness of `PYTHONPATH` by first unsetting it (during
`satisfy`) so that the `PythonInstalled` can get the `python.version`
and so forth and then, after that, setting the `PYTHONPATH` to our
`global_site_packages`.
In the `python_helper` we append to the `PYTHONPATH` so if that var has
been set in a formula, it is respected.
Brew audit does no longer complain about setting the
`ENV['PYTHONPATH']`.
2013-09-03 10:46:06 +02:00
Jack Nagel 1c991b249e audit: activate ENV extensions 2013-08-19 13:03:41 -05:00
Jack Nagel 77d02c537d Move common stuff to extend/ENV.rb 2013-08-19 12:32:57 -05:00
Adam Vandenberg 08c70fd341 audit: show real name for aliases 2013-08-14 21:35:46 -07:00
Mike McQuaid c45c77d031 audit: don't complain about bottle versions.
`brew bottle` already complains and this is a niche case.

References #21374.
2013-07-28 16:26:16 -07:00
Adam Vandenberg 12426c87b1 audit: add TODO 2013-07-23 10:51:07 -07:00
Jack Nagel 6f5897ae96 audit: use !~ instead of "not ... =~" 2013-07-23 11:22:16 -05:00
Jack Nagel a82c997bb9 audit: fix dep name escaping 2013-07-23 11:22:15 -05:00
Jack Nagel 49e8f9b5ff audit: escape dep before regexp interpolation 2013-07-22 22:53:43 -05:00
Jack Nagel 65786d6ebe audit: fix indentation 2013-07-22 22:53:22 -05:00
Jack Nagel 9456d8a4ee audit: fix broken condition 2013-07-22 22:53:11 -05:00
Mike McQuaid d6a6caefb3 Warn more about failing bottle version detection.
This is needed for local bottle installation and also possible when
detecting bottle versions from URLs.
2013-07-18 09:56:55 -07:00
Adam Vandenberg 3e1eab105a audit: skip an audit for mongodb 2013-07-17 06:58:11 -07:00
Adam Vandenberg 0a42c40a8b audit: ARGV.find is a warning, .value is allowed 2013-07-17 06:58:10 -07:00
Jack Nagel b2612035b7 Fix SYMROOT audit 2013-07-16 23:15:22 -05:00
Jack Nagel 58eaa1dc0e More linewise audits 2013-07-16 21:39:46 -05:00
Jack Nagel ae891756e9 Audit text linewise 2013-07-16 21:25:02 -05:00
Jack Nagel 7ddf54f781 Audit conditional deps that can be made declarative 2013-07-16 21:24:54 -05:00
Jack Nagel 905681f431 Fix some false-positive build-time dep audits 2013-07-16 15:49:11 -05:00
Mike McQuaid 071112c6fc audit: use FormulaCellarChecks module.
Perform post-installation checks if a formula is installed.
Added for brew test-bot to be able to fail on bad Cellar installation.
2013-07-16 13:29:37 -07:00
Samuel John e66faeb8a0 Audit LanguageModuleDependency for python
LanguageModuleDependency.new(:python,...) is deprecated now.
Replace it by
    depends_on :python => ['module' => 'name-on-PyPi']
2013-07-16 11:10:14 +02:00
Adam Vandenberg dd4c6f0675 audit: improve comment 2013-07-12 23:00:08 -07:00
Adam Vandenberg 1f05ec1535 audit: remove github warning
All core formulae have been migrated to .io addresses except
for software maintained by github itself.
2013-07-12 21:26:55 -07:00
Adam Vandenberg d9aa5e3bca github doesn't use .io urls 2013-07-09 20:50:30 -07:00
Adam Vandenberg 6afd6e0f48 audit more template comments 2013-07-05 12:05:29 -07:00
Adam Vandenberg da3e11c6f0 Add audit for leading 'v' in version numbers 2013-07-04 08:49:10 -07:00
Adam Vandenberg cd9a87ef44 audit default template comments 2013-07-03 09:20:41 -07:00
Adam Vandenberg 6cf14a7196 audit sourceforge URLs even harder 2013-06-30 12:17:47 -07:00
Jack Nagel 99262f41b0 Don't attempt to audit md5 checksums, but complain if they are used 2013-06-29 15:36:44 -05:00
Jack Nagel a16c80add0 Detect versions in tag specs
Closes #18300.
Closes #20891.
2013-06-28 21:17:23 -05:00
Jack Nagel fa69f8e3b6 Add an exception for imagemagick in build-time dep audit 2013-06-27 21:17:28 -05:00
Jack Nagel ce0b989c63 Add syntax sugar for MPIDependency
Closes #20797.
2013-06-26 22:18:13 -05:00
Jack Nagel 2db090fd4a audit: don't try to audit missing deps
Refs #20829.
2013-06-26 18:09:12 -05:00
Adam Vandenberg 09e477d1f0 Update audit for Fortran dependency 2013-06-24 07:38:25 -07:00
Jack Nagel 70069c5d75 Separate formula conflicts from requirements
Closes #20357.
2013-06-09 13:45:25 -05:00
Samuel John 05b3fbc810 Improved audit of python stuff 2013-06-07 17:58:55 +02:00
Jack Nagel 96f3f5dd98 Remove postgresql and mysql audit noise
Closes #20159.
2013-06-04 11:15:31 -05:00
Samuel John 0b50110107 Python 2.x and 3.x support
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-03 17:29:43 +02:00
Adam Vandenberg 577cb5a2b2 Audit url/devel/head for redundant :using 2013-05-27 22:25:34 -07:00
Jack Nagel 8080d17098 audit: drop redundant 'each' after 'grep' 2013-05-27 18:31:18 -05:00
Jack Nagel 4bcb452d72 audit: fix version audit for Version subclasses
The version isn't redundant if a subclass of Version is specified.
2013-05-14 20:17:00 -05:00