From patchwork Sat May 15 14:42:29 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leo Prikler X-Patchwork-Id: 29325 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 96D2A27BC81; Sat, 15 May 2021 15:45:45 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS, T_DKIM_INVALID,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 5CE6D27BC78 for ; Sat, 15 May 2021 15:45:45 +0100 (BST) Received: from localhost ([::1]:33072 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lhvY0-0008GF-Ky for patchwork@mira.cbaines.net; Sat, 15 May 2021 10:45:44 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50596) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lhvVO-0006Om-WB for guix-patches@gnu.org; Sat, 15 May 2021 10:43:08 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:37508) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lhvVO-0004eb-KV for guix-patches@gnu.org; Sat, 15 May 2021 10:43:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lhvVO-0002ZW-FA for guix-patches@gnu.org; Sat, 15 May 2021 10:43:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#48443] [PATCH 1/2] gnu: Add texlive-libkpathsea. References: In-Reply-To: Resent-From: Leo Prikler Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 15 May 2021 14:43:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 48443 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 48443@debbugs.gnu.org Received: via spool by 48443-submit@debbugs.gnu.org id=B48443.16210897789870 (code B ref 48443); Sat, 15 May 2021 14:43:02 +0000 Received: (at 48443) by debbugs.gnu.org; 15 May 2021 14:42:58 +0000 Received: from localhost ([127.0.0.1]:49052 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lhvVJ-0002Z7-Ug for submit@debbugs.gnu.org; Sat, 15 May 2021 10:42:58 -0400 Received: from mailrelay.tugraz.at ([129.27.2.202]:11551) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lhvVH-0002Ys-NU for 48443@debbugs.gnu.org; Sat, 15 May 2021 10:42:56 -0400 Received: from localhost.localdomain (91-114-247-246.adsl.highway.telekom.at [91.114.247.246]) by mailrelay.tugraz.at (Postfix) with ESMTPSA id 4Fj7RJ2psgz1DH8w for <48443@debbugs.gnu.org>; Sat, 15 May 2021 16:42:52 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 mailrelay.tugraz.at 4Fj7RJ2psgz1DH8w DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tugraz.at; s=mailrelay; t=1621089772; bh=u4oV2sSmQuRfHbdaWFLoFGh/UtJSP4sD3QfQM4WvDVQ=; h=From:To:Subject:Date:From; b=BJFoZ+OKClT5RRpRug1S4n9IvViYdqqCBK3OdBIRdNTJGNPTyFGget8IOFrg5ZLD8 PQQF6eNOakQtJUA4usHAWe/F7svEd4Do7xlsrWGQa3oN0TBvvTwC/6patEX0ftXv4D Yx0sIQaBVlG0JblIE1AKr7cGtp72E3mgGGhPoQLM= From: Leo Prikler Date: Sat, 15 May 2021 16:42:29 +0200 Message-Id: <20210515144230.22035-1-leo.prikler@student.tugraz.at> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 X-TUG-Backscatter-control: bt4lQm5Tva3SBgCuw0EnZw X-Scanned-By: MIMEDefang 2.74 on 129.27.10.117 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/tex.scm (texlive-libkpathsea): New variable. --- gnu/packages/tex.scm | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/gnu/packages/tex.scm b/gnu/packages/tex.scm index b9eeb0e792..3e8384eaad 100644 --- a/gnu/packages/tex.scm +++ b/gnu/packages/tex.scm @@ -457,6 +457,38 @@ This package contains the binaries.") (license (license:fsf-free "https://www.tug.org/texlive/copying.html")) (home-page "https://www.tug.org/texlive/"))) +(define-public texlive-libkpathsea + (package/inherit texlive-bin + (name "texlive-libkpathsea") + (source + (origin + (inherit (package-source texlive-bin)) + (snippet + `(begin + ,(origin-snippet (package-source texlive-bin)) + (with-directory-excursion "texk" + (let ((preserved-directories '("." ".." "kpathsea"))) + (for-each + delete-file-recursively + (scandir "." + (lambda (file) + (and (not (member file preserved-directories)) + (eq? 'directory (stat:type (stat file))))))))))))) + (arguments + (substitute-keyword-arguments (package-arguments texlive-bin) + ((#:configure-flags flags) + `(cons* "--disable-all-pkgs" "--enable-kpathsea" + "--enable-shared" ,flags)) + ((#:phases phases) + `(modify-phases ,phases + (delete 'configure-ghostscript-executable) + (delete 'use-code-for-new-poppler) + (delete 'patch-dvisvgm-build-files) + (delete 'disable-failing-test) + (replace 'postint + (lambda* (#:key inputs outputs #:allow-other-keys) + (with-directory-excursion "texk/kpathsea" + (invoke "make" "install")))))))))) (define texlive-docstrip (package