aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorfal42012-08-12 15:45:59 -0400
committerAdam Vandenberg2012-08-22 09:35:42 -0700
commit3338fbefa35ee1207c80c4286f078a6db7129c87 (patch)
tree8c916fafb00ba99a3a41f82c8fc09c9e19af1014 /Library
parentc40c7bf0d733ab67099d79139aae8329d2820ed0 (diff)
downloadhomebrew-3338fbefa35ee1207c80c4286f078a6db7129c87.tar.bz2
io: options for disabling addons
Closes #14142. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/io.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/Library/Formula/io.rb b/Library/Formula/io.rb
index bfbd6d294..fdcb1926e 100644
--- a/Library/Formula/io.rb
+++ b/Library/Formula/io.rb
@@ -7,6 +7,9 @@ class Io < Formula
head 'https://github.com/stevedekorte/io.git'
+ option 'without-addons', 'Build without addons'
+ option 'without-python', 'Build without python addon'
+
depends_on 'cmake' => :build
depends_on 'ossp-uuid'
depends_on 'libevent'
@@ -22,6 +25,16 @@ class Io < Formula
def install
ENV.j1
+ if build.include? 'without-addons'
+ inreplace "CMakeLists.txt",
+ 'add_subdirectory(addons)',
+ '#add_subdirectory(addons)'
+ end
+ if build.include? 'without-python'
+ inreplace "addons/CMakeLists.txt",
+ 'add_subdirectory(Python)',
+ '#add_subdirectory(Python)'
+ end
mkdir 'buildroot' do
system "cmake", "..", *std_cmake_args
system 'make'