2012-12-06 19:01:19 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Srmio < Formula
|
|
|
|
homepage 'http://www.zuto.de/project/srmio/'
|
2013-12-04 05:58:01 +00:00
|
|
|
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
|
2012-12-06 19:01:19 +00:00
|
|
|
|
|
|
|
def install
|
2013-12-04 05:58:01 +00:00
|
|
|
if build.head?
|
|
|
|
system "chmod u+x genautomake.sh"
|
|
|
|
system "./genautomake.sh"
|
|
|
|
end
|
2012-12-06 19:01:19 +00:00
|
|
|
system "./configure", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
|
2014-02-23 21:31:41 +00:00
|
|
|
test do
|
2013-12-04 05:58:01 +00:00
|
|
|
system "#{bin}/srmcmd", "--version"
|
2012-12-06 19:01:19 +00:00
|
|
|
end
|
|
|
|
end
|