mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-02-02 07:46:20 +01:00
gnu: newsboat: Update package style.
* gnu/packages/syndication.scm (newsboat)[native-inputs]: Remove input labels. [arguments]: Use g-exps. Remove input labels from cargo-inputs, cargo-development-inputs. Change-Id: Ie9c2029f593c3af2eb22f74be0d63524448d43b7
This commit is contained in:
parent
ac3a3e508c
commit
30e5769a21
1 changed files with 71 additions and 69 deletions
|
@ -247,13 +247,14 @@ (define-public newsboat
|
||||||
(base32 "0z57zc70gqac2vk6hlv4ijql3nrn0dzi1w8drvl9any2hnixwm2g"))))
|
(base32 "0z57zc70gqac2vk6hlv4ijql3nrn0dzi1w8drvl9any2hnixwm2g"))))
|
||||||
(build-system cargo-build-system)
|
(build-system cargo-build-system)
|
||||||
(native-inputs
|
(native-inputs
|
||||||
`(("gettext" ,gettext-minimal)
|
(append
|
||||||
("openssl" ,openssl)
|
(list gettext-minimal
|
||||||
("pkg-config" ,pkg-config)
|
openssl
|
||||||
|
pkg-config)
|
||||||
;; For building documentation.
|
;; For building documentation.
|
||||||
,@(if (supported-package? ruby-asciidoctor)
|
(if (supported-package? ruby-asciidoctor)
|
||||||
`(("asciidoctor" ,ruby-asciidoctor))
|
(list ruby-asciidoctor)
|
||||||
`())))
|
'())))
|
||||||
(inputs
|
(inputs
|
||||||
(list curl
|
(list curl
|
||||||
json-c
|
json-c
|
||||||
|
@ -262,73 +263,74 @@ (define-public newsboat
|
||||||
stfl
|
stfl
|
||||||
sqlite))
|
sqlite))
|
||||||
(arguments
|
(arguments
|
||||||
`(#:modules ((guix build cargo-build-system)
|
(list
|
||||||
(guix build utils)
|
#:modules '((guix build cargo-build-system)
|
||||||
((guix build gnu-build-system) #:prefix gnu:))
|
(guix build utils)
|
||||||
|
((guix build gnu-build-system) #:prefix gnu:))
|
||||||
#:install-source? #f
|
#:install-source? #f
|
||||||
#:cargo-inputs
|
#:cargo-inputs
|
||||||
(("rust-backtrace" ,rust-backtrace-0.3)
|
(list rust-backtrace-0.3
|
||||||
("rust-bitflags" ,rust-bitflags-2)
|
rust-bitflags-2
|
||||||
("rust-chrono" ,rust-chrono-0.4)
|
rust-chrono-0.4
|
||||||
("rust-curl-sys" ,rust-curl-sys-0.4)
|
rust-curl-sys-0.4
|
||||||
("rust-cxx" ,rust-cxx-1)
|
rust-cxx-1
|
||||||
("rust-cxx-build" ,rust-cxx-build-1)
|
rust-cxx-build-1
|
||||||
("rust-fastrand" ,rust-fastrand-2)
|
rust-fastrand-2
|
||||||
("rust-gettext-rs" ,rust-gettext-rs-0.7)
|
rust-gettext-rs-0.7
|
||||||
("rust-httpmock" ,rust-httpmock-0.7)
|
rust-httpmock-0.7
|
||||||
("rust-lexopt" ,rust-lexopt-0.3)
|
rust-lexopt-0.3
|
||||||
("rust-libc" ,rust-libc-0.2)
|
rust-libc-0.2
|
||||||
("rust-md5" ,rust-md5-0.7)
|
rust-md5-0.7
|
||||||
("rust-natord" ,rust-natord-1)
|
rust-natord-1
|
||||||
("rust-nom" ,rust-nom-7)
|
rust-nom-7
|
||||||
("rust-percent-encoding" ,rust-percent-encoding-2)
|
rust-percent-encoding-2
|
||||||
("rust-url" ,rust-url-2)
|
rust-url-2
|
||||||
("rust-unicode-width" ,rust-unicode-width-0.1)
|
rust-unicode-width-0.1
|
||||||
("rust-unicode-segmentation" ,rust-unicode-segmentation-1)
|
rust-unicode-segmentation-1
|
||||||
("rust-xdg" ,rust-xdg-2))
|
rust-xdg-2)
|
||||||
#:cargo-development-inputs
|
#:cargo-development-inputs
|
||||||
(("rust-tempfile" ,rust-tempfile-3)
|
(list rust-tempfile-3
|
||||||
("rust-proptest" ,rust-proptest-1)
|
rust-proptest-1
|
||||||
("rust-section-testing" ,rust-section-testing-0.0.5))
|
rust-section-testing-0.0.5)
|
||||||
#:phases
|
#:phases
|
||||||
(modify-phases %standard-phases
|
#~(modify-phases %standard-phases
|
||||||
,@(if (not (assoc-ref inputs "asciidoctor"))
|
#$@(if (not (this-package-native-input "asciidoctor"))
|
||||||
`((add-after 'unpack 'dont-use-asciidoctor
|
#~((add-after 'unpack 'dont-use-asciidoctor
|
||||||
(lambda _
|
(lambda _
|
||||||
(substitute* "config.sh"
|
(substitute* "config.sh"
|
||||||
((".*asciidoctor.*") ""))
|
((".*asciidoctor.*") ""))
|
||||||
(substitute* "Makefile"
|
(substitute* "Makefile"
|
||||||
(("^doc:.*") "doc:\n")
|
(("^doc:.*") "doc:\n")
|
||||||
(("install-podboat install-docs") "install-podboat")))))
|
(("install-podboat install-docs") "install-podboat")))))
|
||||||
'())
|
#~())
|
||||||
(add-after 'unpack 'pre-build
|
(add-after 'unpack 'pre-build
|
||||||
(lambda* (#:key inputs #:allow-other-keys)
|
(lambda* (#:key inputs #:allow-other-keys)
|
||||||
(setenv "CXX" ,(cxx-for-target))
|
(setenv "CXX" #$(cxx-for-target))
|
||||||
(setenv "CXX_FOR_BUILD" (which "g++"))
|
(setenv "CXX_FOR_BUILD" (which "g++"))
|
||||||
(substitute* "config.sh"
|
(substitute* "config.sh"
|
||||||
(("if curl-config")
|
(("if curl-config")
|
||||||
(string-append
|
(string-append
|
||||||
"if " (search-input-file inputs "/bin/curl-config"))))))
|
"if " (search-input-file inputs "/bin/curl-config"))))))
|
||||||
(add-after 'configure 'dont-vendor-self
|
(add-after 'configure 'dont-vendor-self
|
||||||
(lambda* (#:key vendor-dir #:allow-other-keys)
|
(lambda* (#:key vendor-dir #:allow-other-keys)
|
||||||
;; Don't keep the whole tarball in the vendor directory
|
;; Don't keep the whole tarball in the vendor directory
|
||||||
(delete-file-recursively
|
(delete-file-recursively
|
||||||
(string-append vendor-dir "/" ,name "-" ,version ".tar.xz"))))
|
(string-append vendor-dir "/" #$name "-" #$version ".tar.xz"))))
|
||||||
(add-after 'unpack 'patch-source
|
(add-after 'unpack 'patch-source
|
||||||
(lambda* (#:key outputs #:allow-other-keys)
|
(lambda* (#:key outputs #:allow-other-keys)
|
||||||
(substitute* "Makefile"
|
(substitute* "Makefile"
|
||||||
(("Cargo.lock") "")
|
(("Cargo.lock") "")
|
||||||
;; Replace the prefix in the Makefile.
|
;; Replace the prefix in the Makefile.
|
||||||
(("/usr/local") (assoc-ref outputs "out")))))
|
(("/usr/local") (assoc-ref outputs "out")))))
|
||||||
(replace 'build
|
(replace 'build
|
||||||
(assoc-ref gnu:%standard-phases 'build))
|
(assoc-ref gnu:%standard-phases 'build))
|
||||||
(replace 'check
|
(replace 'check
|
||||||
(lambda* (#:key tests? #:allow-other-keys #:rest args)
|
(lambda* (#:key tests? #:allow-other-keys #:rest args)
|
||||||
(when tests?
|
(when tests?
|
||||||
((assoc-ref gnu:%standard-phases 'check)
|
((assoc-ref gnu:%standard-phases 'check)
|
||||||
#:test-target "test"))))
|
#:test-target "test"))))
|
||||||
(replace 'install
|
(replace 'install
|
||||||
(assoc-ref gnu:%standard-phases 'install)))))
|
(assoc-ref gnu:%standard-phases 'install)))))
|
||||||
(native-search-paths
|
(native-search-paths
|
||||||
;; Newsboat respects CURL_CA_BUNDLE.
|
;; Newsboat respects CURL_CA_BUNDLE.
|
||||||
(list (search-path-specification
|
(list (search-path-specification
|
||||||
|
|
Loading…
Reference in a new issue