aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/git-ssh.rb
blob: 5b5bd347c36854e828d951ab692fec88a7c4c5a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
require 'formula'

class GitSsh < Formula
  url 'https://github.com/lemarsu/git-ssh/tarball/v0.2.0'
  md5 '5d146666bce5df59aab648b6ee7370ad'
  homepage 'https://github.com/lemarsu/git-ssh'

  def install
    # Change loading of required code from libexec location (Cellar only)
    inreplace "bin/git-ssh" do |s|
      s.sub! /path = .*$/, "path = '#{libexec}'"
    end
    # Install main script
    bin.install "bin/git-ssh"
    # Install required code into libexec location (Cellar only)
    libexec.install Dir["lib/*"]
  end
end
n> "cmake" => :build depends_on "qt" depends_on "qscintilla2" def install share.install "test" mkdir "build" do system "cmake", "..", "-G", "Unix Makefiles", *std_cmake_args system "make" system "make", "install" end end test do cd share+"test" do system "#{bin}/cqmakedb", "-s", "./codequery.db", "-c", "./cscope.out", "-t", "./tags", "-p" assert_match "info_platform", `#{bin}/cqsearch -s ./codequery.db -t 'info_platform'` end end end