gnu: python2-pygtk: Add "doc" output.
* gnu/packages/gtk.scm (python2-pygtk)[outputs]: New field. [arguments]: Add 'set-gtk-doc-directory' phase.
This commit is contained in:
parent
ae115bc75a
commit
594e7b479a
|
@ -994,6 +994,8 @@ extensive documentation, including API reference and a tutorial.")
|
||||||
(base32
|
(base32
|
||||||
"04k942gn8vl95kwf0qskkv6npclfm31d78ljkrkgyqxxcni1w76d"))))
|
"04k942gn8vl95kwf0qskkv6npclfm31d78ljkrkgyqxxcni1w76d"))))
|
||||||
(build-system gnu-build-system)
|
(build-system gnu-build-system)
|
||||||
|
(outputs '("out"
|
||||||
|
"doc")) ;13 MiB of gtk-doc HTML
|
||||||
(native-inputs
|
(native-inputs
|
||||||
`(("pkg-config" ,pkg-config)))
|
`(("pkg-config" ,pkg-config)))
|
||||||
(inputs
|
(inputs
|
||||||
|
@ -1006,6 +1008,13 @@ extensive documentation, including API reference and a tutorial.")
|
||||||
(arguments
|
(arguments
|
||||||
`(#:tests? #f
|
`(#:tests? #f
|
||||||
#:phases (modify-phases %standard-phases
|
#:phases (modify-phases %standard-phases
|
||||||
|
(add-before 'configure 'set-gtk-doc-directory
|
||||||
|
(lambda* (#:key outputs #:allow-other-keys)
|
||||||
|
;; Install documentation to "doc".
|
||||||
|
(let ((doc (assoc-ref outputs "doc")))
|
||||||
|
(substitute* "docs/Makefile.in"
|
||||||
|
(("TARGET_DIR = \\$\\(datadir\\)")
|
||||||
|
(string-append "TARGET_DIR = " doc))))))
|
||||||
(add-after 'configure 'fix-codegen
|
(add-after 'configure 'fix-codegen
|
||||||
(lambda* (#:key inputs #:allow-other-keys)
|
(lambda* (#:key inputs #:allow-other-keys)
|
||||||
(substitute* "pygtk-codegen-2.0"
|
(substitute* "pygtk-codegen-2.0"
|
||||||
|
|
Loading…
Reference in New Issue