gnu: srecord: Update to 1.65.0.
* gnu/packages/flashing-tools.scm (srecord): Update to 1.65.0. [source]: Add a snippet to fix the very special build system. [arguments]: Rewrite using G-expressions. Remove the old [native-inputs]: Remove bison and libtool. Add doxygen, graphviz, psutils, perl, and perl-ipc-run3.master
parent
dbaa8fdfaf
commit
19f6c16dba
|
@ -46,13 +46,16 @@
|
||||||
#:use-module (gnu packages boost)
|
#:use-module (gnu packages boost)
|
||||||
#:use-module (gnu packages check)
|
#:use-module (gnu packages check)
|
||||||
#:use-module (gnu packages compression)
|
#:use-module (gnu packages compression)
|
||||||
|
#:use-module (gnu packages documentation)
|
||||||
#:use-module (gnu packages elf)
|
#:use-module (gnu packages elf)
|
||||||
#:use-module (gnu packages embedded)
|
#:use-module (gnu packages embedded)
|
||||||
#:use-module (gnu packages flex)
|
#:use-module (gnu packages flex)
|
||||||
#:use-module (gnu packages ghostscript)
|
#:use-module (gnu packages ghostscript)
|
||||||
#:use-module (gnu packages gnupg)
|
#:use-module (gnu packages gnupg)
|
||||||
|
#:use-module (gnu packages graphviz)
|
||||||
#:use-module (gnu packages groff)
|
#:use-module (gnu packages groff)
|
||||||
#:use-module (gnu packages pciutils)
|
#:use-module (gnu packages pciutils)
|
||||||
|
#:use-module (gnu packages perl)
|
||||||
#:use-module (gnu packages pkg-config)
|
#:use-module (gnu packages pkg-config)
|
||||||
#:use-module (gnu packages libusb)
|
#:use-module (gnu packages libusb)
|
||||||
#:use-module (gnu packages libftdi)
|
#:use-module (gnu packages libftdi)
|
||||||
|
@ -475,30 +478,58 @@ Unifinished Extensible Firmware Interface (UEFI) images.")
|
||||||
(define-public srecord
|
(define-public srecord
|
||||||
(package
|
(package
|
||||||
(name "srecord")
|
(name "srecord")
|
||||||
(version "1.64")
|
(version "1.65.0")
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
(method url-fetch)
|
(method url-fetch)
|
||||||
(uri (string-append "mirror://sourceforge/srecord/srecord/"
|
(uri (string-append "mirror://sourceforge/srecord/srecord/"
|
||||||
version "/srecord-" version ".tar.gz"))
|
(version-major+minor version) "/"
|
||||||
|
"srecord-" version "-Source.tar.gz"))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32 "0i3n6g8i28xx8761nadm6p2nf9y31bywx0isyi0h9rawy5yd1hw1"))
|
||||||
"1qk75q0k5vzmm3932q9hqz2gp8n9rrdfjacsswxc02656f3l3929"))))
|
(modules '((guix build utils)))
|
||||||
(build-system gnu-build-system)
|
(snippet
|
||||||
|
'(begin
|
||||||
|
;; Fix building without Git. Upstream tries to allow it but is buggy.
|
||||||
|
(substitute* "etc/configure.cmake"
|
||||||
|
(("\\(GIT_SHA1\\)") "(FALSE)"))
|
||||||
|
;; It also tries to install the entire RUNTIME_DEPENDENCY_SET of
|
||||||
|
;; each executable: libm, libc, libstc++ & more! Get the cluehammer.
|
||||||
|
(substitute* "etc/packaging.cmake"
|
||||||
|
((".*# Find standard library DLL.*" match)
|
||||||
|
"ENDFUNCTION()\n\nFUNCTION(WTF no)\n"))
|
||||||
|
;; Now stop it from deliberately clobbering -DCMAKE_INSTALL_PREFIX.
|
||||||
|
(substitute* "CMakeLists.txt"
|
||||||
|
(("set\\(CMAKE_INSTALL_PREFIX") "#"))))))
|
||||||
|
(build-system cmake-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:configure-flags
|
(list
|
||||||
(list (string-append "SH="
|
#:modules '((guix build cmake-build-system)
|
||||||
(assoc-ref %build-inputs "bash")
|
(guix build utils)
|
||||||
"/bin/bash"))))
|
(srfi srfi-26))
|
||||||
|
#:phases
|
||||||
|
#~(modify-phases %standard-phases
|
||||||
|
(add-before 'check 'make-tests-executable
|
||||||
|
(lambda _
|
||||||
|
(for-each
|
||||||
|
(cut chmod <> #o755)
|
||||||
|
;; We're in a parallel build directory to the sources and tests.
|
||||||
|
(find-files ".." "\\.sh$")))))))
|
||||||
(inputs
|
(inputs
|
||||||
(list boost libgcrypt))
|
(list boost libgcrypt))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
(list bison
|
(list doxygen
|
||||||
diffutils
|
ghostscript ; for ps2pdf
|
||||||
ghostscript
|
graphviz ; the build scripts call this ‘doxygen’…
|
||||||
groff
|
groff
|
||||||
libtool
|
psutils
|
||||||
which))
|
;; For the tests.
|
||||||
|
diffutils
|
||||||
|
which
|
||||||
|
;; XXX Work around Guix's currently-broken psutils package. Remove
|
||||||
|
;; both and maybe (gnu packages perl) when core-updates is merged.
|
||||||
|
perl
|
||||||
|
perl-ipc-run3))
|
||||||
(home-page "https://srecord.sourceforge.net/")
|
(home-page "https://srecord.sourceforge.net/")
|
||||||
(synopsis "Tools for EPROM files")
|
(synopsis "Tools for EPROM files")
|
||||||
(description "The SRecord package is a collection of powerful tools for
|
(description "The SRecord package is a collection of powerful tools for
|
||||||
|
|
Reference in New Issue