blob: f3f4dd9df6a66f6d12e71093ccf6935b63ed0c9a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
class Timelimit < Formula
homepage "http://devel.ringlet.net/sysutils/timelimit/"
url "http://devel.ringlet.net/sysutils/timelimit/timelimit-1.8.tar.gz"
sha256 "026e72b345f8407ebaa002036fd785b2136b2dfc4f8854f14536196ee3079996"
def install
# don't install for a specific user
inreplace "Makefile", "-o ${BINOWN} -g ${BINGRP}", ""
inreplace "Makefile", "-o ${MANOWN} -g ${MANGRP}", ""
args = %W[LOCALBASE=#{prefix} MANDIR=#{man}/man]
check_args = args + ["check"]
install_args = args + ["install"]
system "make", *check_args
system "make", *install_args
end
test do
assert_equal "timelimit: sending warning signal 15",
shell_output("#{bin}/timelimit -p -t 1 sleep 5 2>&1", 143).chomp
end
end
|