blob: dd1d09711573a22339d0de118e67ab26cf521423 (
plain)
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
|
require 'formula'
class Sqliteman < Formula
homepage 'http://www.sqliteman.com/'
url 'https://downloads.sourceforge.net/project/sqliteman/sqliteman/1.2.2/sqliteman-1.2.2.tar.bz2'
sha1 '8ca90d44ad0eda9e67bdd675523a8786b8ef3818'
depends_on 'cmake' => :build
depends_on 'qt'
depends_on 'qscintilla2'
def install
mkdir 'build' do
qsci_include = Formula["qscintilla2"].include
qsci_cmake_arg = "-DQSCINTILLA_INCLUDE_DIR=#{qsci_include}/Qsci"
system 'cmake', '..', qsci_cmake_arg, *std_cmake_args
system 'make'
system 'make', 'install'
end
end
test do
system "#{bin}/sqliteman", "--langs"
end
end
|