Permalink
Browse files

Fix python plugin compilation on Arch Linux

  • Loading branch information...
1 parent 8050448 commit 59c759d35bbf4a05949afb38c815327e199581ea @guns committed Sep 23, 2011
Showing with 6 additions and 3 deletions.
  1. +6 −3 Rakefile
View
@@ -26,10 +26,13 @@ end
desc 'Invoke cmake'
task :cmake => :env do
+ cmd = %W[cmake .. -DPREFIX=#{ENV['PREFIX'] || '/opt/weechat'} -DCMAKE_BUILD_TYPE=None -Wno-dev]
+
+ # Arch Linux has boldly moved to Python 3, but nobody's following
+ cmd << '-DPYTHON_EXECUTABLE=/usr/bin/python2' if %x(uname -a) =~ /ARCH/
+
mkdir_p 'build'
- Dir.chdir 'build' do
- sh *%W[cmake .. -DPREFIX=#{ENV['PREFIX'] || '/opt/weechat'} -DCMAKE_BUILD_TYPE=None -Wno-dev]
- end
+ Dir.chdir('build') { sh *cmd }
end
desc 'Invoke make'

0 comments on commit 59c759d

Please sign in to comment.