homebrew-core/Formula/srmio.rb
BrewTestBot 95884bae22 Formula files style updates.
Closes Homebrew/homebrew#42407.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-08-03 14:21:42 +01:00

29 lines
799 B
Ruby

class Srmio < Formula
desc "C library to access the PowerControl of a SRM bike power meter"
homepage "http://www.zuto.de/project/srmio/"
url "http://www.zuto.de/project/files/srmio/srmio-0.1.1~git1.tar.gz"
sha256 "00b3772202034aaada94f1f1c79a1072fac1f69d10ef0afcb751cce74e5ccd31"
version "0.1.1~git1"
head do
url "https://github.com/rclasen/srmio.git"
depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "libtool" => :build
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