Patchwork package/time: New package for GNU time.

login
register
mail settings
Submitter Will Newton
Date Oct. 19, 2012, 1:05 p.m.
Message ID <CAFbHwiRDGH0W+eRMGGui4gA+_iRhSYtHc2dhHwPDYf9uvqF5-w@mail.gmail.com>
Download mbox | patch
Permalink /patch/192678/
State Accepted
Commit 2073c21ec041b6404b19e17e0f139ddbc639a35f
Headers show

Comments

Will Newton - Oct. 19, 2012, 1:05 p.m.
Signed-off-by: Will Newton <will.newton@imgtec.com>
---
 package/Config.in      |    1 +
 package/time/Config.in |    6 ++++++
 package/time/time.mk   |   17 +++++++++++++++++
 3 files changed, 24 insertions(+), 0 deletions(-)
 create mode 100644 package/time/Config.in
 create mode 100644 package/time/time.mk
Arnout Vandecappelle - Oct. 19, 2012, 8:39 p.m.
On 19/10/12 15:05, Will Newton wrote:
> Signed-off-by: Will Newton<will.newton@imgtec.com>
Acked-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Tested-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
  (build-test with a WCHAR-only internal powerpc toolchain)

  Regards,
  Arnout
Peter Korsgaard - Oct. 20, 2012, 7:10 p.m.
>>>>> "Will" == Will Newton <will.newton@gmail.com> writes:

 Will> Signed-off-by: Will Newton <will.newton@imgtec.com>

Committed, thanks.

Patch

diff --git a/package/Config.in b/package/Config.in
index d7b3db6..dd4c97e 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -672,6 +672,7 @@  source "package/logsurfer/Config.in"
 source "package/screen/Config.in"
 source "package/sudo/Config.in"
 if BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
+source "package/time/Config.in"
 source "package/which/Config.in"
 endif
 source "package/xmlstarlet/Config.in"
diff --git a/package/time/Config.in b/package/time/Config.in
new file mode 100644
index 0000000..634d41a
--- /dev/null
+++ b/package/time/Config.in
@@ -0,0 +1,6 @@ 
+config BR2_PACKAGE_TIME
+	bool "time"
+	help
+	  The GNU time utility.
+
+	  http://savannah.gnu.org/projects/time/
diff --git a/package/time/time.mk b/package/time/time.mk
new file mode 100644
index 0000000..7b53286
--- /dev/null
+++ b/package/time/time.mk
@@ -0,0 +1,17 @@ 
+#############################################################
+#
+# time
+#
+#############################################################
+
+TIME_VERSION = 1.7
+TIME_SITE = $(BR2_GNU_MIRROR)/time
+TIME_CONF_ENV = ac_cv_func_wait3=yes
+
+# time uses an old version of automake that does not support
+# installing in DESTDIR.
+define TIME_INSTALL_TARGET_CMDS
+	install -D -m 755  $(@D)/time $(TARGET_DIR)/usr/bin/time
+endef
+
+$(eval $(autotools-package))