summaryrefslogtreecommitdiff
path: root/gnu/packages/code.scm
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2015-12-30 19:14:04 +0100
committerLudovic Courtès <ludo@gnu.org>2015-12-30 19:14:04 +0100
commit0084aaf3d4a959c0ea33ed617784590ec3b45e9a (patch)
tree8c3a7ae410043370e7469ebd51fe3b88d99db761 /gnu/packages/code.scm
parent0c1910ed036438adf7acaab0423cc85920eb66d9 (diff)
gnu: Add lcov.
* gnu/packages/code.scm (lcov): New variable.
Diffstat (limited to 'gnu/packages/code.scm')
-rw-r--r--gnu/packages/code.scm32
1 files changed, 32 insertions, 0 deletions
diff --git a/gnu/packages/code.scm b/gnu/packages/code.scm
index 86b131a3e8e..e8c936849a1 100644
--- a/gnu/packages/code.scm
+++ b/gnu/packages/code.scm
@@ -280,3 +280,35 @@ stack traces.")
280 ;; Sources are released under Expat license, but since BFD is licensed 280 ;; Sources are released under Expat license, but since BFD is licensed
281 ;; under the GPLv3+ the combined work is GPLv3+ as well. 281 ;; under the GPLv3+ the combined work is GPLv3+ as well.
282 (license license:gpl3+))) 282 (license license:gpl3+)))
283
284(define-public lcov
285 (package
286 (name "lcov")
287 (version "1.10")
288 (source (origin
289 (method url-fetch)
290 (uri (string-append "mirror://sourceforge/ltp/lcov-"
291 version ".tar.gz"))
292 (sha256
293 (base32
294 "13xq2ln4jjasslqzzhr5g11q1c19gwpng1jphzbzmylmrjz62ila"))))
295 (build-system gnu-build-system)
296 (arguments
297 '(#:make-flags (let ((out (assoc-ref %outputs "out")))
298 (list (string-append "PREFIX=" out)
299 (string-append "BIN_DIR=" out "/bin")
300 (string-append "MAN_DIR=" out "/share/man")))
301 #:phases (modify-phases %standard-phases
302 (delete 'configure))
303 #:tests? #f)) ;no 'check' target
304 (inputs `(("perl" ,perl)))
305 (home-page "http://ltp.sourceforge.net/coverage/lcov.php")
306 (synopsis "Code coverage tool that enhances GNU gcov")
307 (description
308 "LCOV is an extension of @command{gcov}, a tool part of the
309GNU@tie{}Binutils, which provides information about what parts of a program
310are actually executed (i.e., \"covered\") while running a particular test
311case. The extension consists of a set of Perl scripts which build on the
312textual @command{gcov} output to implement the following enhanced
313functionality such as HTML output.")
314 (license license:gpl2+)))