From patchwork Wed Apr 27 09:19:50 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Othacehe X-Patchwork-Id: 38923 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 836D027BBEA; Wed, 27 Apr 2022 10:23:20 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 475A127BBE9 for ; Wed, 27 Apr 2022 10:23:20 +0100 (BST) Received: from localhost ([::1]:41720 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1njdtH-0000ib-9G for patchwork@mira.cbaines.net; Wed, 27 Apr 2022 05:23:19 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45408) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1njdr5-0006OF-2f for guix-patches@gnu.org; Wed, 27 Apr 2022 05:21:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:47367) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1njdr3-0005bb-T7 for guix-patches@gnu.org; Wed, 27 Apr 2022 05:21:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1njdr3-0002nT-ON for guix-patches@gnu.org; Wed, 27 Apr 2022 05:21:01 -0400 Subject: bug#55018: [PATCH] gnu: Add wtime. Resent-From: Mathieu Othacehe Original-Sender: "Debbugs-submit" Resent-To: guix-patches@gnu.org Resent-Date: Wed, 27 Apr 2022 09:21:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 55018 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 55018-done@debbugs.gnu.org Cc: chuanwei.foo@hotmail.com Mail-Followup-To: 55018@debbugs.gnu.org, othacehe@gnu.org, chuanwei.foo@hotmail.com Received: via spool by 55018-done@debbugs.gnu.org id=D55018.165105120310637 (code D ref 55018); Wed, 27 Apr 2022 09:21:01 +0000 Received: (at 55018-done) by debbugs.gnu.org; 27 Apr 2022 09:20:03 +0000 Received: from localhost ([127.0.0.1]:41261 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1njdq6-0002lP-7P for submit@debbugs.gnu.org; Wed, 27 Apr 2022 05:20:02 -0400 Received: from eggs.gnu.org ([209.51.188.92]:51684) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1njdq4-0002ky-2D for 55018-done@debbugs.gnu.org; Wed, 27 Apr 2022 05:20:01 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:50632) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1njdpy-00054v-6x; Wed, 27 Apr 2022 05:19:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=stvYBbfPoIHtFMqAklDUc5D78hDyLl2q963WgReUPnk=; b=mkKoyAQkCTfwZnjdMbfw xZjr3NKDq2sB08NVhnDiTHv/h1VOVWFAtOlhPUOuC5UXfWxX6ZIRPHZ5gYrIWSHOeYlmaeOi3+abf 6XQhhfukZampNp2UJZZL+3P5C/1UuJQDrpumDXxgBw+JPluORxAhHBaL8Q/bm5XbNF2U/vWkYY0/7 33NzWTeka355ddAM/aIcHGfoMGSswHmkqb67u4I8wlVMibSVBeCpLxxNc8+CrnPgdeC6aWNpCKe/F C631F9UvYZm2+sfXenX6BNpgs8hSlGWJTcTTktURgTjE4EUVCwti22hHMMzUWlJcNOCKAEER20ahV R3Hbet3Jvof2OA==; Received: from 71.125.192.77.rev.sfr.net ([77.192.125.71]:42328 helo=meije) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1njdpx-0004tx-QC; Wed, 27 Apr 2022 05:19:54 -0400 From: Mathieu Othacehe References: Date: Wed, 27 Apr 2022 11:19:50 +0200 In-Reply-To: (Foo Chuan Wei's message of "Tue, 19 Apr 2022 07:26:54 +0000") Message-ID: <878rrqlw7d.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches Hello, > * gnu/packages/task-management.scm (wtime): New variable. Pushed with the following modifications: --8<---------------cut here---------------start------------->8--- Thanks, Mathieu diff --git a/gnu/packages/task-management.scm b/gnu/packages/task-management.scm index 17fb8c335e..65b3dc8699 100644 --- a/gnu/packages/task-management.scm +++ b/gnu/packages/task-management.scm @@ -23,6 +23,7 @@ (define-module (gnu packages task-management) #:use-module ((guix licenses) #:prefix license:) + #:use-module (guix gexp) #:use-module (guix packages) #:use-module (gnu packages check) #:use-module (gnu packages freedesktop) @@ -43,6 +44,7 @@ (define-module (gnu packages task-management) #:use-module (guix hg-download) #:use-module (guix utils) #:use-module (guix build-system cmake) + #:use-module (guix build-system gnu) #:use-module (guix build-system go) #:use-module (guix build-system meson) #:use-module (guix build-system python)) @@ -259,8 +261,8 @@ (define-public wtime (build-system gnu-build-system) (arguments `(#:make-flags - (list (string-append "CC=" ,(cc-for-target)) - (string-append "PREFIX=" %output)) + ,#~(list (string-append "CC=" #$(cc-for-target)) + (string-append "PREFIX=" #$output)) #:phases (modify-phases %standard-phases (delete 'configure) @@ -271,10 +273,10 @@ (define-public wtime #:tests? #f)) ; No "check" target. (home-page "http://wtime.sourceforge.net") (synopsis - "Command-line utility for tracking time spent working on arbitrary tasks") + "Command-line utility for tracking time spent on arbitrary tasks") (description - "@code{wtime} is a command-line utility for tracking time spent working on -arbitrary tasks. All the time data is saved in files residing in the + "@code{wtime} is a command-line utility for tracking time spent working +on arbitrary tasks. All the time data is saved in files residing in the @code{.wtimed} directory in the user's home directory.") (license license:x11))) --8<---------------cut here---------------end--------------->8---