From mboxrd@z Thu Jan 1 00:00:00 1970 From: Roel Janssen Subject: [PATCH] gnu: Add emacs-ess. Date: Tue, 05 Jul 2016 14:56:33 +0200 Message-ID: <87h9c45jlq.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42293) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bKPtr-0001Bu-FM for guix-devel@gnu.org; Tue, 05 Jul 2016 08:56:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bKPtm-0006FO-FK for guix-devel@gnu.org; Tue, 05 Jul 2016 08:56:26 -0400 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:44442) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bKPtm-0006Eq-CR for guix-devel@gnu.org; Tue, 05 Jul 2016 08:56:22 -0400 Received: from [143.121.198.69] (port=35312 helo=roel-tp) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1bKPtj-0007Px-VI for guix-devel@gnu.org; Tue, 05 Jul 2016 08:56:20 -0400 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 Dear Guix, I have a question about the following patch to add emacs-ess. By default, the build files rely upon a LaTeX distribution to be installed to generate a PDF from its Texinfo documentation. I know that texlive is quite a heavy package, so should I separate the output of this package in "out" and "doc", and substitute/patch the involved Makefiles? You can find the patch below. Kind regards, Roel Janssen >From 0beacae7c386ea032cfac4511f4a9bc313fb1fb9 Mon Sep 17 00:00:00 2001 From: Roel Janssen Date: Tue, 5 Jul 2016 14:53:03 +0200 Subject: [PATCH] gnu: Add emacs-ess. * gnu/packages/emacs.scm (emacs-ess): New variable. --- gnu/packages/emacs.scm | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/gnu/packages/emacs.scm b/gnu/packages/emacs.scm index db88df1..3cc5875 100644 --- a/gnu/packages/emacs.scm +++ b/gnu/packages/emacs.scm @@ -42,11 +42,13 @@ #:use-module (guix build-system glib-or-gtk) #:use-module (guix build-system trivial) #:use-module (gnu packages) + #:use-module (gnu packages bash) #:use-module (gnu packages guile) #:use-module (gnu packages gtk) #:use-module (gnu packages gnome) #:use-module (gnu packages ncurses) #:use-module (gnu packages texinfo) + #:use-module (gnu packages tex) #:use-module (gnu packages tls) #:use-module (gnu packages pkg-config) #:use-module (gnu packages xorg) @@ -67,6 +69,7 @@ #:use-module (gnu packages perl) #:use-module (gnu packages pdf) #:use-module (gnu packages scheme) + #:use-module (gnu packages statistics) #:use-module (gnu packages xiph) #:use-module (gnu packages mp3) #:use-module (guix utils) @@ -2475,3 +2478,45 @@ news items, openrc and runscripts.") in English as you type. It primarily detects \"weasel words\" and abuse of passive voice.") (license license:gpl3+))) + +(define-public emacs-ess + (package + (name "emacs-ess") + (version "16.04") + (source (origin + (method url-fetch) + (uri (string-append "http://ess.r-project.org/downloads/ess/ess-" + version ".tgz")) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "0w7mbbajn377gdmvnd21mpyr368b2ia46gq6cb99y4y5rspf9pcg")))) + (build-system gnu-build-system) + (arguments + `(#:tests? #f ; There is no test suite. + #:phases + (modify-phases %standard-phases + (delete 'configure) + (add-before 'build 'more-shebang-patching + (lambda* (#:key inputs #:allow-other-keys) + (substitute* "Makeconf" + (("SHELL = /bin/sh") + (string-append "SHELL = " (assoc-ref inputs "bash") + "/bin/sh"))))) + (replace 'install + (lambda* (#:key outputs #:allow-other-keys) + (system* "make" "install" + (string-append "PREFIX=" (assoc-ref outputs "out")))))))) + (inputs + `(("emacs" ,emacs) + ("r" ,r) + ("bash" ,bash) + ("texinfo" ,texinfo) + ("texlive" ,texlive))) + (home-page "http://ess.r-project.org/") + (synopsis "Emacs mode for statistical analysis programs") + (description "Emacs Speaks Statistics (ESS) is an add-on package for GNU +Emacs. It is designed to support editing of scripts and interaction with +various statistical analysis programs such as R, S-Plus, SAS, Stata and +OpenBUGS/JAGS.") + (license license:gpl2+))) -- 2.9.0