emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#42373: closed ([PATCH] gnu: hedgewars: Install desktop icon.)


From: GNU bug Tracking System
Subject: bug#42373: closed ([PATCH] gnu: hedgewars: Install desktop icon.)
Date: Thu, 16 Jul 2020 23:53:02 +0000

Your message dated Fri, 17 Jul 2020 01:52:34 +0200
with message-id <87sgdr6mrh.fsf@nicolasgoaziou.fr>
and subject line Re: [bug#42373] [PATCH] gnu: hedgewars: Install desktop icon.
has caused the debbugs.gnu.org bug report #42373,
regarding [PATCH] gnu: hedgewars: Install desktop icon.
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs@gnu.org.)


-- 
42373: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=42373
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--- Begin Message --- Subject: [PATCH] gnu: hedgewars: Install desktop icon. Date: Wed, 15 Jul 2020 19:13:47 +0200
* gnu/packages/games.scm (hedgewars)[arguments]: Add ‘install-icon’ phase.
---
 gnu/packages/games.scm | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm
index 5de6dbf4ac..e60c455cb6 100644
--- a/gnu/packages/games.scm
+++ b/gnu/packages/games.scm
@@ -8813,7 +8813,15 @@ play with up to four players simultaneously.  It has 
network support.")
        #:phases
        (modify-phases %standard-phases
          (replace 'check
-           (lambda _ (invoke "ctest"))))))
+           (lambda _ (invoke "ctest")))
+         (add-after 'install 'install-icon
+           (lambda _
+             ;; Install icon for the desktop file.
+             (let* ((out (assoc-ref %outputs "out"))
+                    (icons (string-append out 
"/share/icons/hicolor/512x512/apps")))
+               (with-directory-excursion (string-append "../hedgewars-src-" 
,version)
+                 (install-file "misc/hedgewars.png" icons)))
+             #t)))))
     (inputs
      `(("ffmpeg" ,ffmpeg)
        ("freeglut" ,freeglut)
-- 
2.27.0




--- End Message ---
--- Begin Message --- Subject: Re: [bug#42373] [PATCH] gnu: hedgewars: Install desktop icon. Date: Fri, 17 Jul 2020 01:52:34 +0200 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux)
Hello,

Timotej Lazar <timotej.lazar@araneo.si> writes:

> * gnu/packages/games.scm (hedgewars)[arguments]: Add ‘install-icon’
> phase.

Applied. Thank you.

Regards,
-- 
Nicolas Goaziou


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]