diff options
| author | Tobias Geerinckx-Rice <me@tobias.gr> | 2020-09-22 02:16:01 +0200 |
|---|---|---|
| committer | Tobias Geerinckx-Rice <me@tobias.gr> | 2020-09-23 04:36:36 +0200 |
| commit | adbcc3ed8c11d50356f538b865fd1ca99f413ecc (patch) | |
| tree | 9958a6224c57a35b04142648333fa4a8fe4fd37c /gnu/packages | |
| parent | bfc0a2ffa8a551b71fd59e58932125f5f87bbb02 (diff) | |
gnu: lcov: Update to 1.15.
* gnu/packages/code.scm (lcov): Update to 1.15.
[source]: Use a release tarball.
[inputs]: Replace perl-perlio-gzip with perl-io-compress.
Diffstat (limited to 'gnu/packages')
| -rw-r--r-- | gnu/packages/code.scm | 91 |
1 files changed, 42 insertions, 49 deletions
diff --git a/gnu/packages/code.scm b/gnu/packages/code.scm index 7cdd0cc8d68..6d348308ac8 100644 --- a/gnu/packages/code.scm +++ b/gnu/packages/code.scm | |||
| @@ -470,60 +470,53 @@ stack traces.") | |||
| 470 | (license license:gpl3+))) | 470 | (license license:gpl3+))) |
| 471 | 471 | ||
| 472 | (define-public lcov | 472 | (define-public lcov |
| 473 | ;; Use a recent commit from upstream since the latest official release | 473 | (package |
| 474 | ;; (1.14) doesn't support GCC 9 (see: | 474 | (name "lcov") |
| 475 | ;; https://github.com/linux-test-project/lcov/issues/58). | 475 | (version "1.15") |
| 476 | (let* ((commit "40580cd65909bc8324ae09b36bca2e178652ff3f") | 476 | (source |
| 477 | (revision "0") | 477 | (origin |
| 478 | (version (git-version "1.14" revision commit))) | 478 | (method url-fetch) |
| 479 | (package | 479 | (uri (string-append "https://github.com/linux-test-project/lcov" |
| 480 | (name "lcov") | 480 | "/releases/download/v" version |
| 481 | (version "1.14") | 481 | "/lcov-" version ".tar.gz")) |
| 482 | (source (origin | 482 | (sha256 |
| 483 | (method git-fetch) | 483 | (base32 "0fh5z0q5wg2jxr2nn5w7321y0zg9rwk75j3k5hnamjdy6gxa5kf1")))) |
| 484 | (uri (git-reference | 484 | (build-system gnu-build-system) |
| 485 | (url "https://github.com/linux-test-project/lcov") | 485 | (arguments |
| 486 | (commit commit))) | 486 | '(#:test-target "test" |
| 487 | (file-name (git-file-name name version)) | 487 | #:make-flags (list (string-append "PREFIX=" |
| 488 | (sha256 | 488 | (assoc-ref %outputs "out"))) |
| 489 | (base32 | 489 | #:phases |
| 490 | "0shgmh6fzhnj1qfdl90jgjmlbb1ih1qh879dca8hc58yggy3hqgb")))) | 490 | (modify-phases %standard-phases |
| 491 | (build-system gnu-build-system) | 491 | (add-after 'unpack 'patch-pwd |
| 492 | (arguments | 492 | ;; Lift the requirement of having a shell in PATH. |
| 493 | '(#:test-target "test" | 493 | (lambda _ |
| 494 | #:make-flags (list (string-append "PREFIX=" | 494 | (substitute* "bin/geninfo" |
| 495 | (assoc-ref %outputs "out"))) | 495 | (("qw/abs_path/") |
| 496 | #:phases | 496 | "qw/abs_path getcwd/")) |
| 497 | (modify-phases %standard-phases | 497 | (substitute* '("bin/lcov" "bin/geninfo") |
| 498 | (add-after 'unpack 'patch-pwd | 498 | (("`pwd`") |
| 499 | ;; Lift the requirement of having a shell in PATH. | 499 | "getcwd()")) |
| 500 | (lambda _ | 500 | #t)) |
| 501 | (substitute* "bin/geninfo" | 501 | (delete 'configure) ;no configure script |
| 502 | (("qw/abs_path/") | 502 | (add-after 'install 'wrap |
| 503 | "qw/abs_path getcwd/")) | 503 | (lambda* (#:key outputs #:allow-other-keys) |
| 504 | (substitute* '("bin/lcov" "bin/geninfo") | 504 | (let ((out (assoc-ref outputs "out"))) |
| 505 | (("`pwd`") | 505 | (wrap-program (string-append out "/bin/geninfo") |
| 506 | "getcwd()")) | 506 | `("PERL5LIB" ":" prefix (,(getenv "PERL5LIB"))))) |
| 507 | #t)) | 507 | #t))))) |
| 508 | (delete 'configure) ;no configure script | 508 | (inputs `(("perl" ,perl) |
| 509 | (add-after 'install 'wrap | 509 | ("perl-io-compress" ,perl-io-compress) |
| 510 | (lambda* (#:key outputs #:allow-other-keys) | 510 | ("perl-json" ,perl-json))) |
| 511 | (let ((out (assoc-ref outputs "out"))) | 511 | (home-page "http://ltp.sourceforge.net/coverage/lcov.php") |
| 512 | (wrap-program (string-append out "/bin/geninfo") | 512 | (synopsis "Code coverage tool that enhances GNU gcov") |
| 513 | `("PERL5LIB" ":" prefix (,(getenv "PERL5LIB"))))) | 513 | (description "LCOV is an extension of @command{gcov}, a tool part of the |
| 514 | #t))))) | ||
| 515 | (inputs `(("perl" ,perl) | ||
| 516 | ("perl-json" ,perl-json) | ||
| 517 | ("perl-perlio-gzip" ,perl-perlio-gzip))) | ||
| 518 | (home-page "http://ltp.sourceforge.net/coverage/lcov.php") | ||
| 519 | (synopsis "Code coverage tool that enhances GNU gcov") | ||
| 520 | (description "LCOV is an extension of @command{gcov}, a tool part of the | ||
| 521 | GNU@tie{}Binutils, which provides information about what parts of a program | 514 | GNU@tie{}Binutils, which provides information about what parts of a program |
| 522 | are actually executed (i.e., \"covered\") while running a particular test | 515 | are actually executed (i.e., \"covered\") while running a particular test |
| 523 | case. The extension consists of a set of Perl scripts which build on the | 516 | case. The extension consists of a set of Perl scripts which build on the |
| 524 | textual @command{gcov} output to implement the following enhanced | 517 | textual @command{gcov} output to implement the following enhanced |
| 525 | functionality such as HTML output.") | 518 | functionality such as HTML output.") |
| 526 | (license license:gpl2+)))) | 519 | (license license:gpl2+))) |
| 527 | 520 | ||
| 528 | (define-public kcov | 521 | (define-public kcov |
| 529 | (package | 522 | (package |
