-
Notifications
You must be signed in to change notification settings - Fork 2
/
klusters.rb
31 lines (23 loc) · 823 Bytes
/
klusters.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
require 'formula'
class Klusters < Formula
homepage 'http://klusters.sourceforge.net/'
url 'http://downloads.sourceforge.net/project/neurosuite/sources/klusters-2.0.0.tar.gz'
sha256 '4bda00e942b21a92d5f8cb5db85f4936be1af06dcfac81dd9f0388268e38a24b'
head 'http://git.code.sf.net/p/klusters/klusters', :using => :git
depends_on 'cmake' => :build
depends_on 'qt'
depends_on 'libklustersshared'
option 'with-debug', 'Build with debug symbols'
env :std
def install
if build.with? 'debug'
# Debug symbols need to find the source so build in the prefix
cp_r "#{pwd}", "#{prefix}/src"
cd "#{prefix}/src"
# Set build type to release with debug symbols
ENV.append "CXXFLAGS", "-g -O2"
end
system "cmake", ".", *std_cmake_args
system "make install"
end
end