2010-03-25 14:27:22 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class GnuTime < Formula
|
2012-04-22 17:52:18 +00:00
|
|
|
homepage 'http://www.gnu.org/software/time/'
|
2011-09-12 16:31:30 +00:00
|
|
|
url 'http://ftpmirror.gnu.org/time/time-1.7.tar.gz'
|
2011-11-30 18:56:07 +00:00
|
|
|
mirror 'http://ftp.gnu.org/gnu/time/time-1.7.tar.gz'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 'dde0c28c7426960736933f3e763320680356cc6a'
|
2010-03-25 14:27:22 +00:00
|
|
|
|
2012-04-22 17:52:18 +00:00
|
|
|
# Fixes issue with main returning void rather than int
|
|
|
|
# http://trac.macports.org/ticket/32860
|
|
|
|
# http://trac.macports.org/browser/trunk/dports/sysutils/gtime/files/patch-time.c.diff?rev=88924
|
|
|
|
def patches
|
|
|
|
DATA
|
|
|
|
end
|
|
|
|
|
2010-03-25 14:27:22 +00:00
|
|
|
def install
|
2010-04-07 05:58:35 +00:00
|
|
|
system "./configure", "--program-prefix=g",
|
|
|
|
"--prefix=#{prefix}",
|
2011-04-02 09:29:19 +00:00
|
|
|
"--mandir=#{man}",
|
|
|
|
"--info=#{info}"
|
2010-03-25 14:27:22 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|
2012-04-22 17:52:18 +00:00
|
|
|
|
|
|
|
__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;
|