guix-devel
[Top][All Lists]
Advanced

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

Re: [PATCH 2/2] gnu: Add maim.


From: Eric Bavier
Subject: Re: [PATCH 2/2] gnu: Add maim.
Date: Thu, 07 Apr 2016 09:48:28 -0500
User-agent: Roundcube Webmail/1.0.6

On 2016-04-07 08:56, Alex Kost wrote:
* gnu/packages/xdisorg.scm (maim): New variable.
---
gnu/packages/xdisorg.scm | 42 ++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 42 insertions(+)

diff --git a/gnu/packages/xdisorg.scm b/gnu/packages/xdisorg.scm
index e6457de..93f838d 100644
--- a/gnu/packages/xdisorg.scm
+++ b/gnu/packages/xdisorg.scm
@@ -410,6 +410,48 @@ window) while drawing a pretty box around it,
then finally prints the
 selection's dimensions to stdout.")
     (license license:gpl3+)))

+(define-public maim
+  (package
+    (name "maim")
+    (version "3.4.47")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append
+                    "https://github.com/naelstrof/maim/archive/v";
+                    version ".tar.gz"))
+              (file-name (string-append name "-" version ".tar.gz"))
+              (sha256
+               (base32
+ "0kfp7k55bxc5h6h0wv8bwmsc5ny66h9ra2z4dzs4yzszq16544pv"))))
+    (build-system cmake-build-system)
+    (arguments
+     '(#:tests? #f              ; no check target
+       #:phases
+       (modify-phases %standard-phases
+         (add-after 'unpack 'patch-source
+           (lambda* (#:key inputs #:allow-other-keys)
+             (let ((slop (string-append (assoc-ref inputs "slop")
+                                        "/bin/slop")))
+ ;; "slop" command is hardcoded in the source; replace it
+               ;; with the full file name.
+               (substitute* "src/main.cpp"
+                 (("^( +slopcommand.*)\"slop\"" all beg)
+                  (string-append beg "\"" slop "\"")))))))))

Instead of "beg", could we use something like "front" to avoid potentially confusing abbreviations.

Otherwise LGTM.

--
`~Eric



reply via email to

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