mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-01 00:52:55 -05:00
gnu: impressive: Update to 0.13.1.
* gnu/packages/pdf.scm (impressive): Update to 0.13.1. [inputs]: Move below arguments field. Adjust to use Python 3 packages. [python]: Delete argument. [phases]: Use gexps. {install}: Use search-input-file and this-package-input. Make command executable.
This commit is contained in:
parent
312295d881
commit
48e18ab4aa
1 changed files with 26 additions and 29 deletions
|
@ -1052,7 +1052,7 @@ (define-public python2-reportlab
|
||||||
(define-public impressive
|
(define-public impressive
|
||||||
(package
|
(package
|
||||||
(name "impressive")
|
(name "impressive")
|
||||||
(version "0.12.1")
|
(version "0.13.1")
|
||||||
(source (origin
|
(source (origin
|
||||||
(method url-fetch)
|
(method url-fetch)
|
||||||
(uri (string-append
|
(uri (string-append
|
||||||
|
@ -1060,36 +1060,33 @@ (define-public impressive
|
||||||
version "/Impressive-" version ".tar.gz"))
|
version "/Impressive-" version ".tar.gz"))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"1r7ihv41awnlnlry1kymb8fka053wdhzibfwcarn78rr3vs338vl"))))
|
"0d1d2jxfl9vmy4swcdz660xd4wx91w1i3n07k522pccapwxig294"))))
|
||||||
(build-system python-build-system)
|
(build-system python-build-system)
|
||||||
|
|
||||||
;; TODO: Add dependency on pdftk.
|
|
||||||
(inputs (list python2-pygame python2-pillow sdl xpdf))
|
|
||||||
|
|
||||||
(arguments
|
(arguments
|
||||||
`(#:python ,python-2
|
(list
|
||||||
#:phases (modify-phases %standard-phases
|
#:phases
|
||||||
|
#~(modify-phases %standard-phases
|
||||||
(delete 'build)
|
(delete 'build)
|
||||||
(delete 'configure)
|
(delete 'configure)
|
||||||
(delete 'check)
|
(delete 'check)
|
||||||
(replace 'install
|
(replace 'install
|
||||||
(lambda* (#:key inputs outputs #:allow-other-keys)
|
(lambda* (#:key inputs #:allow-other-keys)
|
||||||
;; There's no 'setup.py' so install things manually.
|
;; There's no 'setup.py' so install things manually.
|
||||||
(let* ((out (assoc-ref outputs "out"))
|
(let* ((bin (string-append #$output "/bin"))
|
||||||
(bin (string-append out "/bin"))
|
(impressive (string-append bin "/impressive"))
|
||||||
(man1 (string-append out "/share/man/man1"))
|
(man1 (string-append #$output "/share/man/man1")))
|
||||||
(sdl (assoc-ref inputs "sdl"))
|
|
||||||
(xpdf (assoc-ref inputs "xpdf")))
|
|
||||||
(mkdir-p bin)
|
(mkdir-p bin)
|
||||||
(copy-file "impressive.py"
|
(copy-file "impressive.py" impressive)
|
||||||
(string-append bin "/impressive"))
|
(chmod impressive #o755)
|
||||||
(wrap-program (string-append bin "/impressive")
|
(wrap-program (string-append bin "/impressive")
|
||||||
`("LIBRARY_PATH" ":" prefix ;for ctypes
|
`("LIBRARY_PATH" ":" prefix ;for ctypes
|
||||||
(,(string-append sdl "/lib")))
|
(,(string-append #$(this-package-input "sdl")
|
||||||
|
"/lib")))
|
||||||
`("PATH" ":" prefix ;for pdftoppm
|
`("PATH" ":" prefix ;for pdftoppm
|
||||||
(,(string-append xpdf "/bin"))))
|
(,(search-input-file inputs "bin/xpdf"))))
|
||||||
(install-file "impressive.1" man1)
|
(install-file "impressive.1" man1)))))))
|
||||||
#t))))))
|
;; TODO: Add dependency on pdftk.
|
||||||
|
(inputs (list python-pygame python-pillow sdl xpdf))
|
||||||
(home-page "http://impressive.sourceforge.net")
|
(home-page "http://impressive.sourceforge.net")
|
||||||
(synopsis "PDF presentation tool with visual effects")
|
(synopsis "PDF presentation tool with visual effects")
|
||||||
(description
|
(description
|
||||||
|
|
Loading…
Reference in a new issue