all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Sergio Pastor Pérez" <sergio.pastorperez@outlook.es>
To: 65012@debbugs.gnu.org
Cc: "Sergio Pastor Pérez" <sergio.pastorperez@outlook.es>
Subject: [bug#65012] [PATCH v2 2/2] gnu: Add picket.
Date: Sun, 10 Sep 2023 17:42:06 +0200	[thread overview]
Message-ID: <DU2P193MB2132554BD514E798FFF99CF4F3F3A@DU2P193MB2132.EURP193.PROD.OUTLOOK.COM> (raw)
In-Reply-To: <YtmOJtsKz1Fu_sn9qvEnSBkXoGcmPDZr4gffiIfvhgm_RD_9XE0VQq59ASd0nlrkCpU_ORlAmNeYpyvDlDR87Nx3Tu5xnIXvWDqwi-zjU60=@jeandudey.tech>

* gnu/packages/image.scm (picket): New variable.
---
 gnu/packages/image.scm | 44 ++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 44 insertions(+)

diff --git a/gnu/packages/image.scm b/gnu/packages/image.scm
index f84af81384..ad53c8e5a2 100644
--- a/gnu/packages/image.scm
+++ b/gnu/packages/image.scm
@@ -1948,6 +1948,50 @@ (define-public mini
      "This is a tiny, header only C++ library for manipulating INI files.")
     (license license:expat)))
 
+(define-public picket
+  (package
+    (name "picket")
+    (version "1.3")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/rajter/picket")
+                    (commit (string-append "v" version))))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "1zhpynyakjx9nc51b1j80b4y3138p3l380kp1cqmmjx2n9430144"))
+              (snippet '(begin
+                          ;; bundled mINI header library.
+                          (delete-file "src/cfg/ini.h")))))
+    (native-inputs (list pkg-config))
+    (inputs (list gtkmm-3 mini))
+    (arguments
+     (list #:tests? #f
+           #:phases #~(modify-phases %standard-phases
+                        (add-after 'unpack 'fix-mini-includes
+                          (lambda _
+                            (substitute* '("src/cfg/config.h"
+                                           "src/cfg/config.cpp")
+                              (("#include \"ini.h\"")
+                               "#include \"mini/ini.h\""))
+                            (substitute* "src/main.cpp"
+                              (("/usr")
+                               #$output))))
+                        (add-after 'unpack 'fix-cmake-paths
+                          (lambda _
+                            (substitute* "CMakeLists.txt"
+                              (("src/cfg/ini.h")
+                               (string-append #$mini "/include/mini/ini.h"))
+                              (("/usr/")
+                               #$output)))))))
+    (build-system cmake-build-system)
+    (home-page "https://github.com/rajter/picket")
+    (synopsis "Native linux screen color picker with custom format output")
+    (description
+     "Screen color picker for linux with magnifier and custom/user defined formats.")
+    (license license:gpl3+)))
+
 (define-public gpick
   (package
     (name "gpick")
-- 
2.41.0





  parent reply	other threads:[~2023-09-10 15:52 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-02 11:29 [bug#65012] [PATCH] gnu: Add picket Sergio Pastor Pérez
2023-08-02 13:42 ` Jean Pierre De Jesus DIAZ via Guix-patches via
2023-09-10 15:42   ` [bug#65012] Extract mINI library from Picket package Sergio Pastor Pérez
2023-09-10 15:42   ` [bug#65012] [PATCH v2 1/2] gnu: Add mini Sergio Pastor Pérez
2023-09-11 21:50     ` [bug#65012] [PATCH] gnu: Add picket Ludovic Courtès
2023-09-10 15:42   ` Sergio Pastor Pérez [this message]
2023-09-11 21:44     ` Ludovic Courtès

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=DU2P193MB2132554BD514E798FFF99CF4F3F3A@DU2P193MB2132.EURP193.PROD.OUTLOOK.COM \
    --to=sergio.pastorperez@outlook.es \
    --cc=65012@debbugs.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.