Commit Graph
141 Commits
Author SHA1 Message Date
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
Jack Nagel 0778025732 audit: only generate aliases list once 2013-05-07 18:40:14 -05:00
Jack Nagel b304a3caf1 audit: only set up the build environment once 2013-05-07 18:39:45 -05:00
Jack Nagel ddb90ed0f8 audit: fix interpolation check
Fixes #19363.
2013-04-26 19:18:13 -05:00
Jack Nagel 10e60b092c audit: warn about top-level methods 2013-04-22 15:19:03 -05:00
Jack Nagel 92424d5b66 audit: clean up some regexps 2013-04-06 22:12:21 -05:00
Jack Nagel 5af9e408a8 audit: check build-time deps programmatically 2013-04-06 22:11:02 -05:00
Jack Nagel 19ad297649 audit: rescue only FormulaUnavailableError 2013-04-06 22:10:43 -05:00
Jack Nagel 11774c888c audit: clean up URL audits 2013-04-06 22:10:33 -05:00
Jaime Marquínez Ferrándiz 755e3cc8c6 brew audit: find *.github.com pages
And suggest changing them to *.github.io

Closes #19012.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-04-06 13:12:53 -07:00
Jack Nagel 8ff6ea9900 Make some groups non-capturing 2013-04-05 22:00:36 -05:00
Jack Nagel 17379509ed Use #grep where it will suffice 2013-04-05 22:00:36 -05:00
Jack Nagel 90500c02e4 audit: fix check for depending on requirement classes
Don't complain if it's instantiating the class so that it can pass
arguments.

Fixes #18883.
2013-04-01 11:35:56 -05:00
Adam Vandenberg f12c65becb audit: don't complain about postgis using postgresql 2013-03-28 13:10:41 -07:00
Adam Vandenberg effea228a3 audit github downloads
We want the new-style "/archive/" downloads.
2013-03-15 15:41:22 -07:00
Tobias Lidskog ad6abf776e audit: Improve url audits.
* Add url check for GitHub home pages using http.
* Add url check for GitHub repo urls using http.
* Include url in error messages about url issues.

Closes #18372.
2013-03-15 15:41:22 -07:00
Tobias Lidskog 5da9cd8754 audit: allow ARGV.find
This fixes a false positive for mongodb.

Closes #18370.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-03-10 12:13:50 -07:00
Tobias Lidskog 4a3158610d audit: correct inverted has_trailing_newline condition
has_trailing_newline? checked if formula did not have a trailing
newline. Invert regex and invert audit check.

Closes #18359.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2013-03-09 14:42:51 -06:00
Jack Nagel 71524dc44a audit: don't complain about versioned automake depending on autoconf 2013-02-21 16:47:35 -06:00
Jack Nagel 1b6204e52c Silence warning about unescaped square brackets 2013-02-18 12:13:36 -06:00
Jack Nagel 33393a2597 Remove unused variables 2013-02-18 12:13:35 -06:00
Jack Nagel 5a34e80675 Don't use deprecated form of attr
The form "attr :name, true" is deprecated and causes Ruby to emit a
warning in verbose mode. Using attr_{reader,writer,accessor} is more
clear anyway, so do so.
2013-02-18 12:13:34 -06:00
Jack Nagel 7806852990 audit: allow alpha.gnu.org URLs 2013-02-07 15:34:13 -06:00
Jack Nagel 41cd32838d audit: check for missing xz build-time dep
Closes #17565.
2013-02-03 14:57:33 -06:00
Jack Nagel 437a30d641 audit: mark intltool as a build-time dep 2013-02-03 14:48:02 -06:00
Jack Nagel 15d74ebc4c audit: inspect dep name, not dep object 2013-02-02 01:00:46 -06:00
Jack Nagel de5b7c0fe7 audit: wrap patches in ENV.with_build_environment block 2013-02-01 14:27:34 -06:00
Mike McQuaid 1da2d5dd92 Remove MD5 support.
Closes #17317.
2013-01-30 22:36:12 -08:00
Adam Vandenberg 4cb21e4c39 audit: hint about depends_on Class 2013-01-27 14:54:48 -08:00
Jack Nagel 9acf2b62dd audit: warn about nonexistent options passed to deps 2013-01-26 12:14:51 -06:00
Adam Vandenberg 8a1939b637 audit: remove silly audit, remove duplicate audit 2013-01-04 09:30:57 -08:00
Adam Vandenberg 4ad14737a4 audit: check conflict names 2013-01-03 11:22:31 -08:00
Adam Vandenberg 4e617d2400 audit: loosen ARGV check 2012-10-21 13:24:00 -07:00
Max Howell 338704e4a5 Provide more information about bad sf urls 2012-09-18 16:27:35 -04:00
Adam Vandenberg 3a052fe00b Add skip_clean :all to audit 2012-09-13 07:14:45 -07:00
Jack Nagel 9a68eb188a Audit check for old MacOS version methods
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-09-10 16:40:13 -05:00
Jack Nagel a1397a49ae audit: allow some forms of gist patches
The problem is not the raw URLs, but URLs that do not contain the commit
hash corresponding to a particular version of the gist.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-09-06 20:47:05 -05:00
Adam Vandenberg 81210f65d5 audit: swig is a build time dep 2012-09-05 21:12:08 -07:00
Jack Nagel 7422bc46c3 Audit check for MACOS_VERSION
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-09-04 18:18:14 -05:00
Adam Vandenberg 74d360fd10 Exempt automake from some audits 2012-09-04 10:43:48 -07:00
Adam Vandenberg 3e6403c16b add audit for ENV.x11 2012-09-03 19:49:33 -07:00
Mike McQuaid 800e7cff54 brew-audit: recommend SHA1 over MD5. 2012-09-03 11:20:07 -07:00
Max Howell 59736fb537 superenv: build-environments that just work
1. A minimal build environment, we don't set CFLAGS, CPPFLAGS, LDFLAGS, etc. the rationale being, the less that is set, the less variables we are introducing that can break builds.
2. A set of scripts that replace cc, ld, etc. and inject the -I, -L, etc. flags we need into the args passed to the build-tools.

Because we now have complete control over compiler instantiations we do a variety of clean-up tasks, like removing bad flags, enforcing universal builds and ensuring makefiles don't try to change the order of library and include paths from ones that work to ones that don't.

The previous ENV-system is still available when --env=std is specified.

superenv applies to Xcode >= 4.3 only currently.
2012-08-29 12:41:34 -04:00
Jack Nagel d205a1a720 audit: Formula#deps returns Dependency objects
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-27 22:59:29 -05:00