From b2b74114667c7596aee9cde1898bd5c64db4eecc Mon Sep 17 00:00:00 2001 From: Tobias Geerinckx-Rice Date: Sun, 24 Sep 2023 02:00:00 +0200 Subject: gnu: astyle: Update to 3.4.8. * gnu/packages/code.scm (astyle): Update to 3.4.8. [arguments]: Don't explicitly return #t from phases. --- gnu/packages/code.scm | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'gnu/packages/code.scm') diff --git a/gnu/packages/code.scm b/gnu/packages/code.scm index a982e111e94..769b5bb3cc9 100644 --- a/gnu/packages/code.scm +++ b/gnu/packages/code.scm @@ -835,15 +835,14 @@ Objective@tie{}C, D, Java, Pawn, and Vala). Features: (define-public astyle (package (name "astyle") - (version "3.1") + (version "3.4.8") (source (origin (method url-fetch) (uri (string-append "mirror://sourceforge/astyle/astyle/astyle%20" version "/astyle_" version "_linux.tar.gz")) (sha256 - (base32 - "1ms54wcs7hg1bsywqwf2lhdfizgbk7qxc9ghasxk8i99jvwlrk6b")))) + (base32 "1ms54wcs7hg1bsywqwf2lhdfizgbk7qxc9ghasxk8i99jvwlrk6b")))) (build-system gnu-build-system) (arguments `(#:tests? #f ;no tests @@ -856,7 +855,7 @@ Objective@tie{}C, D, Java, Pawn, and Vala). Features: #:phases (modify-phases %standard-phases (replace 'configure - (lambda _ (chdir "build/gcc") #t)) + (lambda _ (chdir "build/gcc"))) (add-after 'install 'install-libs (lambda* (#:key outputs #:allow-other-keys) ;; Libraries and includes are not installed by default @@ -881,8 +880,7 @@ Objective@tie{}C, D, Java, Pawn, and Vala). Features: (lambda (sofile) (make-so-link sofile "(\\.[0-9]){3}$") ;; link .so (make-so-link sofile "(\\.[0-9]){2}$")) ;; link .so.3 - (find-files libdir "lib.*\\.so\\..*"))) - #t))))) + (find-files libdir "lib.*\\.so\\..*")))))))) (home-page "https://astyle.sourceforge.net/") (synopsis "Source code indenter, formatter, and beautifier") (description -- cgit v1.3 From 4658173ea4c7bc040d99d645fe0ef1022ae127a9 Mon Sep 17 00:00:00 2001 From: Tobias Geerinckx-Rice Date: Sun, 24 Sep 2023 02:00:00 +0200 Subject: gnu: astyle: Omit static libraries. * gnu/packages/code.scm (astyle)[arguments]: Improve the buggy regexp in the 'install-libs phase to install only dynamic libraries. --- gnu/packages/code.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gnu/packages/code.scm') diff --git a/gnu/packages/code.scm b/gnu/packages/code.scm index 769b5bb3cc9..38b6eb4513b 100644 --- a/gnu/packages/code.scm +++ b/gnu/packages/code.scm @@ -875,7 +875,7 @@ Objective@tie{}C, D, Java, Pawn, and Vala). Features: (for-each (lambda (l) (copy-file l (string-append libdir "/" (basename l)))) - (find-files "bin" "lib*")) + (find-files "bin" "^lib.*\\.so")) (for-each (lambda (sofile) (make-so-link sofile "(\\.[0-9]){3}$") ;; link .so -- cgit v1.3 From cf6bbf185de5d025e6d07b8e9b5a2dbbf0386c6b Mon Sep 17 00:00:00 2001 From: Tobias Geerinckx-Rice Date: Sun, 24 Sep 2023 02:00:00 +0200 Subject: gnu: astyle: Use G-expressions. * gnu/packages/code.scm (astyle)[arguments]: Rewrite as G-expressions. --- gnu/packages/code.scm | 70 ++++++++++++++++++++++++++------------------------- 1 file changed, 36 insertions(+), 34 deletions(-) (limited to 'gnu/packages/code.scm') diff --git a/gnu/packages/code.scm b/gnu/packages/code.scm index 38b6eb4513b..8835272ce4c 100644 --- a/gnu/packages/code.scm +++ b/gnu/packages/code.scm @@ -845,42 +845,44 @@ Objective@tie{}C, D, Java, Pawn, and Vala). Features: (base32 "1ms54wcs7hg1bsywqwf2lhdfizgbk7qxc9ghasxk8i99jvwlrk6b")))) (build-system gnu-build-system) (arguments - `(#:tests? #f ;no tests - #:make-flags (list (string-append "prefix=" %output) - "INSTALL=install" - "all") - #:modules ((guix build gnu-build-system) ;; FIXME use %default-modules + (list + #:tests? #f ;no tests + #:make-flags + #~(list (string-append "prefix=" #$output) + "INSTALL=install" + "all") + #:modules '((guix build gnu-build-system) ;FIXME use %default-modules (guix build utils) (ice-9 regex)) - #:phases - (modify-phases %standard-phases - (replace 'configure - (lambda _ (chdir "build/gcc"))) - (add-after 'install 'install-libs - (lambda* (#:key outputs #:allow-other-keys) - ;; Libraries and includes are not installed by default - (let* ((output (assoc-ref outputs "out")) - (incdir (string-append output "/include")) - (libdir (string-append output "/lib"))) - (define (make-so-link sofile strip-pattern) - (symlink - (basename sofile) - (regexp-substitute #f - (string-match strip-pattern sofile) - 'pre))) - (mkdir-p incdir) - (copy-file "../../src/astyle.h" - (string-append incdir "/astyle.h")) - (mkdir-p libdir) - (for-each (lambda (l) - (copy-file - l (string-append libdir "/" (basename l)))) - (find-files "bin" "^lib.*\\.so")) - (for-each - (lambda (sofile) - (make-so-link sofile "(\\.[0-9]){3}$") ;; link .so - (make-so-link sofile "(\\.[0-9]){2}$")) ;; link .so.3 - (find-files libdir "lib.*\\.so\\..*")))))))) + #:phases + #~(modify-phases %standard-phases + (replace 'configure + (lambda _ + (chdir "build/gcc"))) + (add-after 'install 'install-more + (lambda* (#:key outputs #:allow-other-keys) + ;; Libraries and headers aren't installed by default. + (let ((include (string-append #$output "/include")) + (lib (string-append #$output "/lib"))) + (define (link.so file strip-pattern) + (symlink + (basename file) + (regexp-substitute #f + (string-match strip-pattern file) + 'pre))) + (mkdir-p include) + (copy-file "../../src/astyle.h" + (string-append include "/astyle.h")) + (mkdir-p lib) + (for-each (lambda (l) + (copy-file + l (string-append lib "/" (basename l)))) + (find-files "bin" "^lib.*\\.so")) + (for-each + (lambda (file) + (link.so file "(\\.[0-9]+){3}$") ;.so + (link.so file "(\\.[0-9]+){2}$")) ;.so.3 + (find-files lib "lib.*\\.so\\..*")))))))) (home-page "https://astyle.sourceforge.net/") (synopsis "Source code indenter, formatter, and beautifier") (description -- cgit v1.3 From ee6b92a99b2898175af3e53b11d61c6f985df08b Mon Sep 17 00:00:00 2001 From: Tobias Geerinckx-Rice Date: Sun, 24 Sep 2023 02:00:00 +0200 Subject: gnu: astyle: Don't build static or debug libraries. * gnu/packages/code.scm (astyle)[arguments]: Build only the "release" and "shared" targets we actually care about. --- gnu/packages/code.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gnu/packages/code.scm') diff --git a/gnu/packages/code.scm b/gnu/packages/code.scm index 8835272ce4c..d408e851bbb 100644 --- a/gnu/packages/code.scm +++ b/gnu/packages/code.scm @@ -850,7 +850,7 @@ Objective@tie{}C, D, Java, Pawn, and Vala). Features: #:make-flags #~(list (string-append "prefix=" #$output) "INSTALL=install" - "all") + "release" "shared") #:modules '((guix build gnu-build-system) ;FIXME use %default-modules (guix build utils) (ice-9 regex)) -- cgit v1.3 From b7789fb9e19b3cc2d0c1429e0c9a4442de4570eb Mon Sep 17 00:00:00 2001 From: Tobias Geerinckx-Rice Date: Sun, 24 Sep 2023 02:00:00 +0200 Subject: gnu: kcov: Update to 42. * gnu/packages/code.scm (kcov): Update to 42. --- gnu/packages/code.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gnu/packages/code.scm') diff --git a/gnu/packages/code.scm b/gnu/packages/code.scm index d408e851bbb..3c6af4f70c3 100644 --- a/gnu/packages/code.scm +++ b/gnu/packages/code.scm @@ -623,7 +623,7 @@ results and determine build stability.") (define-public kcov (package (name "kcov") - (version "40") + (version "42") (source (origin (method git-fetch) (uri (git-reference @@ -632,7 +632,7 @@ results and determine build stability.") (file-name (git-file-name name version)) (sha256 (base32 - "0zayhmx6s377bxmkmvl9d9vjzfbpvh1k9ba6np4zdjvjjq327xag")))) + "14pyahpgadh845q2p1gjw2yrlqcan4n870icrn2yqdpf33cprzgk")))) (build-system cmake-build-system) (arguments `(#:tests? #f ; no test target -- cgit v1.3 From 2022cc9e98bf17d58c71fd0b664faa974d9161fc Mon Sep 17 00:00:00 2001 From: Tobias Geerinckx-Rice Date: Sun, 24 Sep 2023 02:00:00 +0200 Subject: gnu: kcov: Clean up build phase. * gnu/packages/code.scm (kcov)[arguments]: Use SEARCH-INPUT-FILE and remove a vestigial LET from the 'fix-/bin/bash-references phase. --- gnu/packages/code.scm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'gnu/packages/code.scm') diff --git a/gnu/packages/code.scm b/gnu/packages/code.scm index 3c6af4f70c3..071f1b9e38b 100644 --- a/gnu/packages/code.scm +++ b/gnu/packages/code.scm @@ -640,10 +640,9 @@ results and determine build stability.") (modify-phases %standard-phases (add-after 'unpack 'fix-/bin/bash-references (lambda* (#:key inputs #:allow-other-keys) - (let ((bash (assoc-ref inputs "bash"))) (substitute* (find-files "src" ".*\\.cc?$") (("/bin/(bash|sh)" shell) - (string-append (assoc-ref inputs "bash") shell))))))))) + (search-input-file inputs shell)))))))) (inputs (list curl elfutils libelf openssl zlib)) (native-inputs -- cgit v1.3