[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
06/07: gnu: Add picket.
From: |
guix-commits |
Subject: |
06/07: gnu: Add picket. |
Date: |
Mon, 11 Sep 2023 17:56:41 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit 3235bfa25a82c1dbe6a8a0ec83ae98f840d1deb4
Author: Sergio Pastor Pérez <sergio.pastorperez@outlook.es>
AuthorDate: Sun Sep 10 17:42:06 2023 +0200
gnu: Add picket.
* gnu/packages/image.scm (picket): New variable.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
---
gnu/packages/image.scm | 46 ++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 46 insertions(+)
diff --git a/gnu/packages/image.scm b/gnu/packages/image.scm
index b41c1eac73..403409975a 100644
--- a/gnu/packages/image.scm
+++ b/gnu/packages/image.scm
@@ -1970,6 +1970,52 @@ medical image data, e.g. magnetic resonance image (MRI)
and functional MRI
"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* (#:key inputs #:allow-other-keys)
+ (substitute* "CMakeLists.txt"
+ (("src/cfg/ini.h")
+ (search-input-file inputs
+ "/include/mini/ini.h"))
+ (("/usr/")
+ #$output)))))))
+ (build-system cmake-build-system)
+ (home-page "https://github.com/rajter/picket")
+ (synopsis "Screen color picker with custom format output")
+ (description
+ "Picket is a screen color picker that includes a magnifier and supports
+custom formats for representing color values..")
+ (license license:gpl3+)))
+
(define-public gpick
(package
(name "gpick")
- branch master updated (ab971e9c19 -> 5ff9afb5fd), guix-commits, 2023/09/11
- 01/07: gnu: yelp: Provide dependencies to display "man:" URIs., guix-commits, 2023/09/11
- 05/07: gnu: Add mini., guix-commits, 2023/09/11
- 03/07: gnu: Add emacs-notmuch-indicator., guix-commits, 2023/09/11
- 04/07: gnu: emacs-php-mode: Update URL., guix-commits, 2023/09/11
- 02/07: gnu: Add emacs-yeetube., guix-commits, 2023/09/11
- 06/07: gnu: Add picket.,
guix-commits <=
- 07/07: gnu: emacs-mastodon: Update to 1.0.0-1.20dec88., guix-commits, 2023/09/11