From 95943ed7dca205e81c22cd0723a3ab1ba67d4040 Mon Sep 17 00:00:00 2001 From: Tobias Geerinckx-Rice Date: Sun, 4 Mar 2018 01:09:57 +0100 Subject: gnu: cloc: Update to 1.76. * gnu/packages/code.scm (cloc): Update to 1.76. [source]: Update origin URI scheme. [inputs]: Add perl-parallel-forkmanager. --- gnu/packages/code.scm | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'gnu/packages/code.scm') diff --git a/gnu/packages/code.scm b/gnu/packages/code.scm index 2067067f20..4a63cba7a0 100644 --- a/gnu/packages/code.scm +++ b/gnu/packages/code.scm @@ -204,23 +204,24 @@ (define ref (define-public cloc (package (name "cloc") - (version "1.74") + (version "1.76") (source (origin (method url-fetch) (uri (string-append - "https://github.com/AlDanial/cloc/releases/download/" version + "https://github.com/AlDanial/cloc/releases/download/v" version "/cloc-" version ".tar.gz")) (sha256 (base32 - "0rq5xfiln1wlv3yr9mg18ax4gskbss786iqaf0v45iv6awyl5b2m")))) + "05srlvzwisr7y7ymvzb5yfdsrspja27ysqdmkwhiiivy84mq2gnl")))) (build-system gnu-build-system) (inputs `(("coreutils" ,coreutils) ("perl" ,perl) ("perl-algorithm-diff" ,perl-algorithm-diff) - ("perl-regexp-common" ,perl-regexp-common) - ("perl-digest-md5" ,perl-digest-md5))) + ("perl-digest-md5" ,perl-digest-md5) + ("perl-parallel-forkmanager" ,perl-parallel-forkmanager) + ("perl-regexp-common" ,perl-regexp-common))) (arguments `(#:phases (modify-phases %standard-phases (delete 'configure) -- cgit v1.2.3 From 53244d1ffa544305d4b6c19907dfcaf2bff2fd21 Mon Sep 17 00:00:00 2001 From: Tobias Geerinckx-Rice Date: Sun, 4 Mar 2018 01:11:47 +0100 Subject: gnu: cloc: Update phase style. * gnu/packages/code.scm (cloc)[arguments]: Substitute INVOKE for SYSTEM* and end phases with #t. --- gnu/packages/code.scm | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'gnu/packages/code.scm') diff --git a/gnu/packages/code.scm b/gnu/packages/code.scm index 4a63cba7a0..8d9c661302 100644 --- a/gnu/packages/code.scm +++ b/gnu/packages/code.scm @@ -229,13 +229,13 @@ (define-public cloc (replace 'install (lambda* (#:key inputs outputs #:allow-other-keys) (let* ((out (assoc-ref outputs "out"))) - (zero? - (system* "make" "-C" "Unix" - (string-append "prefix=" out) - (string-append "INSTALL=" - (assoc-ref inputs "coreutils") - "/bin/install") - "install"))))) + (invoke "make" "-C" "Unix" + (string-append "prefix=" out) + (string-append "INSTALL=" + (assoc-ref inputs "coreutils") + "/bin/install") + "install") + #t))) (add-after 'install 'wrap-program (lambda* (#:key inputs outputs #:allow-other-keys) (let ((out (assoc-ref outputs "out"))) -- cgit v1.2.3 From 254a88199f32d35e39c8913bc557ea2db69bd04e Mon Sep 17 00:00:00 2001 From: Clément Lassieur Date: Thu, 8 Mar 2018 08:58:38 +0100 Subject: gnu: global: Replace GLOBAL with GNU GLOBAL in description. * gnu/packages/code.scm (global)[description]: Replace GLOBAL with GNU GLOBAL. --- gnu/packages/code.scm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'gnu/packages/code.scm') diff --git a/gnu/packages/code.scm b/gnu/packages/code.scm index 8d9c661302..13a89c7bcc 100644 --- a/gnu/packages/code.scm +++ b/gnu/packages/code.scm @@ -139,10 +139,10 @@ (define-public global ; a global variable (home-page "https://www.gnu.org/software/global/") (synopsis "Cross-environment source code tag system") (description - "GLOBAL is a source code tagging system that functions in the same way -across a wide array of environments, such as different text editors, shells -and web browsers. The resulting tags are useful for quickly moving around in -a large, deeply nested project.") + "GNU GLOBAL is a source code tagging system that functions in the same +way across a wide array of environments, such as different text editors, +shells and web browsers. The resulting tags are useful for quickly moving +around in a large, deeply nested project.") (license license:gpl3+))) (define-public sloccount -- cgit v1.2.3 From 906dcb20f2847d4f886e482642e2a5d361c5c59c Mon Sep 17 00:00:00 2001 From: Christopher Baines Date: Sat, 3 Mar 2018 22:02:27 +0000 Subject: gnu: Add makefile2graph. * gnu/packages/code.scm (makefile2graph): New variable. --- gnu/packages/code.scm | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) (limited to 'gnu/packages/code.scm') diff --git a/gnu/packages/code.scm b/gnu/packages/code.scm index 13a89c7bcc..979c7a72b8 100644 --- a/gnu/packages/code.scm +++ b/gnu/packages/code.scm @@ -37,6 +37,7 @@ (define-module (gnu packages code) #:use-module (gnu packages databases) #:use-module (gnu packages emacs) #:use-module (gnu packages gcc) + #:use-module (gnu packages graphviz) #:use-module (gnu packages pcre) #:use-module (gnu packages pkg-config) #:use-module (gnu packages perl) @@ -497,3 +498,32 @@ (define-public colormake (description "This package provides a wrapper around @command{make} to produce colored output.") (license license:gpl2+))) + +(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))) -- cgit v1.2.3