gnu-time 1.8
Closes #20399. Signed-off-by: ilovezfs <ilovezfs@icloud.com>
This commit is contained in:
parent
af056efa12
commit
d412ef7fb1
1 changed files with 3 additions and 23 deletions
|
@ -1,9 +1,9 @@
|
|||
class GnuTime < Formula
|
||||
desc "GNU implementation of time utility"
|
||||
homepage "https://www.gnu.org/software/time/"
|
||||
url "https://ftp.gnu.org/gnu/time/time-1.7.tar.gz"
|
||||
mirror "https://ftpmirror.gnu.org/time/time-1.7.tar.gz"
|
||||
sha256 "e37ea79a253bf85a85ada2f7c632c14e481a5fd262a362f6f4fd58e68601496d"
|
||||
url "https://ftp.gnu.org/gnu/time/time-1.8.tar.gz"
|
||||
mirror "https://ftpmirror.gnu.org/time/time-1.8.tar.gz"
|
||||
sha256 "8a2f540155961a35ba9b84aec5e77e3ae36c74cecb4484db455960601b7a2e1b"
|
||||
|
||||
bottle do
|
||||
cellar :any_skip_relocation
|
||||
|
@ -18,11 +18,6 @@ class GnuTime < Formula
|
|||
|
||||
option "with-default-names", "Do not prepend 'g' to the binary"
|
||||
|
||||
# Fixes issue with main returning void rather than int
|
||||
# https://trac.macports.org/ticket/32860
|
||||
# https://trac.macports.org/browser/trunk/dports/sysutils/gtime/files/patch-time.c.diff?rev=88924
|
||||
patch :DATA
|
||||
|
||||
def install
|
||||
args = [
|
||||
"--prefix=#{prefix}",
|
||||
|
@ -40,18 +35,3 @@ class GnuTime < Formula
|
|||
system bin/"gtime", "ruby", "--version"
|
||||
end
|
||||
end
|
||||
|
||||
__END__
|
||||
diff --git a/time.c b/time.c
|
||||
index 9d5cf2c..97611f5 100644
|
||||
--- a/time.c
|
||||
+++ b/time.c
|
||||
@@ -628,7 +628,7 @@ run_command (cmd, resp)
|
||||
signal (SIGQUIT, quit_signal);
|
||||
}
|
||||
|
||||
-void
|
||||
+int
|
||||
main (argc, argv)
|
||||
int argc;
|
||||
char **argv;
|
||||
|
|
Loading…
Reference in a new issue