gnu: texlive-latex-graphics: Simplify.

* gnu/packages/tex.scm (texlive-latex-graphics)[arguments]: Remove custom
phases.
[native-inputs]: Remove.
[propagated-inputs]: Add texlive-graphics-cfg and texlive-graphics-def.
[license]: Update.
This commit is contained in:
Ricardo Wurmus 2019-07-14 22:51:57 +02:00
parent 83a5c6171b
commit 152950d494
No known key found for this signature in database
GPG Key ID: 197A5888235FACAC
1 changed files with 5 additions and 51 deletions

View File

@ -2874,54 +2874,10 @@ set default \"driver\" options for the color and graphics packages.")
(base32
"0nlfhn55ax89rcvpkrl9570671b62kcr4c9l5ch3w5zw9vmi00dz"))))
(build-system texlive-build-system)
(arguments
'(#:tex-directory "latex/graphics"
#:phases
(modify-phases %standard-phases
(add-after 'install 'install-config
(lambda* (#:key inputs outputs #:allow-other-keys)
(let ((cfg (assoc-ref inputs "graphics-cfg"))
(target (string-append (assoc-ref outputs "out")
"/share/texmf-dist/tex/latex/graphics-cfg")))
(mkdir-p target)
(install-file (string-append cfg "/graphics.cfg") target)
(install-file (string-append cfg "/color.cfg") target)
#t)))
(add-after 'install 'install-defs
(lambda* (#:key inputs outputs #:allow-other-keys)
(let ((def (assoc-ref inputs "graphics-def"))
(target (string-append (assoc-ref outputs "out")
"/share/texmf-dist/tex/latex/graphics-def")))
(mkdir-p target)
(copy-recursively def target)
#t))))))
(native-inputs
`(("graphics-cfg"
,(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/latex3/graphics-cfg.git")
(commit "19d1238af17df376cd46333b229579b0f7f3a41f")))
(file-name (string-append "graphics-cfg-"
(number->string %texlive-revision)
"-checkout"))
(sha256
(base32
"12kbgbm52gmmgn8zajb74s8n5rvnxcfdvs3iyj8vcw5vrsw5i6mh"))))
("graphics-def"
,(origin
(method svn-fetch)
(uri (svn-reference
(url (string-append "svn://www.tug.org/texlive/tags/"
%texlive-tag "/Master/texmf-dist/"
"/tex/latex/graphics-def"))
(revision %texlive-revision)))
(file-name (string-append "graphics-def-"
(number->string %texlive-revision)
"-checkout"))
(sha256
(base32
"17zpcgrfsr29g1dkz9np1qi63kjv7gb12rg979c6dai6qksbr3vq"))))))
(arguments '(#:tex-directory "latex/graphics"))
(propagated-inputs
`(("texlive-graphics-cfg" ,texlive-graphics-cfg)
("texlive-graphics-def" ,texlive-graphics-def)))
(home-page "https://www.ctan.org/pkg/latex-graphics")
(synopsis "LaTeX standard graphics bundle")
(description
@ -2929,9 +2885,7 @@ set default \"driver\" options for the color and graphics packages.")
graphics (e.g. PostScript) files, and rotation and scaling of text in LaTeX
documents. It comprises the packages color, graphics, graphicx, trig, epsfig,
keyval, and lscape.")
;; The configuration files are released under CC0.
(license (list license:lppl1.3c+
license:cc0))))
(license license:lppl1.3c+)))
(define-public texlive-latex-xcolor
(package