aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/io.rb
diff options
context:
space:
mode:
authorAdam Vandenberg2014-05-09 12:36:20 -0700
committerAdam Vandenberg2014-05-09 12:36:20 -0700
commit66b8e81b76e4264e3ff6b216db437531f156c8bd (patch)
tree5a6884a62aba8d3d995f52529154cfaaa403e27a /Library/Formula/io.rb
parentbefa1f707e49d2016831fcd8a8844274b3a9291c (diff)
downloadhomebrew-66b8e81b76e4264e3ff6b216db437531f156c8bd.tar.bz2
io: python depends on addons being built
Diffstat (limited to 'Library/Formula/io.rb')
-rw-r--r--Library/Formula/io.rb20
1 files changed, 10 insertions, 10 deletions
diff --git a/Library/Formula/io.rb b/Library/Formula/io.rb
index 703a41c8e..176c108d5 100644
--- a/Library/Formula/io.rb
+++ b/Library/Formula/io.rb
@@ -10,7 +10,6 @@ class Io < Formula
option "without-addons", "Build without addons"
depends_on "cmake" => :build
- depends_on :python => :recommended
if build.with? "addons"
depends_on "glib"
@@ -28,6 +27,7 @@ class Io < Formula
depends_on "pcre"
depends_on "yajl"
depends_on "xz"
+ depends_on :python => :optional
end
fails_with :clang do
@@ -40,13 +40,19 @@ class Io < Formula
def install
ENV.j1
+
if build.without? "addons"
# Turn off all add-ons in main cmake file
- inreplace "CMakeLists.txt",
- "add_subdirectory(addons)", '#add_subdirectory(addons)'
+ inreplace "CMakeLists.txt", "add_subdirectory(addons)",
+ '#add_subdirectory(addons)'
else
- # Turn off specific add-ons that are not currently working
inreplace "addons/CMakeLists.txt" do |s|
+ if build.without? "python"
+ s.gsub! "add_subdirectory(Python)", '#add_subdirectory(Python)'
+ end
+
+ # Turn off specific add-ons that are not currently working
+
# Looks for deprecated Freetype header
s.gsub! /(add_subdirectory\(Font\))/, '#\1'
# Builds against older version of memcached library
@@ -54,12 +60,6 @@ class Io < Formula
end
end
- # Note, Python requires addons to be built
- if build.without? "python"
- inreplace "addons/CMakeLists.txt",
- "add_subdirectory(Python)", '#add_subdirectory(Python)'
- end
-
mkdir "buildroot" do
system "cmake", "..", *std_cmake_args
system "make"