2013-02-06 00:01:44 +01:00
|
|
|
;;; GNU Guix --- Functional package management for GNU
|
|
|
|
;;; Copyright © 2013 Andreas Enge <andreas@enge.fr>
|
2014-07-11 17:58:56 +02:00
|
|
|
;;; Copyright © 2014 Eric Bavier <bavier@member.fsf.org>
|
2013-02-06 00:01:44 +01:00
|
|
|
;;;
|
|
|
|
;;; This file is part of GNU Guix.
|
|
|
|
;;;
|
|
|
|
;;; GNU Guix is free software; you can redistribute it and/or modify it
|
|
|
|
;;; under the terms of the GNU General Public License as published by
|
|
|
|
;;; the Free Software Foundation; either version 3 of the License, or (at
|
|
|
|
;;; your option) any later version.
|
|
|
|
;;;
|
|
|
|
;;; GNU Guix is distributed in the hope that it will be useful, but
|
|
|
|
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
;;; GNU General Public License for more details.
|
|
|
|
;;;
|
|
|
|
;;; You should have received a copy of the GNU General Public License
|
|
|
|
;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
|
|
|
(define-module (gnu packages texlive)
|
|
|
|
#:use-module ((guix licenses)
|
|
|
|
#:renamer (symbol-prefix-proc 'license:))
|
|
|
|
#:use-module (guix packages)
|
|
|
|
#:use-module (guix download)
|
|
|
|
#:use-module (guix build-system gnu)
|
|
|
|
#:use-module (gnu packages)
|
|
|
|
#:use-module (gnu packages compression)
|
2013-02-12 13:19:26 +01:00
|
|
|
#:use-module (gnu packages fontutils)
|
2013-08-07 15:57:14 +02:00
|
|
|
#:use-module (gnu packages gd)
|
2013-02-06 00:01:44 +01:00
|
|
|
#:use-module (gnu packages ghostscript)
|
2013-08-07 15:57:14 +02:00
|
|
|
#:use-module (gnu packages gtk)
|
2013-02-06 00:01:44 +01:00
|
|
|
#:use-module (gnu packages icu4c)
|
gnu: Consolidate libjpeg, libpng, and libtiff into one module.
* gnu/packages/image.scm: New file.
* gnu-system.am (GNU_SYSTEM_MODULES): Add image.scm and remove libjpeg.scm,
libpng.scm, and libtiff.scm.
* gnu/packages/libjpeg.scm, gnu/packages/libpng.scm, gnu/packages/libtiff.scm:
Delete files.
* gnu/packages/emacs.scm gnu/packages/games.scm, gnu/packages/gd.scm,
gnu/packages/geeqie.scm, gnu/packages/ghostscript.scm,
gnu/packages/gimp.scm, gnu/packages/gnome.scm, gnu/packages/gnunet.scm,
gnu/packages/gnustep.scm, gnu/packages/gnuzilla.scm,
gnu/packages/graphviz.scm, gnu/packages/gtk.scm,
gnu/packages/imagemagick.scm, gnu/packages/inkscape.scm,
gnu/packages/netpbm.scm, gnu/packages/pdf.scm, gnu/packages/plotutils.scm,
gnu/packages/qemu.scm, gnu/packages/qt.scm, gnu/packages/scheme.scm,
gnu/packages/sdl.scm, gnu/packages/slim.scm, gnu/packages/tcl.scm,
gnu/packages/texlive.scm, gnu/packages/video.scm, gnu/packages/xiph.scm,
gnu/packages/xorg.scm: Use (gnu packages image) module.
2014-06-25 14:39:02 +02:00
|
|
|
#:use-module (gnu packages image)
|
2013-02-06 00:01:44 +01:00
|
|
|
#:use-module (gnu packages pdf)
|
|
|
|
#:use-module (gnu packages perl)
|
|
|
|
#:use-module (gnu packages pkg-config)
|
2013-05-30 21:15:45 +02:00
|
|
|
#:use-module (gnu packages which)
|
2013-02-06 00:01:44 +01:00
|
|
|
#:use-module (gnu packages python)
|
2013-02-11 11:07:02 +01:00
|
|
|
#:use-module (gnu packages tcsh)
|
2013-03-17 00:57:02 +01:00
|
|
|
#:use-module (gnu packages xorg)
|
2013-05-30 21:15:45 +02:00
|
|
|
#:use-module (gnu packages zip)
|
|
|
|
#:autoload (gnu packages texinfo) (texinfo))
|
2013-02-06 00:01:44 +01:00
|
|
|
|
|
|
|
(define texlive-extra-src
|
|
|
|
(origin
|
|
|
|
(method url-fetch)
|
2014-07-11 17:58:56 +02:00
|
|
|
(uri "ftp://tug.org/historic/systems/texlive/2014/texlive-20140525-extra.tar.xz")
|
2013-02-06 00:01:44 +01:00
|
|
|
(sha256 (base32
|
2014-07-11 17:58:56 +02:00
|
|
|
"1zlnjysvxskcy05iva6jfklirwv12wqyn3ia119a7xnqlvhpqz33"))))
|
2013-02-06 00:01:44 +01:00
|
|
|
|
|
|
|
(define texlive-texmf-src
|
|
|
|
(origin
|
|
|
|
(method url-fetch)
|
2014-07-11 17:58:56 +02:00
|
|
|
(uri "ftp://tug.org/historic/systems/texlive/2014/texlive-20140525-texmf.tar.xz")
|
2013-02-06 00:01:44 +01:00
|
|
|
(sha256 (base32
|
2014-07-11 17:58:56 +02:00
|
|
|
"0qsr55ms1278dhmgixs5qqwd4fxhh369ihkki6wgh8xaqm8p48p0"))))
|
2013-02-06 00:01:44 +01:00
|
|
|
|
|
|
|
(define-public texlive
|
|
|
|
(package
|
|
|
|
(name "texlive")
|
2014-07-11 17:58:56 +02:00
|
|
|
(version "2014")
|
2013-02-06 00:01:44 +01:00
|
|
|
(source (origin
|
|
|
|
(method url-fetch)
|
2014-07-11 17:58:56 +02:00
|
|
|
(uri "ftp://tug.org/historic/systems/texlive/2014/texlive-20140525-source.tar.xz")
|
2013-02-06 00:01:44 +01:00
|
|
|
(sha256 (base32
|
2014-07-11 17:58:56 +02:00
|
|
|
"1glmaw2jv42grbsn05kay825j66scimjqqc32776bb1356q4xfq8"))))
|
2013-02-06 00:01:44 +01:00
|
|
|
(build-system gnu-build-system)
|
|
|
|
(inputs `(("texlive-extra-src" ,texlive-extra-src)
|
|
|
|
("texlive-texmf-src" ,texlive-texmf-src)
|
2013-08-07 15:57:14 +02:00
|
|
|
("cairo" ,cairo)
|
2013-02-06 00:01:44 +01:00
|
|
|
("fontconfig" ,fontconfig)
|
|
|
|
("freetype" ,freetype)
|
2013-08-07 15:57:14 +02:00
|
|
|
("gd" ,gd)
|
2013-02-06 00:01:44 +01:00
|
|
|
("icu4c" ,icu4c)
|
|
|
|
("ghostscript" ,ghostscript)
|
|
|
|
("libpng" ,libpng)
|
2013-03-17 00:57:02 +01:00
|
|
|
("libxaw" ,libxaw)
|
|
|
|
("libxt" ,libxt)
|
2013-08-07 15:57:14 +02:00
|
|
|
("pixman" ,pixman)
|
2013-02-06 00:01:44 +01:00
|
|
|
("poppler" ,poppler)
|
2013-02-11 11:07:02 +01:00
|
|
|
;; FIXME: Add interpreters fontforge and ruby,
|
2013-02-06 00:01:44 +01:00
|
|
|
;; once they are available.
|
|
|
|
("teckit" ,teckit)
|
|
|
|
("t1lib" ,t1lib)
|
|
|
|
("zlib" ,zlib)
|
|
|
|
("zziplib" ,zziplib)))
|
gnu: Move numerous "inputs" which should be "native-inputs".
* gnu/packages/avahi.scm, gnu/packages/cdrom.scm, gnu/packages/cryptsetup.scm,
gnu/packages/curl.scm, gnu/packages/emacs.scm, gnu/packages/fontutils.scm,
gnu/packages/gdb.scm, gnu/packages/geeqie.scm, gnu/packages/ghostscript.scm,
gnu/packages/glib.scm, gnu/packages/gnome.scm, gnu/packages/gnunet.scm,
gnu/packages/gnupg.scm, gnu/packages/gnuzilla.scm, gnu/packages/graphviz.scm,
gnu/packages/groff.scm, gnu/packages/gstreamer.scm, gnu/packages/gtk.scm,
gnu/packages/gv.scm, gnu/packages/imagemagick.scm, gnu/packages/irssi.scm,
gnu/packages/kde.scm, gnu/packages/libcanberra.scm, gnu/packages/libtiff.scm,
gnu/packages/linux.scm, gnu/packages/lvm.scm, gnu/packages/mp3.scm,
gnu/packages/netpbm.scm, gnu/packages/parted.scm, gnu/packages/pdf.scm,
gnu/packages/pulseaudio.scm, gnu/packages/qemu.scm, gnu/packages/qt.scm,
gnu/packages/ratpoison.scm, gnu/packages/rdf.scm, gnu/packages/slim.scm,
gnu/packages/texlive.scm, gnu/packages/version-control.scm,
gnu/packages/video.scm, gnu/packages/vpn.scm, gnu/packages/w3m.scm,
gnu/packages/xml.scm, gnu/packages/xnee.scm, gnu/packages/xorg.scm,
gnu/packages/zip.scm: Move some build-time dependencies from `inputs' to
`native-inputs'.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2013-12-15 12:01:56 +01:00
|
|
|
(native-inputs
|
|
|
|
`(("perl" ,perl)
|
|
|
|
("pkg-config" ,pkg-config)
|
|
|
|
("python" ,python-2) ; incompatible with Python 3 (print syntax)
|
|
|
|
("tcsh" ,tcsh)))
|
2013-02-06 00:01:44 +01:00
|
|
|
(outputs '("out" "data"))
|
|
|
|
(arguments
|
|
|
|
`(#:out-of-source? #t
|
|
|
|
#:configure-flags
|
|
|
|
`("--disable-native-texlive-build"
|
2013-08-07 15:57:14 +02:00
|
|
|
;; Although the texmf-dist data is taken from texlive-texmf,
|
|
|
|
;; setting datarootdir is still useful:
|
2013-02-06 00:01:44 +01:00
|
|
|
;; "make install" creates symbolic links to scripts in this place.
|
|
|
|
,(string-append "--datarootdir=" (assoc-ref %outputs "data"))
|
|
|
|
,(string-append "--infodir=" (assoc-ref %outputs "out") "/share/info")
|
|
|
|
,(string-append "--mandir=" (assoc-ref %outputs "out") "/share/man")
|
2013-08-07 15:57:14 +02:00
|
|
|
"--with-system-cairo"
|
2013-02-06 00:01:44 +01:00
|
|
|
"--with-system-freetype2"
|
2013-08-07 15:57:14 +02:00
|
|
|
"--with-system-gd"
|
|
|
|
;; "--with-system-graphite2" ; requires cmake build system
|
|
|
|
;; "--with-system-harfbuzz" ; requires --with-system-graphite2
|
2013-02-06 00:01:44 +01:00
|
|
|
"--with-system-icu"
|
|
|
|
"--with-system-libgs"
|
|
|
|
"--with-system-libpng"
|
2013-08-07 15:57:14 +02:00
|
|
|
"--with-system-pixman"
|
2013-02-06 00:01:44 +01:00
|
|
|
"--with-system-poppler"
|
|
|
|
"--with-system-t1lib"
|
|
|
|
"--with-system-teckit"
|
|
|
|
"--with-system-xpdf"
|
|
|
|
"--with-system-zlib"
|
|
|
|
"--with-system-zziplib")
|
2014-07-25 05:32:13 +02:00
|
|
|
|
|
|
|
;; Disable tests on mips64 to cope with a failure of luajiterr.test.
|
|
|
|
;; XXX FIXME fix luajit properly on mips64.
|
|
|
|
#:tests? ,(not (equal? "mips64el-linux" (or (%current-target-system)
|
|
|
|
(%current-system))))
|
2013-02-06 00:01:44 +01:00
|
|
|
#:phases
|
|
|
|
(alist-cons-after
|
|
|
|
'install 'postinst
|
|
|
|
(lambda* (#:key inputs outputs #:allow-other-keys #:rest args)
|
|
|
|
(let ((texlive-extra (assoc-ref inputs "texlive-extra-src"))
|
|
|
|
(texlive-texmf (assoc-ref inputs "texlive-texmf-src"))
|
|
|
|
(out (assoc-ref outputs "out"))
|
|
|
|
(data (assoc-ref outputs "data"))
|
|
|
|
(unpack (assoc-ref %standard-phases 'unpack))
|
|
|
|
(patch-source-shebangs
|
|
|
|
(assoc-ref %standard-phases 'patch-source-shebangs)))
|
|
|
|
;; Create symbolic links for the latex variants and their
|
|
|
|
;; man pages.
|
|
|
|
(with-directory-excursion (string-append out "/bin/")
|
|
|
|
(for-each symlink
|
|
|
|
'("pdftex" "pdftex" "xetex" "luatex")
|
|
|
|
'("latex" "pdflatex" "xelatex" "lualatex")))
|
|
|
|
(with-directory-excursion (string-append out "/share/man/man1/")
|
|
|
|
(symlink "luatex.1" "lualatex.1"))
|
2013-08-07 15:57:14 +02:00
|
|
|
;; Delete texmf-dist from "data", since it will be reinstalled
|
|
|
|
;; from texlive-texmf.
|
2013-02-06 00:01:44 +01:00
|
|
|
(system* "rm" "-r" (string-append data "/texmf-dist"))
|
|
|
|
;; Unpack texlive-extra and install tlpkg.
|
|
|
|
(mkdir "texlive-extra")
|
|
|
|
(with-directory-excursion "texlive-extra"
|
|
|
|
(apply unpack (list #:source texlive-extra))
|
|
|
|
(apply patch-source-shebangs (list #:source texlive-extra))
|
|
|
|
(system* "mv" "tlpkg" data)
|
|
|
|
(chdir ".."))
|
|
|
|
;; Unpack and install texlive-texmf.
|
|
|
|
(mkdir "texlive-texmf")
|
|
|
|
(with-directory-excursion "texlive-texmf"
|
|
|
|
(apply unpack (list #:source texlive-texmf))
|
|
|
|
(apply patch-source-shebangs (list #:source texlive-texmf))
|
|
|
|
;; Register "data" for kpathsea in texmf.cnf.
|
2013-08-07 15:57:14 +02:00
|
|
|
(substitute* "texmf-dist/web2c/texmf.cnf"
|
2013-02-06 00:01:44 +01:00
|
|
|
(("TEXMFROOT = \\$SELFAUTOPARENT")
|
|
|
|
(string-append "TEXMFROOT = " data)))
|
|
|
|
(system* "mv" "texmf-dist" data)
|
|
|
|
(chdir ".."))
|
|
|
|
;; texmf.cnf must also be placed in "out", since kpsewhich does
|
|
|
|
;; not know about "data" until it has found this file.
|
2013-08-07 15:57:14 +02:00
|
|
|
(mkdir (string-append out "/share/texmf-dist"))
|
|
|
|
(mkdir (string-append out "/share/texmf-dist/web2c"))
|
|
|
|
(copy-file (string-append data "/texmf-dist/web2c/texmf.cnf")
|
|
|
|
(string-append out "/share/texmf-dist/web2c/texmf.cnf"))))
|
2013-02-06 00:01:44 +01:00
|
|
|
(alist-cons-after 'patch-shebangs 'texconfig
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
(let ((out (assoc-ref outputs "out")))
|
|
|
|
;; Configure the texlive system; inspired from
|
|
|
|
;; http://slackbuilds.org/repository/13.37/office/texlive/
|
|
|
|
(setenv "PATH" (string-append (getenv "PATH") ":" out "/bin"))
|
|
|
|
(system* "updmap-sys" "--nohash" "--syncwithtrees")
|
|
|
|
(system* "mktexlsr")
|
|
|
|
(system* "fmtutil-sys" "--all")))
|
2014-07-11 17:58:56 +02:00
|
|
|
%standard-phases))))
|
2013-02-06 00:01:44 +01:00
|
|
|
(synopsis "Tex Live, a package of the TeX typesetting system")
|
|
|
|
(description
|
|
|
|
"TeX Live provides a comprehensive TeX document production system.
|
|
|
|
It includes all the major TeX-related programs, macro packages, and fonts
|
|
|
|
that are free software, including support for many languages around the
|
|
|
|
world.")
|
|
|
|
(license (license:fsf-free "http://tug.org/texlive/copying.html"))
|
|
|
|
(home-page "http://www.tug.org/texlive/")))
|
2013-05-30 21:15:45 +02:00
|
|
|
|
|
|
|
(define-public rubber
|
|
|
|
(package
|
|
|
|
(name "rubber")
|
|
|
|
(version "1.1")
|
|
|
|
(source (origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (list (string-append "https://launchpad.net/rubber/trunk/"
|
|
|
|
version "/+download/rubber-"
|
|
|
|
version ".tar.gz")
|
|
|
|
(string-append "http://ebeffara.free.fr/pub/rubber-"
|
|
|
|
version ".tar.gz")))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"1xbkv8ll889933gyi2a5hj7hhh216k04gn8fwz5lfv5iz8s34gbq"))))
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
(arguments '(#:tests? #f)) ; no `check' target
|
|
|
|
(inputs `(("texinfo" ,texinfo)
|
2013-09-04 19:06:51 +02:00
|
|
|
("python" ,python-2) ; incompatible with Python 3 (print syntax)
|
2013-05-30 21:15:45 +02:00
|
|
|
("which" ,which)))
|
|
|
|
(home-page "https://launchpad.net/rubber")
|
|
|
|
(synopsis "Rubber, a wrapper for LaTeX and friends")
|
|
|
|
(description
|
|
|
|
"Rubber is a program whose purpose is to handle all tasks related to the
|
|
|
|
compilation of LaTeX documents. This includes compiling the document itself,
|
|
|
|
of course, enough times so that all references are defined, and running BibTeX
|
|
|
|
to manage bibliographic references. Automatic execution of dvips to produce
|
|
|
|
PostScript documents is also included, as well as usage of pdfLaTeX to produce
|
|
|
|
PDF documents.")
|
|
|
|
(license license:gpl2+)))
|