homebrew-core/Formula/libiscsi.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

35 lines
1.1 KiB
Ruby

class Libiscsi < Formula
desc "Client library and utilities for iscsi"
homepage "https://github.com/sahlberg/libiscsi"
url "https://sites.google.com/site/libiscsitarballs/libiscsitarballs/libiscsi-1.10.0.tar.gz"
sha256 "ba44519c9b04d6b0e2cf8d66e83611212da96d5cfab7c5c4d19cf00a5f919cba"
head "https://github.com/sahlberg/libiscsi.git"
bottle do
cellar :any
revision 1
sha1 "5bc5b53461a7564d9721c7b468d37fbdbae564a2" => :yosemite
sha1 "e53c4947c7747b1d4cd1e9f36c88a16e200c4866" => :mavericks
sha1 "2edaf3c3a74dcb17365ef51d8d460939f0a5594c" => :mountain_lion
end
option "with-noinst", "Install the noinst binaries (e.g. iscsi-test-cu)"
depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "libtool" => :build
depends_on "cunit" if build.with? "noinst"
depends_on "popt"
def install
if build.with? "noinst"
# Install the noinst binaries
inreplace "Makefile.am", "noinst_PROGRAMS +=", "bin_PROGRAMS +="
end
system "./autogen.sh"
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}"
system "make", "install"
end
end