ykclient: add head
Also adding the make check step because it's pretty cheap. Closes #4708. Signed-off-by: Zhiming Wang <zmwangx@gmail.com>
This commit is contained in:
parent
9a824d76bb
commit
f83f6e18ae
1 changed files with 12 additions and 0 deletions
|
@ -11,6 +11,14 @@ class Ykclient < Formula
|
|||
sha256 "c051e1c30bc2cb34907e5d91e1addb572d2bfa2011c75e13c167712d93fefb47" => :mavericks
|
||||
end
|
||||
|
||||
head do
|
||||
url "https://github.com/Yubico/yubico-c-client.git"
|
||||
|
||||
depends_on "autoconf" => :build
|
||||
depends_on "automake" => :build
|
||||
depends_on "libtool" => :build
|
||||
end
|
||||
|
||||
option :universal
|
||||
|
||||
depends_on "pkg-config" => :build
|
||||
|
@ -18,9 +26,13 @@ class Ykclient < Formula
|
|||
|
||||
def install
|
||||
ENV.universal_binary if build.universal?
|
||||
# https://github.com/Yubico/yubico-c-client/issues/38
|
||||
ENV.deparallelize if build.head?
|
||||
|
||||
system "autoreconf", "-iv" if build.head?
|
||||
system "./configure", "--prefix=#{prefix}"
|
||||
system "make", "install"
|
||||
system "make", "check"
|
||||
end
|
||||
|
||||
test do
|
||||
|
|
Loading…
Reference in a new issue