From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47663) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1esFH7-0007mN-LV for guix-patches@gnu.org; Sat, 03 Mar 2018 17:05:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1esFH4-00056B-FW for guix-patches@gnu.org; Sat, 03 Mar 2018 17:05:05 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:35342) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1esFH4-000563-Bq for guix-patches@gnu.org; Sat, 03 Mar 2018 17:05:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1esFH4-0006p5-4d for guix-patches@gnu.org; Sat, 03 Mar 2018 17:05:02 -0500 Subject: [bug#30690] [PATCH] gnu: Add makefile2graph. Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47547) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1esFGK-0007hc-4Y for guix-patches@gnu.org; Sat, 03 Mar 2018 17:04:17 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1esFGG-0004gi-PJ for guix-patches@gnu.org; Sat, 03 Mar 2018 17:04:16 -0500 Received: from mira.cbaines.net ([2a01:7e00::f03c:91ff:fe69:8da9]:50144) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1esFGG-0004gY-JU for guix-patches@gnu.org; Sat, 03 Mar 2018 17:04:12 -0500 Received: from localhost (cpc102582-walt20-2-0-cust14.13-2.cable.virginm.net [86.27.34.15]) by mira.cbaines.net (Postfix) with ESMTPSA id 9378713D064 for ; Sat, 3 Mar 2018 22:04:11 +0000 (GMT) Received: from localhost (localhost [local]) by localhost (OpenSMTPD) with ESMTPA id af053bd1 for ; Sat, 3 Mar 2018 22:04:11 +0000 (UTC) From: Christopher Baines Date: Sat, 3 Mar 2018 22:04:11 +0000 Message-Id: <20180303220411.22293-1-mail@cbaines.net> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 30690@debbugs.gnu.org * gnu/packages/plotutils.scm (makefile2graph): New variable. --- gnu/packages/plotutils.scm | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/gnu/packages/plotutils.scm b/gnu/packages/plotutils.scm index 482ae1b86..17a75ca4f 100644 --- a/gnu/packages/plotutils.scm +++ b/gnu/packages/plotutils.scm @@ -31,6 +31,7 @@ #:use-module (gnu packages ghostscript) #:use-module (gnu packages guile) #:use-module (gnu packages gl) + #:use-module (gnu packages graphviz) #:use-module (gnu packages gtk) #:use-module (gnu packages maths) #:use-module (gnu packages perl) @@ -250,3 +251,32 @@ LaTeX does for scientific text.") ;; noted otherwise, are released under version 3 (or later) of the GNU ;; Lesser General Public License" (license license:lgpl3+))) + +(define-public makefile2graph + (package + (name "makefile2graph") + (version "1.5.0") + (source (origin + (method url-fetch) + (uri (string-append "https://github.com/lindenb/" name + "/archive/v" version ".tar.gz")) + (sha256 + (base32 + "0h1vchkpmm9h6s87p5nf0ksjxcmsxpx8k62a508w428n570wcr4l")) + (file-name (string-append name "-" version ".tar.gz")))) + (build-system gnu-build-system) + (arguments + '(#:test-target "test" + #:make-flags (list "CC=gcc" (string-append "prefix=" %output)) + #:phases + (modify-phases %standard-phases + (delete 'configure)))) + (native-inputs + `(("graphviz" ,graphviz))) + (home-page "https://github.com/lindenb/makefile2graph") + (synopsis "Creates a graph of dependencies from GNU Make") + (description + "@code{make2graph} creates a graph of dependencies from GNU Make. The +output is a graphviz-dot file, a Gexf-XML file or a list of the deepest +independent targets.") + (license license:expat))) -- 2.16.0