diff options
| author | Thomas Kupper | 2013-01-02 21:44:19 +0000 | 
|---|---|---|
| committer | Mike McQuaid | 2013-01-02 21:44:19 +0000 | 
| commit | fa099e159d7d545fd16477a78f5d3c902d501d30 (patch) | |
| tree | d82cbb74ac2cc23f39142226ac37ae6a88b6e14f /Library/Formula/sqliteman.rb | |
| parent | 898e309651e2e5c74f2d52d7bef5f0b29bf1af5a (diff) | |
| download | homebrew-fa099e159d7d545fd16477a78f5d3c902d501d30.tar.bz2 | |
sqliteman: add formula.
Closes #16647.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Formula/sqliteman.rb')
| -rw-r--r-- | Library/Formula/sqliteman.rb | 26 | 
1 files changed, 26 insertions, 0 deletions
diff --git a/Library/Formula/sqliteman.rb b/Library/Formula/sqliteman.rb new file mode 100644 index 000000000..5cbc77322 --- /dev/null +++ b/Library/Formula/sqliteman.rb @@ -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  | 
