From patchwork Tue Jan 2 01:58:27 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Cournoyer X-Patchwork-Id: 58303 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 5977C27BBE2; Tue, 2 Jan 2024 02:03:15 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI, SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 089C127BBE9 for ; Tue, 2 Jan 2024 02:03:13 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rKU52-0000L1-6D; Mon, 01 Jan 2024 21:00:35 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rKU4b-00085t-3a for guix-patches@gnu.org; Mon, 01 Jan 2024 21:00:08 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rKU4Z-0007Lv-7Y for guix-patches@gnu.org; Mon, 01 Jan 2024 21:00:04 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rKU4b-0008Uq-9g; Mon, 01 Jan 2024 21:00:05 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#68180] [PATCH v2 4/4] gnu: Add emacs-pde. Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: andrew@trop.in, cox.katherine.e+guix@gmail.com, liliana.prikler@gmail.com, guix-patches@gnu.org Resent-Date: Tue, 02 Jan 2024 02:00:05 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68180 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 68180@debbugs.gnu.org Cc: Maxim Cournoyer , Andrew Tropin , Katherine Cox-Buday , Liliana Marie Prikler X-Debbugs-Original-Xcc: Andrew Tropin , Katherine Cox-Buday , Liliana Marie Prikler Received: via spool by 68180-submit@debbugs.gnu.org id=B68180.170416077432277 (code B ref 68180); Tue, 02 Jan 2024 02:00:05 +0000 Received: (at 68180) by debbugs.gnu.org; 2 Jan 2024 01:59:34 +0000 Received: from localhost ([127.0.0.1]:49088 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rKU45-0008OR-NA for submit@debbugs.gnu.org; Mon, 01 Jan 2024 20:59:34 -0500 Received: from mail-qv1-xf2f.google.com ([2607:f8b0:4864:20::f2f]:54535) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rKU3x-0008Nd-Kp for 68180@debbugs.gnu.org; Mon, 01 Jan 2024 20:59:26 -0500 Received: by mail-qv1-xf2f.google.com with SMTP id 6a1803df08f44-680a06cc763so22002426d6.1 for <68180@debbugs.gnu.org>; Mon, 01 Jan 2024 17:59:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1704160757; x=1704765557; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Z/hn3ZjfA0I6UwvF4rW6x2v0aflAuULgQ2i35QfKJ54=; b=jrBUaR2LRXThfSJ4cfZvzBDtKR1JgIr0viBd3ZBO6zLSW659u2+L6ao7xZq8Ggioqz GZurl5HPlRUfRNk3Ww9LtTvz6e2IfKcCGiX0ajXglC87KaXqpm1jZZoYj5kFlazBujBH CunXd+JfNw6GkmfPdsMH8mzzYzzWN3yEHnPqY8KXT/zeYSYKBqf233ZRwof7YyONdCFD dpvsLcZqOYUVozVk9mb55xJvyIAxl8arWACkLDBNC9c7DNHSGpe9EarQG5sCL312GJu7 laGsxPYr2BXkpPa7d1S/GAEqP1vaTbUvKW/u4g5srNpoaFpUpNUHkR17e8oK55xG0v7w 5H1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704160757; x=1704765557; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Z/hn3ZjfA0I6UwvF4rW6x2v0aflAuULgQ2i35QfKJ54=; b=nGb6Z0Tx0GBwNy+OXYzDTSBGdpbN/iOKWBMjJUEsqGxPEF6BnB7WXoj7k3NN1txaIi fOBIeQxFkRFTznjj2WeeXCVqSOLqlb93FlUME5zHPYRyCbrTA0awo6mtSPUtVBy9m0hU /o+zdVccf6h1IXXRhj3ClxJW5vfIGlwyOMCjDBkXmIZFHTyhOMwOXzAPXiZjr7X+Ytnq pgJ1M5GJO4JXEZrDAA183auIg51wnU2MQ+rlhzqQdN3PgZFH+qn4LKFlAggdU+MNsT3B YWyxF+ts4vnBcrtlSZEsv97h6thPv+vKwpmbwMaga+nYNs+evVvYnIxdA+3O0y/L6tVq Q07w== X-Gm-Message-State: AOJu0Yxul0Y2U1VPdBGcvE9XjGbbD5T2PoLGPl1j1v2amFs/1KOaAvd7 uVTte6EN+DZMcYohvlAfsHMokNa3Bl8= X-Google-Smtp-Source: AGHT+IHciv/QvKQvezJvnW/4gfzMg3MrTNOzaXOIYNkOOVPAD1lvCzxdWE+bjRTcbCvaiutDu3Vnyg== X-Received: by 2002:a05:6214:20ad:b0:67a:a721:d779 with SMTP id 13-20020a05621420ad00b0067aa721d779mr23700045qvd.95.1704160757643; Mon, 01 Jan 2024 17:59:17 -0800 (PST) Received: from localhost.localdomain (dsl-10-141-187.b2b2c.ca. [72.10.141.187]) by smtp.gmail.com with ESMTPSA id ec17-20020ad44e71000000b0067f90426698sm9082956qvb.23.2024.01.01.17.59.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Jan 2024 17:59:17 -0800 (PST) From: Maxim Cournoyer Date: Mon, 1 Jan 2024 20:58:27 -0500 Message-ID: <76e5781ad616a52b5590b1dd1c37fccf328cb04b.1704160707.git.maxim.cournoyer@gmail.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: References: 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-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/emacs-xyz.scm (emacs-pde): New variable. Change-Id: Icab5d8acf9d441bb4a832a82e75432d64cc77ba7 --- (no changes since v1) gnu/packages/emacs-xyz.scm | 86 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 86 insertions(+) diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm index a8ac238f58..fe46342adf 100644 --- a/gnu/packages/emacs-xyz.scm +++ b/gnu/packages/emacs-xyz.scm @@ -167,6 +167,7 @@ (define-module (gnu packages emacs-xyz) #:use-module (guix build-system cmake) #:use-module (guix build-system copy) #:use-module (guix build-system emacs) + #:use-module (guix build-system perl) #:use-module (guix build-system trivial) #:use-module (gnu packages) #:use-module (gnu packages admin) @@ -271,6 +272,7 @@ (define-module (gnu packages emacs-xyz) #:use-module (gnu packages erlang) #:use-module (gnu packages statistics) #:use-module (gnu packages libcanberra) + #:use-module (gnu packages texinfo) #:use-module (gnu packages virtualization) #:use-module (gnu packages web-browsers) #:use-module (gnu packages wget) @@ -12271,6 +12273,90 @@ (define-public emacs-hl-todo regexp that matches all known keywords.") (license license:gpl3+))) +(define-public emacs-pde + (package + (name "emacs-pde") + (version "0.2.17") + (source + (origin + (method url-fetch) + (uri (string-append "mirror://cpan/authors/id/Y/YE/YEWENBIN/Emacs-PDE-v" + version ".tar.gz")) + (modules '((guix build utils))) + (snippet '(begin + ;; Delete pre-generated Texinfo and HTML documentation. + (for-each delete-file '("lisp/doc/pde.info" + "lisp/doc/pde.html")) + (delete-file-recursively "lisp/doc/pde"))) + (sha256 + (base32 "1i82isha839c8lx73kgp43v7gxr2adsr1yfw1glyxvi62w5ab9qz")))) + (build-system perl-build-system) + (arguments + (list + #:imported-modules `(,@%emacs-build-system-modules + ,@%perl-build-system-modules) + #:modules '((guix build perl-build-system) + (guix build emacs-utils) + (guix build utils)) + #:module-build-flags + #~(list (string-append "--elispdir=" #$output + "/share/emacs/site-lisp/pde") + "--verbose") + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'patch-commands + (lambda* (#:key inputs #:allow-other-keys) + (make-file-writable "lisp/pde-vars.el") + (emacs-substitute-variables "lisp/pde-vars.el" + ("pde-perl-program" + (search-input-file inputs "bin/perl")) + ("pde-perl-version" + #$(package-version (this-package-input "perl"))) + ("pde-perldoc-program" + (search-input-file inputs "bin/perldoc")) + ("pde-find-program" + (search-input-file inputs "bin/find"))) + (make-file-writable "lisp/perlcritic.el") + (emacs-substitute-variables "lisp/perlcritic.el" + ("perlcritic-program" + (search-input-file inputs "bin/perlcritic"))) + (make-file-writable "lisp/perldoc.el") + (emacs-substitute-variables "lisp/perldoc.el" + ("perldoc-cache-el" + "(expand-file-name \"~/.cache/perldoc-cache.el\"") + ("perldoc-pod2man" + (search-input-file inputs "bin/pod2man"))) + (make-file-writable "lisp/perltidy.el") + (emacs-substitute-variables "lisp/perltidy.el" + ("perltidy-program" + (search-input-file inputs "bin/perltidy"))) + (substitute* "lisp/tools/perldoc-cache.pl" + (("`perldoc") + (string-append + "`" (search-input-file inputs "bin/perldoc")))))) + (add-after 'build 'generate-doc + (lambda _ + (invoke "./Build" "info"))) + (add-after 'install 'move-doc + (lambda _ + (let ((info (string-append #$output "/share/info/pde.info"))) + (mkdir-p (dirname info)) + (rename-file (string-append + #$output + "/share/emacs/site-lisp/pde/doc/pde.info") + info))))))) + (native-inputs (list emacs-minimal perl-module-build texinfo)) + (inputs (list findutils perl perl-critic)) + (home-page "https://metacpan.org/release/Emacs-PDE") + (synopsis "Perl Development Environment for Emacs") + (description "Emacs::PDE is a collection of Emacs Lisp extensions to +facilitate Perl programming. CPerl Mode has provided an excellent environment +for coding; Emacs::PDE provides other common tools such as creating files +using templates, smart compiling, @command{perldoc}, @command{perltidy}, +debugger, tags tree view and so on. PDE also provides an easy configuration +for Perl programing, and a tutorial for novices to start using Emacs.") + (license license:perl-license))) + (define-public emacs-perspective (package (name "emacs-perspective")