7c648d9732
When interpolating in strings passed to Formula#system, it should be done in such a way that if any interpolated variables contain spaces, they are either (a) passed as part of a list or (b) protected by quotes if they are part of a long string (which is subject to shell expansion). Otherwise, they will be split on the space when expanded by the shell and passed as multiple arguments to whatever process is being executed. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
29 lines
696 B
Ruby
29 lines
696 B
Ruby
require 'formula'
|
|
|
|
class Sedna < Formula
|
|
homepage 'http://modis.ispras.ru/sedna/index.html'
|
|
url 'http://www.modis.ispras.ru/FTPContent/sedna/current/sedna-3.4.66-src-darwin.tar.gz'
|
|
md5 '8c0006dbfb0ab89a63b4ae93e35f2213'
|
|
|
|
depends_on 'cmake' => :build
|
|
|
|
def install
|
|
# Build needs to be created from outside the source directory.
|
|
mktemp do
|
|
system "cmake #{std_cmake_parameters} #{buildpath}"
|
|
system "make install"
|
|
end
|
|
end
|
|
|
|
def caveats; <<-EOS.undent
|
|
If this is your first install, create a database with:
|
|
se_cdb <db name>
|
|
|
|
Start your database manually with:
|
|
se_gov && se_sm <db name>
|
|
|
|
And stop with:
|
|
se_stop
|
|
EOS
|
|
end
|
|
end
|