aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorSamuel John2013-07-16 11:12:14 +0200
committerSamuel John2013-07-16 11:12:14 +0200
commit4be7e33a1df313d9a630d26758bc1339430885e5 (patch)
tree1185c563cf12e3b31a3b8cf78d6e815a8720fad0 /Library
parente66faeb8a04ffd412fd1c60f055f718cf1993d38 (diff)
downloadhomebrew-4be7e33a1df313d9a630d26758bc1339430885e5.tar.bz2
Fix audit warnings for python modules
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/libxml2.rb5
-rw-r--r--Library/Formula/lilypond.rb2
-rw-r--r--Library/Formula/node.rb2
-rw-r--r--Library/Formula/yle-dl.rb3
4 files changed, 5 insertions, 7 deletions
diff --git a/Library/Formula/libxml2.rb b/Library/Formula/libxml2.rb
index d1e69e3f4..b5bd2b513 100644
--- a/Library/Formula/libxml2.rb
+++ b/Library/Formula/libxml2.rb
@@ -11,7 +11,6 @@ class Libxml2 < Formula
keg_only :provided_by_osx
option :universal
- option 'with-python', 'Build Python bindings'
if build.head?
depends_on :python => :recommended # satisfied by Python 2.6+
@@ -20,7 +19,7 @@ class Libxml2 < Formula
depends_on :libtool
else
# 2.9.1 cannot build with Python 2.6: https://github.com/mxcl/homebrew/issues/20249
- depends_on PythonInstalled.new("2.7") if build.with? 'python'
+ depends_on :python => ["2.7", :recommended]
end
fails_with :llvm do
@@ -71,7 +70,7 @@ class Libxml2 < Formula
end
end
- def test
+ test do
if build.with? 'python'
system python, '-c', "import libxml2"
else
diff --git a/Library/Formula/lilypond.rb b/Library/Formula/lilypond.rb
index 96c6f4285..624cdeb4e 100644
--- a/Library/Formula/lilypond.rb
+++ b/Library/Formula/lilypond.rb
@@ -42,7 +42,7 @@ class Lilypond < Formula
depends_on 'netpbm'
depends_on 'imagemagick'
depends_on 'docbook'
- depends_on LanguageModuleDependency.new(:python, 'dblatex', 'dbtexmf.dblatex')
+ depends_on :python => ['dbtexmf.dblatex' => 'dblatex']
depends_on 'texi2html'
end
diff --git a/Library/Formula/node.rb b/Library/Formula/node.rb
index 1a272cc24..87656efa0 100644
--- a/Library/Formula/node.rb
+++ b/Library/Formula/node.rb
@@ -45,7 +45,7 @@ class Node < Formula
option 'without-npm', 'npm will not be installed'
depends_on NpmNotInstalled unless build.without? 'npm'
- depends_on PythonInstalled.new("2.6") => :build
+ depends_on :python => ["2.6", :build]
fails_with :llvm do
build 2326
diff --git a/Library/Formula/yle-dl.rb b/Library/Formula/yle-dl.rb
index 6509ccdfa..6ce1cdc9c 100644
--- a/Library/Formula/yle-dl.rb
+++ b/Library/Formula/yle-dl.rb
@@ -8,8 +8,7 @@ class YleDl < Formula
head 'https://github.com/aajanki/yle-dl.git'
depends_on 'rtmpdump'
- depends_on :python # use python because of pycrypto
- depends_on LanguageModuleDependency.new :python, 'pycrypto', 'Crypto'
+ depends_on :python => ['Crypto' => 'pycrypto']
def install
system "make", "install", "SYS=darwin", "prefix=#{prefix}", "mandir=#{man}"