From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: [PATCH] gnu: asymptote: Install Emacs data Date: Sat, 07 May 2016 01:48:01 +0200 Message-ID: <87inyqbvf2.fsf@saiph.selenimh> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46017) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aypTw-0001yP-Ay for guix-devel@gnu.org; Fri, 06 May 2016 19:48:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aypTk-0000dI-KJ for guix-devel@gnu.org; Fri, 06 May 2016 19:48:22 -0400 Received: from relay3-d.mail.gandi.net ([217.70.183.195]:51184) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aypTk-0000bl-DN for guix-devel@gnu.org; Fri, 06 May 2016 19:48:16 -0400 Received: from saiph.selenimh (unknown [IPv6:2a03:a0a0:0:4301::b3c]) (Authenticated sender: mail@nicolasgoaziou.fr) by relay3-d.mail.gandi.net (Postfix) with ESMTPSA id 1E401A80C0 for ; Sat, 7 May 2016 01:48:06 +0200 (CEST) List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org --=-=-= Content-Type: text/plain Hello, The following patch installs Emacs libraries provided by Asymptote in a location where they can be found. Thank you for considering it for inclusion. Regards, -- Nicolas Goaziou 0x80A93738 --=-=-= Content-Type: text/x-diff Content-Disposition: attachment; filename=0001-gnu-asymptote-Install-Emacs-data.patch Content-Description: install Emacs data with asymptote >From 5ebefd0edc14c4b0dc0db6dec200cc117c625848 Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Wed, 4 May 2016 00:43:36 +0200 Subject: [PATCH] gnu: asymptote: Install Emacs data * gnu/packages/plotutils.scm (asymptote)[arguments]: Add a phase to install Emacs-Lisp files in an appropriate place. --- gnu/packages/plotutils.scm | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/gnu/packages/plotutils.scm b/gnu/packages/plotutils.scm index 3fdd539..027fdc1 100644 --- a/gnu/packages/plotutils.scm +++ b/gnu/packages/plotutils.scm @@ -198,7 +198,10 @@ colors, styles, options and details.") ("readline" ,readline) ("zlib" ,zlib))) (arguments - `(#:configure-flags + `(#:modules ((guix build gnu-build-system) + (guix build utils) + (srfi srfi-26)) + #:configure-flags (list (string-append "--enable-gc=" (assoc-ref %build-inputs "libgc")) (string-append "--with-latex=" (assoc-ref %outputs "out") @@ -210,7 +213,7 @@ colors, styles, options and details.") (modify-phases %standard-phases (add-before 'build 'patch-pdf-viewer (lambda _ - ;; Default to a free pdf viewer + ;; Default to a free pdf viewer. (substitute* "settings.cc" (("defaultPDFViewer=\"acroread\"") "defaultPDFViewer=\"gv\"")))) @@ -218,7 +221,14 @@ colors, styles, options and details.") ;; Some tests require write access to $HOME, otherwise leading to ;; "failed to create directory /homeless-shelter/.asy" error. (lambda _ - (setenv "HOME" "/tmp")))))) + (setenv "HOME" "/tmp"))) + (add-after 'install 'install-emacs-data + (lambda* (#:key outputs #:allow-other-keys) + ;; Install related Emacs libraries in an appropriate location. + (for-each (cute install-file <> + (string-append (assoc-ref outputs "out") + "/share/emacs/site-lisp")) + (find-files "." "\\.el$"))))))) (home-page "http://asymptote.sourceforge.net") (synopsis "Script-based vector graphics language") (description -- 2.7.4 --=-=-=--