~ruther/guix-local

65762d5ac951dad9800d164810688b1bb5c968eb — Artyom V. Poptsov 5 months ago 2d78201
gnu: libabigail: Modernize the package.

* gnu/packages/elf.scm (libabigail): Modernize the package.
[arguments]: Use GEXPs.

Change-Id: Ie2f4a3f1779fca4e50c4c2db0cd5d5657736732b
1 files changed, 30 insertions(+), 33 deletions(-)

M gnu/packages/elf.scm
M gnu/packages/elf.scm => gnu/packages/elf.scm +30 -33
@@ 213,39 213,36 @@ object or archive file), @command{eu-strip} (for discarding symbols),
                "1nkg7fsqvdr453hrskscy6xqz6fv45mylpgv1357dw3blnbsw11p"))))
    (build-system gnu-build-system)
    (arguments
     `(#:configure-flags '("--disable-static"
                           "--enable-bash-completion"
                           "--enable-manual")
       #:make-flags '("V=1")
       #:phases (modify-phases %standard-phases
                  (add-after 'unpack 'patch-source
                    (lambda _
                      (substitute* "build-aux/ltmain.sh"
                        ;; Don't add -specs=/usr/lib/rpm/redhat/redhat-hardened-ld
                        ;; to the GCC command line.
                        (("compiler_flags=\"-specs=.*")
                         "compiler_flags=\n"))
                      #t))
                  (add-after 'build 'build-documentation
                    (lambda _
                      (invoke "make" "-C" "doc/manuals" "html-doc" "man" "info")))
                  (add-before 'check 'set-test-environment
                    (lambda _
                      (setenv "XDG_CACHE_HOME" "/tmp")
                      #t))
                  (add-after 'install 'install-documentation
                    (lambda _
                      (invoke "make" "-C" "doc/manuals"
                              "install-man-and-info-doc")))
                  (add-after 'install-documentation 'install-bash-completion
                    (lambda* (#:key outputs #:allow-other-keys)
                      (for-each (lambda (file)
                                  (install-file
                                   file (string-append (assoc-ref outputs "out")
                                                       "/share/bash-completion"
                                                       "/completions")))
                                (find-files "bash-completion" ".*abi.*"))
                      #t)))))
     (list #:configure-flags #~(list "--disable-static"
                                     "--enable-bash-completion"
                                     "--enable-manual")
       #:make-flags #~(list "V=1")
       #:phases #~(modify-phases %standard-phases
                    (add-after 'unpack 'patch-source
                      (lambda _
                        (substitute* "build-aux/ltmain.sh"
                          ;; Don't add -specs=/usr/lib/rpm/redhat/redhat-hardened-ld
                          ;; to the GCC command line.
                          (("compiler_flags=\"-specs=.*")
                           "compiler_flags=\n"))))
                    (add-after 'build 'build-documentation
                      (lambda _
                        (invoke "make" "-C" "doc/manuals" "html-doc" "man" "info")))
                    (add-before 'check 'set-test-environment
                      (lambda _
                        (setenv "XDG_CACHE_HOME" "/tmp")))
                    (add-after 'install 'install-documentation
                      (lambda _
                        (invoke "make" "-C" "doc/manuals"
                                "install-man-and-info-doc")))
                    (add-after 'install-documentation 'install-bash-completion
                      (lambda _
                        (for-each (lambda (file)
                                    (install-file
                                     file (string-append #$output
                                                         "/share/bash-completion"
                                                         "/completions")))
                                  (find-files "bash-completion" ".*abi.*")))))))
    (native-inputs
     (list pkg-config texinfo python-sphinx python))
    (propagated-inputs