From: Maxim Cournoyer <maxim.cournoyer@gmail.com>
To: 68180@debbugs.gnu.org
Cc: Maxim Cournoyer <maxim.cournoyer@gmail.com>,
Andrew Tropin <andrew@trop.in>,
Katherine Cox-Buday <cox.katherine.e+guix@gmail.com>,
Liliana Marie Prikler <liliana.prikler@gmail.com>
Subject: [bug#68180] [PATCH v3 4/4] gnu: Add emacs-pde.
Date: Tue, 2 Jan 2024 14:39:28 -0500 [thread overview]
Message-ID: <e6b9d7c3e15c780e9d78cf588f367f86f5b034a5.1704224367.git.maxim.cournoyer@gmail.com> (raw)
In-Reply-To: <cover.1704224367.git.maxim.cournoyer@gmail.com>
* gnu/packages/emacs-xyz.scm (emacs-pde): New variable.
Change-Id: Icab5d8acf9d441bb4a832a82e75432d64cc77ba7
---
Changes in v3:
- Use with-directory-excursion and for-each to make files writable
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 ad02b91c56..67a690b072 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)
@@ -12269,6 +12271,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)
+ (with-directory-excursion "lisp"
+ (for-each make-file-writable
+ '("pde-vars.el" "perlcritic.el" "perldoc.el"
+ "perltidy.el"))
+ (emacs-substitute-variables "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")))
+ (emacs-substitute-variables "perlcritic.el"
+ ("perlcritic-program"
+ (search-input-file inputs "bin/perlcritic")))
+ (emacs-substitute-variables "perldoc.el"
+ ("perldoc-cache-el"
+ "(expand-file-name \"~/.cache/perldoc-cache.el\"")
+ ("perldoc-pod2man"
+ (search-input-file inputs "bin/pod2man")))
+ (emacs-substitute-variables "perltidy.el"
+ ("perltidy-program"
+ (search-input-file inputs "bin/perltidy")))
+ (substitute* "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")
--
2.41.0
prev parent reply other threads:[~2024-01-02 19:41 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-12-31 16:49 [bug#68180] [PATCH 0/4] Add emacs-pde Maxim Cournoyer
2024-01-02 1:58 ` [bug#68180] [PATCH v2 " Maxim Cournoyer
2024-01-02 1:58 ` [bug#68180] [PATCH v2 1/4] gnu: emacs: Patch awk, find, sed and sh commands Maxim Cournoyer
2024-01-02 7:07 ` Andrew Tropin via Guix-patches via
2024-01-02 1:58 ` [bug#68180] [PATCH v2 2/4] build: perl: Accept Gexps for #:module-build-flags Maxim Cournoyer
2024-01-02 1:58 ` [bug#68180] [PATCH v2 3/4] gnu: perl-b-keywords: Update to 1.26 Maxim Cournoyer
2024-01-02 1:58 ` [bug#68180] [PATCH v2 4/4] gnu: Add emacs-pde Maxim Cournoyer
2024-01-02 5:22 ` Liliana Marie Prikler
2024-01-02 19:41 ` Maxim Cournoyer
2024-01-02 19:39 ` [bug#68180] [PATCH v3 0/4] " Maxim Cournoyer
2024-01-02 19:39 ` [bug#68180] [PATCH v3 1/4] gnu: emacs: Patch awk, find, sed and sh commands Maxim Cournoyer
2024-01-02 19:39 ` [bug#68180] [PATCH v3 2/4] build: perl: Accept Gexps for #:module-build-flags Maxim Cournoyer
2024-01-02 19:39 ` [bug#68180] [PATCH v3 3/4] gnu: perl-b-keywords: Update to 1.26 Maxim Cournoyer
2024-01-02 19:39 ` Maxim Cournoyer [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=e6b9d7c3e15c780e9d78cf588f367f86f5b034a5.1704224367.git.maxim.cournoyer@gmail.com \
--to=maxim.cournoyer@gmail.com \
--cc=68180@debbugs.gnu.org \
--cc=andrew@trop.in \
--cc=cox.katherine.e+guix@gmail.com \
--cc=liliana.prikler@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).