aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/srmio.rb
blob: 541af25db5b7d71ed4a7dd4e4b338ef3190fdb64 (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
27
28
29
30
require 'formula'

class Srmio < Formula
  homepage 'http://www.zuto.de/project/srmio/'
  url 'http://www.zuto.de/project/files/srmio/srmio-0.1.1~git1.tar.gz'
  sha1 '0db685d6046fca38ad64df05840d01b5f3b27499'
  version '0.1.1~git1'

  head do
    url 'https://github.com/rclasen/srmio.git'

    depends_on :autoconf
    depends_on :automake
    depends_on :libtool
  end

  def install
    if build.head?
       system "chmod u+x genautomake.sh"
      system "./genautomake.sh"
    end
    system "./configure", "--disable-dependency-tracking",
                          "--prefix=#{prefix}"
    system "make install"
  end

  test do
    system "#{bin}/srmcmd", "--version"
  end
end