--- Begin Message ---
Subject: |
[PATCH] gnu: Add makefile2graph. |
Date: |
Sat, 3 Mar 2018 22:04:11 +0000 |
* 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
--- End Message ---
--- Begin Message ---
Subject: |
Re: [bug#30690] [PATCH] gnu: Add makefile2graph. |
Date: |
Tue, 13 Mar 2018 18:06:50 +0000 |
User-agent: |
mu4e 1.0; emacs 25.3.1 |
Ludovic Courtès <address@hidden> writes:
> Hello!
>
> Christopher Baines <address@hidden> skribis:
>
>> * gnu/packages/plotutils.scm (makefile2graph): New variable.
>
> I’d put that rather in code.scm, but otherwise LGTM, thanks!
That seems sensible. I've moved it and pushed. Thanks for taking a look.
Chris
signature.asc
Description: PGP signature
--- End Message ---