From patchwork Thu Sep 3 17:36:55 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arun Isaac X-Patchwork-Id: 23881 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 E82B727BBE8; Thu, 3 Sep 2020 18:38:13 +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,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 B771827BBE7 for ; Thu, 3 Sep 2020 18:38:13 +0100 (BST) Received: from localhost ([::1]:48986 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kDtBc-0002tv-Pe for patchwork@mira.cbaines.net; Thu, 03 Sep 2020 13:38:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57932) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kDtBS-0002te-0T for guix-patches@gnu.org; Thu, 03 Sep 2020 13:38:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:52767) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kDtBR-000400-NS for guix-patches@gnu.org; Thu, 03 Sep 2020 13:38:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kDtBR-0005Xh-Jn for guix-patches@gnu.org; Thu, 03 Sep 2020 13:38:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#43185] [PATCH] gnu: emacs-auctex: Configure executable paths. References: <20200903172321.13373-1-arunisaac@systemreboot.net> In-Reply-To: <20200903172321.13373-1-arunisaac@systemreboot.net> Resent-From: Arun Isaac Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 03 Sep 2020 17:38:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 43185 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 43185@debbugs.gnu.org Cc: Arun Isaac Received: via spool by 43185-submit@debbugs.gnu.org id=B43185.159915462621243 (code B ref 43185); Thu, 03 Sep 2020 17:38:01 +0000 Received: (at 43185) by debbugs.gnu.org; 3 Sep 2020 17:37:06 +0000 Received: from localhost ([127.0.0.1]:36080 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kDtAY-0005WZ-2Q for submit@debbugs.gnu.org; Thu, 03 Sep 2020 13:37:06 -0400 Received: from mugam.systemreboot.net ([139.59.75.54]:56338) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kDtAU-0005W6-5w for 43185@debbugs.gnu.org; Thu, 03 Sep 2020 13:37:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=systemreboot.net; s=default; h=Content-Transfer-Encoding:MIME-Version: Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=9+mCkC/+cif+Wm8mC40o3FC+FQk6wBDfrtSmkvDdsKo=; b=ZmkElrepdNKSD69ZzFje37wpik J1ZCjZQy2k2inV2fH3GUsZ6Hzz8opfpABveWubI6OtkLNX5WepgSq19eJStbM567ntKyzmubs3pc1 jXY4sWvFfu6ikfhx7Dw4k5zIaxnSrqrDxwrt7/0+bdJD615DEhju9sIIxPkEfJE62OrVc8mX5IqPz svPzN7ucf3QUhFxJyanTKSUf6N2QdXLfJsxzTu2O9FYWcHD2Lcb8JdpriwfUHMmRGRQSyvrueDApU 3Y/iFdowLLmmQc6zvzWltZ/V12TtpNzVdSwKO3SHYGYzP2IGM+Z2UfMQTyx5CivImqhBnAHaZc1ix Kjuru+vQ==; Received: from [192.168.2.1] (helo=localhost.localdomain) by systemreboot.net with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94) (envelope-from ) id 1kDt9c-000Kgm-Kv; Thu, 03 Sep 2020 23:06:08 +0530 From: Arun Isaac Date: Thu, 3 Sep 2020 23:06:55 +0530 Message-Id: <20200903173655.14176-1-arunisaac@systemreboot.net> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 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/emacs-xyz.scm (emacs-auctex): Configure absolute paths to ghostscript and texlive executables. [inputs]: Add ghostscript. --- gnu/packages/emacs-xyz.scm | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm index 3482686ccd..e5d748b611 100644 --- a/gnu/packages/emacs-xyz.scm +++ b/gnu/packages/emacs-xyz.scm @@ -175,6 +175,7 @@ #:use-module (gnu packages xdisorg) #:use-module (gnu packages shells) #:use-module (gnu packages sqlite) + #:use-module (gnu packages ghostscript) #:use-module (gnu packages gnupg) #:use-module (gnu packages video) #:use-module (gnu packages haskell-xyz) @@ -1914,6 +1915,21 @@ as a library for other Emacs packages.") #:exclude '("^tests/" "^latex/README") #:phases (modify-phases %standard-phases + (add-after 'unpack 'configure + (lambda* (#:key inputs #:allow-other-keys) + (emacs-substitute-variables "preview.el" + ("preview-gs-command" + (string-append (assoc-ref inputs "ghostscript") "/bin/gs"))) + (substitute* "preview.el" + (("\"dvipng ") + (string-append "\"" (assoc-ref inputs "texlive") + "/bin/dvipng ")) + (("\"dvips ") + (string-append "\"" (assoc-ref inputs "texlive") + "/bin/dvips ")) + (("\"pdf2dsc ") + (string-append "\"" (assoc-ref inputs "ghostscript") + "/bin/pdf2dsc "))))) (add-after 'install 'install-doc (lambda* (#:key outputs #:allow-other-keys) (let* ((out (assoc-ref outputs "out")) @@ -1928,7 +1944,8 @@ as a library for other Emacs packages.") (native-inputs `(("perl" ,perl))) (inputs - `(("texlive" ,(texlive-union (list texlive-amsfonts))))) + `(("ghostscript" ,ghostscript) + ("texlive" ,(texlive-union (list texlive-amsfonts))))) (home-page "https://www.gnu.org/software/auctex/") (synopsis "Integrated environment for TeX") (description