me
/
guix
Archived
1
0
Fork 0

gnu: doxygen: Use new style.

* gnu/packages/documentation.scm (doxygen)[inputs]: Remove label.
[arguments]: Likewise.  Convert to G-expression.
master
Marius Bakke 2022-06-27 21:10:01 +02:00
parent 69bce01863
commit 80193fff59
No known key found for this signature in database
GPG Key ID: A2A06DF2A33A54FA
1 changed files with 37 additions and 34 deletions

View File

@ -10,7 +10,7 @@
;;; Copyright © 2019 Mathieu Othacehe <m.othacehe@gmail.com> ;;; Copyright © 2019 Mathieu Othacehe <m.othacehe@gmail.com>
;;; Copyright © 2020 Ricardo Wurmus <rekado@elephly.net> ;;; Copyright © 2020 Ricardo Wurmus <rekado@elephly.net>
;;; Copyright © 2020, 2021 Michael Rohleder <mike@rohleder.de> ;;; Copyright © 2020, 2021 Michael Rohleder <mike@rohleder.de>
;;; Copyright © 2021 Marius Bakke <marius@gnu.org> ;;; Copyright © 2021, 2022 Marius Bakke <marius@gnu.org>
;;; Copyright © 2022 Maxim Cournoyer <maxim.counoyer@gmail.com> ;;; Copyright © 2022 Maxim Cournoyer <maxim.counoyer@gmail.com>
;;; ;;;
;;; This file is part of GNU Guix. ;;; This file is part of GNU Guix.
@ -190,45 +190,48 @@ markup) can be customized and extended by the user.")
(version "1.9.4") (version "1.9.4")
(home-page "https://www.doxygen.nl/") (home-page "https://www.doxygen.nl/")
(source (origin (source (origin
(method url-fetch) (method url-fetch)
(uri (list (string-append home-page "files/doxygen-" (uri (list (string-append home-page "files/doxygen-"
version ".src.tar.gz") version ".src.tar.gz")
(string-append "mirror://sourceforge/doxygen/rel-" (string-append "mirror://sourceforge/doxygen/rel-"
version "/doxygen-" version version "/doxygen-" version
".src.tar.gz"))) ".src.tar.gz")))
(sha256 (sha256
(base32 (base32
"0dqzgci82z950pzg6cpxvvqwybi2031flml3pj47hayhq3c9qpm1")))) "0dqzgci82z950pzg6cpxvvqwybi2031flml3pj47hayhq3c9qpm1"))))
(build-system cmake-build-system) (build-system cmake-build-system)
(native-inputs (native-inputs
(list bison flex libxml2 ;provides xmllint for the tests (list bison
python)) ;for creating the documentation flex
libxml2 ;provides xmllint for the tests
python)) ;for creating the documentation
(inputs (inputs
`(("bash" ,bash-minimal))) (list bash-minimal))
(arguments (arguments
;; Force cmake to use iconv header from cross-libc instead of the one ;; Force cmake to use iconv header from cross-libc instead of the one
;; from native libc. ;; from native libc.
`(,@(if (%current-target-system) (list
'(#:configure-flags #:configure-flags
(list (string-append "-DICONV_INCLUDE_DIR=" (if (%current-target-system)
(assoc-ref %build-inputs "cross-libc") #~(list (string-append "-DICONV_INCLUDE_DIR="
"/include"))) (assoc-ref %build-inputs "cross-libc")
'()) "/include"))
#:test-target "tests" #~'())
#:phases (modify-phases %standard-phases #:test-target "tests"
(add-after 'unpack 'disable-bibtex-test #:phases
(lambda _ #~(modify-phases %standard-phases
;; Disable test that requires bibtex to avoid a (add-after 'unpack 'disable-bibtex-test
;; circular dependency. (lambda _
(for-each delete-file-recursively ;; Disable test that requires bibtex to avoid a
'("testing/012" "testing/012_cite.dox")))) ;; circular dependency.
(add-before 'configure 'patch-sh (for-each delete-file-recursively
(lambda* (#:key inputs #:allow-other-keys) '("testing/012" "testing/012_cite.dox"))))
(substitute* "src/portable.cpp" (add-before 'configure 'patch-sh
(("/bin/sh") (lambda* (#:key inputs #:allow-other-keys)
(string-append (let ((/bin/sh (search-input-file inputs "/bin/sh")))
(assoc-ref inputs "bash") "/bin/sh"))) (substitute* "src/portable.cpp"
#t))))) (("/bin/sh")
/bin/sh))))))))
(synopsis "Generate documentation from annotated sources") (synopsis "Generate documentation from annotated sources")
(description "Doxygen is the de facto standard tool for generating (description "Doxygen is the de facto standard tool for generating
documentation from annotated C++ sources, but it also supports other popular documentation from annotated C++ sources, but it also supports other popular