aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMike McQuaid2017-04-17 14:20:51 +0100
committerGitHub2017-04-17 14:20:51 +0100
commit29b54dc16d71e8b0e86496aa43df00475971f7c9 (patch)
tree9fefb084a69df8ce608a2deea6214af030046970 /Library
parent1deb884314e875872032b86e327dc9f79e2cf042 (diff)
parent0948d2013adba23ecf22b59a2ff61453c2b6f63e (diff)
downloadbrew-29b54dc16d71e8b0e86496aa43df00475971f7c9.tar.bz2
Merge pull request #2473 from MikeMcQuaid/audit-language-module-requirements
audit: deprecate language module requirements.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/dev-cmd/audit.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/Library/Homebrew/dev-cmd/audit.rb b/Library/Homebrew/dev-cmd/audit.rb
index fb6fb62d0..79b6060bd 100644
--- a/Library/Homebrew/dev-cmd/audit.rb
+++ b/Library/Homebrew/dev-cmd/audit.rb
@@ -1021,6 +1021,10 @@ class FormulaAuditor
problem ":tex is deprecated."
end
+ if line =~ /depends_on\s+['"].+['"]\s+=>\s+:(lua|perl|python|ruby)(\d*)/
+ problem "Formulae should vendor #{$1} modules rather than use `depends_on ... => :#{$1}#{$2}`."
+ end
+
# Commented-out depends_on
problem "Commented-out dep #{$1}" if line =~ /#\s*depends_on\s+(.+)\s*$/