[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/15: gnu: Add texlive-xcolor.
From: |
guix-commits |
Subject: |
02/15: gnu: Add texlive-xcolor. |
Date: |
Thu, 5 Sep 2019 16:26:24 -0400 (EDT) |
rekado pushed a commit to branch wip-texlive
in repository guix.
commit 5123db137c242e25a5b0bb43ea34d5a1785b24c9
Author: Ricardo Wurmus <address@hidden>
Date: Thu Sep 5 15:36:02 2019 +0200
gnu: Add texlive-xcolor.
* gnu/packages/tex.scm (texlive-latex-xcolor): Bind to deprecated package
pointing...
(texlive-color): ...to this variable; implement in terms of
simple-texlive-package.
[arguments]: Add phase "move-files" to install xcolor.pro to the expected
location.
---
gnu/packages/tex.scm | 51 +++++++++++++++++++++++++++++++++------------------
1 file changed, 33 insertions(+), 18 deletions(-)
diff --git a/gnu/packages/tex.scm b/gnu/packages/tex.scm
index fcd8242..518fe90 100644
--- a/gnu/packages/tex.scm
+++ b/gnu/packages/tex.scm
@@ -2874,30 +2874,45 @@ documents. It comprises the packages color, graphics,
graphicx, trig, epsfig,
keyval, and lscape.")
(license license:lppl1.3c+)))
-(define-public texlive-latex-xcolor
- (package
- (name "texlive-latex-xcolor")
- (version (number->string %texlive-revision))
- (source (origin
- (method svn-fetch)
- (uri (texlive-ref "latex" "xcolor"))
- (file-name (string-append name "-" version "-checkout"))
- (sha256
- (base32
- "01n613s7bcrd2n4jfawm0k4nn2ny3aaifp2jjfif3lz4sbv31494"))))
- (build-system texlive-build-system)
- (arguments '(#:tex-directory "latex/xcolor"))
- (home-page "https://www.ctan.org/pkg/xcolor")
- (synopsis "Driver-independent color extensions for LaTeX and pdfLaTeX")
- (description
- "The package starts from the basic facilities of the colorcolor package,
+(define-public texlive-xcolor
+ (let ((template (simple-texlive-package
+ "texlive-xcolor"
+ (list "/doc/latex/xcolor/"
+ "/source/latex/xcolor/")
+ (base32
+ "12q6spmpxg30alhvarjmxzigmz7lazapbrb0mc4vhbn6n1sdz7pp"))))
+ (package
+ (inherit template)
+ (arguments
+ (substitute-keyword-arguments (package-arguments template)
+ ((#:tex-directory _ #t)
+ "latex/xcolor")
+ ((#:phases phases)
+ `(modify-phases ,phases
+ (add-after 'unpack 'chdir
+ (lambda _ (chdir "source/latex/xcolor") #t))
+ (add-after 'install 'move-files
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let ((share (string-append (assoc-ref outputs "out")
+ "/share/texmf-dist")))
+ (mkdir-p (string-append share "/dvips/xcolor"))
+ (rename-file (string-append share
"/tex/latex/xcolor/xcolor.pro")
+ (string-append share
"/dvips/xcolor/xcolor.pro"))
+ #t)))))))
+ (home-page "https://www.ctan.org/pkg/xcolor")
+ (synopsis "Driver-independent color extensions for LaTeX and pdfLaTeX")
+ (description
+ "The package starts from the basic facilities of the colorcolor package,
and provides easy driver-independent access to several kinds of color tints,
shades, tones, and mixes of arbitrary colors. It allows a user to select a
document-wide target color model and offers complete tools for conversion
between eight color models. Additionally, there is a command for alternating
row colors plus repeated non-aligned material (like horizontal lines) in
tables.")
- (license license:lppl1.2+)))
+ (license license:lppl1.2+))))
+
+(define-public texlive-latex-xcolor
+ (deprecated-package "texlive-latex-xcolor" texlive-xcolor))
(define-public texlive-latex-hyperref
(package
- branch wip-texlive created (now 65a3324), guix-commits, 2019/09/05
- 03/15: gnu: texlive-fonts-iwona: Use double spacing in description., guix-commits, 2019/09/05
- 02/15: gnu: Add texlive-xcolor.,
guix-commits <=
- 05/15: gnu: texlive-union: Fix font map generation., guix-commits, 2019/09/05
- 09/15: gnu: Add texlive-iftex., guix-commits, 2019/09/05
- 12/15: gnu: Add texlive-standalone., guix-commits, 2019/09/05
- 04/15: gnu: vigra-c: Update to 0.0.0-1.66ff4fa., guix-commits, 2019/09/05
- 06/15: gnu: Add texlive-ydoc., guix-commits, 2019/09/05
- 08/15: gnu: Add texlive-pst-text., guix-commits, 2019/09/05
- 07/15: gnu: Add texlive-pstricks., guix-commits, 2019/09/05
- 01/15: gnu: texlive-latex-base: Ensure that extra sources are installed., guix-commits, 2019/09/05
- 10/15: gnu: Add texlive-tools., guix-commits, 2019/09/05
- 13/15: gnu: Add texlive-siunitx., guix-commits, 2019/09/05