unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Michael Rohleder <mike@rohleder.de>
To: Oleg Pykhalov <go.wigust@gmail.com>
Cc: 43211@debbugs.gnu.org
Subject: [bug#43211] [PATCH] gnu: emacs-lice-el: Update to 0.2-2.482e58a.
Date: Sun, 06 Sep 2020 11:47:19 +0200	[thread overview]
Message-ID: <87k0x7uti0.fsf@rohleder.de> (raw)
In-Reply-To: <87lfhnz4hl.fsf@gmail.com> (Oleg Pykhalov's message of "Sun, 06 Sep 2020 11:36:22 +0300")


[-- Attachment #1.1: Type: text/plain, Size: 390 bytes --]

Hi Oleg,

Oleg Pykhalov <go.wigust@gmail.com> writes:
> The ‘site-lisp’ is not an appropriate place for this data.  It's better
> to install those files in [1] directory, and substitute ‘lice.el’
> accordingly so it could find them.
>
> [1] /gnu/store/...emacs-lice-el.../share/emacs-lice-el/template
>
> Could you update the patch with this change, please?

Ah, yes!


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.2: [PATCH] emacs-lice-el: Update to 0.2-2.482e58a. --]
[-- Type: text/x-patch, Size: 2500 bytes --]

From f2099ef8870380fd3c3fd37a4b55fe3b8a556216 Mon Sep 17 00:00:00 2001
From: Michael Rohleder <mike@rohleder.de>
Date: Sun, 6 Sep 2020 11:30:57 +0200
Subject: [PATCH] gnu: emacs-lice-el: Update to 0.2-2.482e58a.

* gnu/packages/emacs-xyz.scm (emacs-lice-el): Update to 0.2-2.482e58a.
[arguments]: Add phase 'patch-template-directory and 'install-templates.
---
 gnu/packages/emacs-xyz.scm | 24 +++++++++++++++++++++---
 1 file changed, 21 insertions(+), 3 deletions(-)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 1d890407cc..76488c0de0 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -15891,10 +15891,10 @@ Magit.")
     (license license:gpl3+)))
 
 (define-public emacs-lice-el
-  (let ((commit "4339929927c62bd636f89bb39ea999d18d269250"))
+  (let ((commit "482e58ab83fff86ed754b00be27b62a219597e7c"))
     (package
       (name "emacs-lice-el")
-      (version (git-version "0.2" "1" commit))
+      (version (git-version "0.2" "2" commit))
       (source (origin
                 (method git-fetch)
                 (uri (git-reference
@@ -15903,8 +15903,26 @@ Magit.")
                 (file-name (git-file-name name version))
                 (sha256
                  (base32
-                  "0879z761b7gajkhq176ps745xpdrivch349crransv8fnsc759yb"))))
+                  "0yxkjyhfk8kpr8yqz54gdx6xwkj4s8bnbz60162jh12crj0bs5n7"))))
       (build-system emacs-build-system)
+      (arguments
+       `(#:phases
+         (modify-phases %standard-phases
+           (add-after 'unpack 'patch-template-directory
+             (lambda* (#:key outputs #:allow-other-keys)
+               (chmod "lice.el" #o666)
+               (emacs-substitute-variables "lice.el"
+                 ("lice:system-template-directory"
+                  (string-append (assoc-ref outputs "out")
+                                 "/share/emacs-lice-el/template")))
+               #t))
+           (add-after 'install 'install-templates
+             (lambda* (#:key outputs #:allow-other-keys)
+               (copy-recursively
+                "template"
+                (string-append (assoc-ref outputs "out")
+                               "/share/emacs-lice-el/template"))
+               #t)))))
       (home-page "https://github.com/buzztaiki/lice-el")
       (synopsis "License and header template for Emacs")
       (description "@code{lice.el} provides following features:
-- 
2.28.0


[-- Attachment #1.3: Type: text/plain, Size: 96 bytes --]


Thanks!

-- 
Good decisions come from experience, and experience come from bad decisions.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 511 bytes --]

  reply	other threads:[~2020-09-06  9:48 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-05  8:12 [bug#43211] [PATCH] gnu: emacs-lice-el: Update to 0.2-2.482e58a Michael Rohleder
2020-09-06  8:36 ` Oleg Pykhalov
2020-09-06  9:47   ` Michael Rohleder [this message]
2020-09-17 17:44   ` Michael Rohleder
2020-09-22  8:56     ` bug#43211: " Nicolas Goaziou

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=87k0x7uti0.fsf@rohleder.de \
    --to=mike@rohleder.de \
    --cc=43211@debbugs.gnu.org \
    --cc=go.wigust@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).