From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49375) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fpV9S-0004uS-Md for guix-patches@gnu.org; Tue, 14 Aug 2018 04:58:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fpV9O-00061c-PW for guix-patches@gnu.org; Tue, 14 Aug 2018 04:58:06 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:45092) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fpV9O-00061R-L7 for guix-patches@gnu.org; Tue, 14 Aug 2018 04:58:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fpV9O-00020m-Dg for guix-patches@gnu.org; Tue, 14 Aug 2018 04:58:02 -0400 Subject: [bug#32435] [PATCH 2/2] gnu: Add texlive-latex-ocgx2. References: <20180814085405.6925-1-ambrevar@gmail.com> In-Reply-To: <20180814085405.6925-1-ambrevar@gmail.com> Resent-Message-ID: From: Pierre Neidhardt Date: Tue, 14 Aug 2018 10:57:21 +0200 Message-Id: <20180814085721.9087-1-ambrevar@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 32435@debbugs.gnu.org * gnu/packages/tex.scm (texlive-latex-ocgx2): New variable. --- gnu/packages/tex.scm | 45 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/gnu/packages/tex.scm b/gnu/packages/tex.scm index 555971b9e..a500e5fa0 100644 --- a/gnu/packages/tex.scm +++ b/gnu/packages/tex.scm @@ -4426,3 +4426,48 @@ supports the efficient H.264 codec for video compression. The package is based on the RichMedia Annotation, an Adobe addition to the PDF specification. It replaces the now obsolete @code{movie15} package.") (license license:lppl))) + +(define-public texlive-latex-ocgx2 + (package + (name "texlive-latex-ocgx2") + (version (number->string %texlive-revision)) + (source (origin + (method svn-fetch) + (uri (svn-reference + (url (string-append "svn://www.tug.org/texlive/tags/" + %texlive-tag "/Master/texmf-dist/" + "/tex/latex/ocgx2")) + (revision %texlive-revision))) + (file-name (string-append name "-" version "-checkout")) + (sha256 + (base32 + "12kkl7n534j0p4frwyrlw22dc3ik50kxv97cxp4xpmji13m0hxpf")))) + (build-system trivial-build-system) + (arguments + `(#:modules ((guix build utils)) + #:builder + (begin + (use-modules (guix build utils)) + (let ((target (string-append (assoc-ref %outputs "out") + "/share/texmf-dist/tex/latex/ogcx2"))) + (mkdir-p target) + (copy-recursively (assoc-ref %build-inputs "source") target) + #t)))) + (home-page "https://www.ctan.org/pkg/ocgx2") + (synopsis "Provide OCG (Optional Content Groups) support within a PDF document") + (description + "This package provides OCG (Optional Content Groups) support within a PDF +document. + +It re-implements the functionality of the @code{ocg}, @code{ocgx}, and +@code{ocg-p} packages and adds support for all known engines and back-ends +including: + +@itemize +@item LaTeX → dvips → @code{ps2pdf}/Distiller +@item (Xe)LaTeX(x) → @code{dvipdfmx} +@item pdfLaTeX and LuaLaTeX . +@end itemize + +It also ensures compatibility with the @code{media9} and @code{animate} packages.") + (license license:lppl))) -- 2.18.0