mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: libsigrok: Update to 0.5.2-1.a7e919a.
* gnu/packages/electronics.scm (libsigrok): Update to 0.5.2-1.a7e919a. [source]: Switch to git-fetch. [arguments]: Remove trailing #t. [native-inputs]: Add autoconf, automake and libtool. [synopsis]: Shorten it. [description]: Wrap it.
This commit is contained in:
parent
b09f2aa4da
commit
f5ccf99fe5
1 changed files with 72 additions and 72 deletions
|
@ -24,6 +24,7 @@
|
||||||
#:use-module (guix utils)
|
#:use-module (guix utils)
|
||||||
#:use-module (guix packages)
|
#:use-module (guix packages)
|
||||||
#:use-module (guix download)
|
#:use-module (guix download)
|
||||||
|
#:use-module (guix git-download)
|
||||||
#:use-module ((guix licenses) #:prefix license:)
|
#:use-module ((guix licenses) #:prefix license:)
|
||||||
#:use-module (guix build-system gnu)
|
#:use-module (guix build-system gnu)
|
||||||
#:use-module (guix build-system cmake)
|
#:use-module (guix build-system cmake)
|
||||||
|
@ -145,17 +146,20 @@ as simple logic analyzer and/or oscilloscope hardware.")
|
||||||
(license license:gpl2+)))
|
(license license:gpl2+)))
|
||||||
|
|
||||||
(define-public libsigrok
|
(define-public libsigrok
|
||||||
|
(let ((commit "a7e919a3a6b7fd511acbe1a280536b76c70c28d2")
|
||||||
|
(revision "1"))
|
||||||
(package
|
(package
|
||||||
(name "libsigrok")
|
(name "libsigrok")
|
||||||
(version "0.5.2")
|
(version (git-version "0.5.2" revision commit))
|
||||||
(source (origin
|
(source
|
||||||
(method url-fetch)
|
(origin
|
||||||
(uri (string-append
|
(method git-fetch)
|
||||||
"http://sigrok.org/download/source/libsigrok/libsigrok-"
|
(uri (git-reference
|
||||||
version ".tar.gz"))
|
(url "git://sigrok.org/libsigrok")
|
||||||
|
(commit commit)))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32 "0km3fyv5s2byrm4zpbss2527ynhw4nb67imnbawwic2a6zh9jiyc"))
|
||||||
"0g6fl684bpqm5p2z4j12c62m45j1dircznjina63w392ns81yd2d"))))
|
(file-name (git-file-name name version))))
|
||||||
(outputs '("out" "doc"))
|
(outputs '("out" "doc"))
|
||||||
(arguments
|
(arguments
|
||||||
`(#:tests? #f ; tests need USB access
|
`(#:tests? #f ; tests need USB access
|
||||||
|
@ -164,8 +168,7 @@ as simple logic analyzer and/or oscilloscope hardware.")
|
||||||
(add-before 'configure 'change-udev-group
|
(add-before 'configure 'change-udev-group
|
||||||
(lambda _
|
(lambda _
|
||||||
(substitute* (find-files "contrib" "\\.rules$")
|
(substitute* (find-files "contrib" "\\.rules$")
|
||||||
(("plugdev") "dialout"))
|
(("plugdev") "dialout"))))
|
||||||
#t))
|
|
||||||
(add-after 'build 'build-doc
|
(add-after 'build 'build-doc
|
||||||
(lambda _
|
(lambda _
|
||||||
(invoke "doxygen")))
|
(invoke "doxygen")))
|
||||||
|
@ -173,16 +176,14 @@ as simple logic analyzer and/or oscilloscope hardware.")
|
||||||
(lambda* (#:key outputs #:allow-other-keys)
|
(lambda* (#:key outputs #:allow-other-keys)
|
||||||
(copy-recursively "doxy/html-api"
|
(copy-recursively "doxy/html-api"
|
||||||
(string-append (assoc-ref outputs "doc")
|
(string-append (assoc-ref outputs "doc")
|
||||||
"/share/doc/libsigrok"))
|
"/share/doc/libsigrok"))))
|
||||||
#t))
|
|
||||||
(add-after 'install-doc 'install-udev-rules
|
(add-after 'install-doc 'install-udev-rules
|
||||||
(lambda* (#:key outputs #:allow-other-keys)
|
(lambda* (#:key outputs #:allow-other-keys)
|
||||||
(let* ((out (assoc-ref outputs "out"))
|
(let* ((out (assoc-ref outputs "out"))
|
||||||
(rules (string-append out "/lib/udev/rules.d/")))
|
(rules (string-append out "/lib/udev/rules.d/")))
|
||||||
(for-each (lambda (file)
|
(for-each (lambda (file)
|
||||||
(install-file file rules))
|
(install-file file rules))
|
||||||
(find-files "contrib" "\\.rules$"))
|
(find-files "contrib" "\\.rules$")))))
|
||||||
#t)))
|
|
||||||
(add-after 'install-udev-rules 'install-fw
|
(add-after 'install-udev-rules 'install-fw
|
||||||
(lambda* (#:key inputs outputs #:allow-other-keys)
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
||||||
(let* ((fx2lafw (assoc-ref inputs "sigrok-firmware-fx2lafw"))
|
(let* ((fx2lafw (assoc-ref inputs "sigrok-firmware-fx2lafw"))
|
||||||
|
@ -193,15 +194,15 @@ as simple logic analyzer and/or oscilloscope hardware.")
|
||||||
(for-each
|
(for-each
|
||||||
(lambda (file)
|
(lambda (file)
|
||||||
(install-file file output-dir))
|
(install-file file output-dir))
|
||||||
(find-files input-dir ".")))
|
(find-files input-dir "."))))))))
|
||||||
#t)))))
|
|
||||||
(native-inputs
|
(native-inputs
|
||||||
(list doxygen graphviz sigrok-firmware-fx2lafw pkg-config))
|
(list autoconf automake doxygen graphviz libtool
|
||||||
|
sigrok-firmware-fx2lafw pkg-config))
|
||||||
(inputs
|
(inputs
|
||||||
(list python zlib))
|
(list python zlib))
|
||||||
;; libsigrokcxx.pc lists "glibmm" in Requires
|
;; libsigrokcxx.pc lists "glibmm" in Requires libsigrok.pc lists
|
||||||
;; libsigrok.pc lists "libserialport", "libusb", "libftdi" and "libzip" in
|
;; "libserialport", "libusb", "libftdi" and "libzip" in Requires.private
|
||||||
;; Requires.private and "glib" in Requires
|
;; and "glib" in Requires
|
||||||
(propagated-inputs
|
(propagated-inputs
|
||||||
(list glib
|
(list glib
|
||||||
glibmm-2.64
|
glibmm-2.64
|
||||||
|
@ -211,12 +212,11 @@ as simple logic analyzer and/or oscilloscope hardware.")
|
||||||
libzip))
|
libzip))
|
||||||
(build-system gnu-build-system)
|
(build-system gnu-build-system)
|
||||||
(home-page "https://www.sigrok.org/wiki/Libsigrok")
|
(home-page "https://www.sigrok.org/wiki/Libsigrok")
|
||||||
(synopsis "Library which provides the basic hardware access drivers for logic
|
(synopsis "Basic hardware access drivers for logic analyzers")
|
||||||
analyzers")
|
(description "@code{libsigrok} is a shared library written in C which
|
||||||
(description "@code{libsigrok} is a shared library written in C which provides the basic hardware
|
provides the basic hardware access drivers for logic analyzers and other
|
||||||
access drivers for logic analyzers and other supported devices, as well as input/output file
|
supported devices, as well as input/output file format support.")
|
||||||
format support.")
|
(license license:gpl3+))))
|
||||||
(license license:gpl3+)))
|
|
||||||
|
|
||||||
(define-public sigrok-cli
|
(define-public sigrok-cli
|
||||||
(package
|
(package
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue