From: Mathieu Lirzin <mthl@openmailbox.org>
To: guix-devel@gnu.org
Subject: [PATCH 2/2] gnu: ratpoison: Clean definition.
Date: Thu, 6 Aug 2015 18:59:33 +0200 [thread overview]
Message-ID: <1438880373-19212-3-git-send-email-mthl@openmailbox.org> (raw)
In-Reply-To: <1438880373-19212-1-git-send-email-mthl@openmailbox.org>
[-- Attachment #1: Type: text/plain, Size: 338 bytes --]
* gnu/packages/ratpoison.scm (ratpoison)[arguments]: Use modify-phases.
[inputs]: Sort alist. Move ratpoison.desktop to ...
[source]: Fix indentation.
[native-inputs]: Likewise. ... here.
---
gnu/packages/ratpoison.scm | 42 +++++++++++++++++++++---------------------
1 file changed, 21 insertions(+), 21 deletions(-)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0002-gnu-ratpoison-Clean-definition.patch --]
[-- Type: text/x-patch; name="0002-gnu-ratpoison-Clean-definition.patch", Size: 2553 bytes --]
diff --git a/gnu/packages/ratpoison.scm b/gnu/packages/ratpoison.scm
index a73e6cf..dc6db72 100644
--- a/gnu/packages/ratpoison.scm
+++ b/gnu/packages/ratpoison.scm
@@ -44,8 +44,8 @@
(package
(name "ratpoison")
(version "1.4.8")
- (source (origin
- (method url-fetch)
+ (source
+ (origin (method url-fetch)
(uri (string-append "mirror://savannah/ratpoison/ratpoison-"
version ".tar.xz"))
(sha256
@@ -55,32 +55,32 @@
(build-system gnu-build-system)
(arguments
'(#:phases
- (alist-cons-after
- 'install 'install-xsession
- (lambda _
- (let* ((file (assoc-ref %build-inputs "ratpoison.desktop"))
- (xsessions (string-append %output "/share/xsessions"))
- (target (string-append xsessions "/ratpoison.desktop")))
- (mkdir-p xsessions)
- (copy-file file target)))
- %standard-phases)))
+ (modify-phases %standard-phases
+ (add-after 'install 'install-xsession
+ (lambda* (#:key inputs outputs #:allow-other-keys)
+ (let ((rpd "ratpoison.desktop")
+ (dst (string-append (assoc-ref outputs "out")
+ "/share/xsessions/")))
+ (mkdir-p dst)
+ (copy-file (assoc-ref inputs rpd)
+ (string-append dst rpd))))))))
(inputs
- `(("libXi" ,libxi)
- ("readline" ,readline)
- ("xextproto" ,xextproto)
- ("libXtst" ,libxtst)
- ("freetype" ,freetype)
+ `(("inputproto" ,inputproto)
("fontconfig" ,fontconfig)
- ("libxinerama" ,libxinerama)
+ ("freetype" ,freetype)
("libXft" ,libxft)
+ ("libXi" ,libxi)
+ ("libxinerama" ,libxinerama)
("libXpm" ,libxpm)
("libXt" ,libxt)
- ("inputproto" ,inputproto)
+ ("libXtst" ,libxtst)
("libX11" ,libx11)
- ("ratpoison.desktop" ,ratpoison.desktop)))
+ ("readline" ,readline)
+ ("xextproto" ,xextproto)))
(native-inputs
- `(("perl" ,perl)
- ("pkg-config" ,pkg-config)))
+ `(("perl",perl)
+ ("pkg-config" ,pkg-config)
+ ("ratpoison.desktop" ,ratpoison.desktop)))
(home-page "http://www.nongnu.org/ratpoison/")
(synopsis "Simple mouse-free tiling window manager")
(description
next prev parent reply other threads:[~2015-08-06 17:03 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-06 16:59 [PATCH 0/2] Ratpoison update and cleanup Mathieu Lirzin
2015-08-06 16:59 ` [PATCH 1/2] gnu: ratpoison: Update to 1.4.8 Mathieu Lirzin
2015-08-08 18:50 ` Mark H Weaver
2015-08-06 16:59 ` Mathieu Lirzin [this message]
2015-08-18 16:31 ` [PATCH 2/2] gnu: ratpoison: Clean definition Ludovic Courtès
2015-08-25 21:54 ` Mathieu Lirzin
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1438880373-19212-3-git-send-email-mthl@openmailbox.org \
--to=mthl@openmailbox.org \
--cc=guix-devel@gnu.org \
/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 external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.