From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52644) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e2sbn-0007P1-NY for guix-patches@gnu.org; Fri, 13 Oct 2017 01:34:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e2sbi-00035y-Rc for guix-patches@gnu.org; Fri, 13 Oct 2017 01:34:07 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:56155) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e2sbi-00035p-PC for guix-patches@gnu.org; Fri, 13 Oct 2017 01:34:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1e2sbi-0004a0-Jy for guix-patches@gnu.org; Fri, 13 Oct 2017 01:34:02 -0400 Subject: [bug#28804] [PATCH] gnu: Add emacs-graphviz-dot-mode. Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52563) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e2sbW-0007Nb-8Y for guix-patches@gnu.org; Fri, 13 Oct 2017 01:33:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e2sbR-0002xt-Gs for guix-patches@gnu.org; Fri, 13 Oct 2017 01:33:50 -0400 Received: from mira.cbaines.net ([2a01:7e00::f03c:91ff:fe69:8da9]:41051) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e2sbR-0002xc-Ac for guix-patches@gnu.org; Fri, 13 Oct 2017 01:33:45 -0400 Received: from localhost (cpc102582-walt20-2-0-cust14.13-2.cable.virginm.net [86.27.34.15]) by mira.cbaines.net (Postfix) with ESMTPSA id 5A6AB154C76 for ; Fri, 13 Oct 2017 06:33:43 +0100 (BST) Received: from localhost.localdomain (localhost [127.0.0.1]) by localhost (OpenSMTPD) with ESMTP id d17ca619 for ; Fri, 13 Oct 2017 05:33:43 +0000 (UTC) From: Christopher Baines Date: Fri, 13 Oct 2017 06:33:42 +0100 Message-Id: <20171013053342.31024-1-mail@cbaines.net> 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: 28804@debbugs.gnu.org * gnu/packages/emacs.scm (graphviz-dot-mode): New variable. --- gnu/packages/emacs.scm | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) diff --git a/gnu/packages/emacs.scm b/gnu/packages/emacs.scm index b29436154..d3f87fdc4 100644 --- a/gnu/packages/emacs.scm +++ b/gnu/packages/emacs.scm @@ -1245,6 +1245,55 @@ written in the Go programming language.") Maps directly inside Emacs.") (license license:gpl3+))) +(define-public emacs-graphviz-dot-mode + (let ((commit "fdaabbcc95d9156e3dadc84f81a4750c5b692580") + (revision "1")) + (package + (name "emacs-graphviz-dot-mode") + (version (string-append "0.3.10-" revision "." + (string-take commit 7))) + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/ppareit/graphviz-dot-mode.git") + (commit commit))) + (file-name (string-append name "-" version "-checkout")) + (sha256 + (base32 + "1s1qh5r0xp6hs0rl5yz5mkmjhpg04bh449c7vgjbb1pjsl1dl714")))) + (build-system emacs-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-before 'install 'make-info + (lambda* (#:key inputs #:allow-other-keys) + (with-directory-excursion "texinfo" + (substitute* "Makefile" + (("\\/usr\\/bin\\/gzip") + (string-append (assoc-ref inputs "gzip") "/bin/gzip"))) + (zero? + (system* "make" + "clean" + "info" + (string-append "TEXINFODIR=" + (assoc-ref inputs "texinfo") + "/bin")))))) + (add-after 'install 'install-info + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (info (string-append out "/share/info"))) + (install-file "texinfo/graphviz-dot-mode.info.gz" info) + #t)))))) + (native-inputs + `(("texinfo" ,texinfo) + ("gzip" ,gzip))) + (home-page "http://ppareit.github.com/graphviz-dot-mode") + (synopsis "Major mode for editing Graphviz Dot files") + (description + "This Emacs packages helps you to create .dot or .gv files using the +dot syntax, and use Graphviz to convert these files to diagrams.") + (license license:gpl3+)))) + (define-public emacs-mmm-mode (package (name "emacs-mmm-mode") -- 2.14.2