From 387a4cf84c98b3bf2499e823be5b82c96869f4bf Mon Sep 17 00:00:00 2001 From: Baptiste Fontaine Date: Mon, 12 Jan 2015 09:50:49 +0100 Subject: cmatrix: modernize + basic test added Closes #35770. Signed-off-by: Mike McQuaid --- Library/Formula/cmatrix.rb | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'Library') diff --git a/Library/Formula/cmatrix.rb b/Library/Formula/cmatrix.rb index 47718230c..7acade840 100644 --- a/Library/Formula/cmatrix.rb +++ b/Library/Formula/cmatrix.rb @@ -1,13 +1,15 @@ -require 'formula' - class Cmatrix < Formula - homepage 'http://www.asty.org/cmatrix/' - url 'http://www.asty.org/cmatrix/dist/cmatrix-1.2a.tar.gz' - sha1 'ca078c10322a47e327f07a44c9a42b52eab5ad93' + homepage "http://www.asty.org/cmatrix/" + url "http://www.asty.org/cmatrix/dist/cmatrix-1.2a.tar.gz" + sha1 "ca078c10322a47e327f07a44c9a42b52eab5ad93" def install system "./configure", "--prefix=#{prefix}", "--mandir=#{man}" system "make" - system "make install" + system "make", "install" + end + + test do + system "#{bin}/cmatrix", "-V" end end -- cgit v1.2.3