sqliteman: add formula.
Closes Homebrew/homebrew#16647. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
parent
93ce625b78
commit
a941c5187f
1 changed files with 26 additions and 0 deletions
26
Formula/sqliteman.rb
Normal file
26
Formula/sqliteman.rb
Normal file
|
@ -0,0 +1,26 @@
|
|||
require 'formula'
|
||||
|
||||
class Sqliteman < Formula
|
||||
homepage 'http://www.sqliteman.com/'
|
||||
url 'http://sourceforge.net/projects/sqliteman/files/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.factory('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
|
||||
|
||||
def test
|
||||
system "#{bin}/sqliteman", '--langs'
|
||||
end
|
||||
end
|
Loading…
Reference in a new issue