1 class GnuTime < Formula
2 desc "GNU implementation of time utility"
3 homepage "https://www.gnu.org/software/time/"
4 url "https://ftp.gnu.org/gnu/time/time-1.9.tar.gz"
5 mirror "https://ftpmirror.gnu.org/time/time-1.9.tar.gz"
6 sha256 "fbacf0c81e62429df3e33bda4cee38756604f18e01d977338e23306a3e3b521e"
7 license "GPL-3.0-or-later"
11 sha256 cellar: :any_skip_relocation, arm64_sequoia: "963acabedfade9cea9496798c8b026794762de08137f791c778e128310fcb1ad"
12 sha256 cellar: :any_skip_relocation, arm64_sonoma: "77a541727f4a75443a930e18391ed483b0a3fc797876376a0f7b34260db9a88d"
13 sha256 cellar: :any_skip_relocation, arm64_ventura: "f5015e7e94a474156cdc47fb188143388231916979598f5398b72e79393a2000"
14 sha256 cellar: :any_skip_relocation, arm64_monterey: "ff4691a2d76432eb0222284ccbeda79b3375cefdb1c606ba74ea3e8e06ac25f5"
15 sha256 cellar: :any_skip_relocation, arm64_big_sur: "3930463651363f08ca7a90ec25deafd85c57f7a71be8ee236f7e15f20de7ff22"
16 sha256 cellar: :any_skip_relocation, sonoma: "99cb9faea67317bef1bd531f810c91b4f77817d127942ba3902dcc8b6605c437"
17 sha256 cellar: :any_skip_relocation, ventura: "950250410ffda2307e42e465b0a563b0d4175f83017467df59c580cba41d8c85"
18 sha256 cellar: :any_skip_relocation, monterey: "e7b649410f591aa0d0068ae267e7357db99c86c73fd5e992db0f5512614a07a6"
19 sha256 cellar: :any_skip_relocation, big_sur: "f4fc9d2c49b65130d04a476d4cd887b1e1033a7870df9805be28aba09be901f0"
20 sha256 cellar: :any_skip_relocation, catalina: "9a1d1160f85f46b3022dc4d978dfafe6b3a02fc97446bc51f8b1ae4580b7c69a"
21 sha256 cellar: :any_skip_relocation, mojave: "dc007b95e2f9fb0df3380da55d3c9337529b1a4a3cd762972eb88512f567ea1c"
22 sha256 cellar: :any_skip_relocation, high_sierra: "ad5d776c38e43f16fad8976770eeaa18e40562c166fa65fdaa12af61981c7b90"
23 sha256 cellar: :any_skip_relocation, sierra: "d51ef948a5a87281175fef771cb28469cbdb3085e3c51ad325d780ff921cc013"
24 sha256 cellar: :any_skip_relocation, x86_64_linux: "c9c5ae5e7ac2f00cf8655ce4b6095e4706bcc36300d36a1c7121ab03d010ea5f"
27 uses_from_macos "ruby" => :test
35 args << "--program-prefix=g" if OS.mac?
36 system "./configure", *args
37 system "make", "install"
39 (libexec/"gnubin").install_symlink bin/"gtime" => "time" if OS.mac?
45 GNU "time" has been installed as "gtime".
46 If you need to use it as "time", you can add a "gnubin" directory
47 to your PATH from your bashrc like:
49 PATH="#{opt_libexec}/gnubin:$PATH"
56 system bin/"gtime", "ruby", "--version"
57 system opt_libexec/"gnubin/time", "ruby", "--version"
59 system bin/"time", "ruby", "--version"