diff options
Diffstat (limited to 'gnu/packages/image.scm')
-rw-r--r-- | gnu/packages/image.scm | 89 |
1 files changed, 87 insertions, 2 deletions
diff --git a/gnu/packages/image.scm b/gnu/packages/image.scm index 75f9e3c691..a632a02139 100644 --- a/gnu/packages/image.scm +++ b/gnu/packages/image.scm @@ -1475,7 +1475,7 @@ channels.") (package (inherit libwebp) (name "libwebp") - (version "1.3.1") + (version "1.3.2") (source (origin (method git-fetch) @@ -1485,7 +1485,7 @@ channels.") (file-name (git-file-name name version)) (sha256 (base32 - "1aas6gwy7kfcq34cil781kcsl286khh9grwcx7k4d2n1g7zcpl3m")))))) + "1x37795gpc63g1ma9kqw4q3dikwhrjklixqzjjsj6viqksa19z41")))))) (define-public libmng (package @@ -1931,6 +1931,91 @@ medical image data, e.g. magnetic resonance image (MRI) and functional MRI (home-page "https://niftilib.sourceforge.net") (license license:public-domain))) +(define-public mini + (package + (name "mini") + (version "0.9.14") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/pulzed/mINI") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "01wn7h9rjz9h6cr11dd62jsb3315d1h6c33pdmwi2l7d8a4n3h8d")))) + (build-system gnu-build-system) + (arguments + (list #:phases + #~(modify-phases %standard-phases + (delete 'build) + (delete 'configure) + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (with-directory-excursion "tests" + (for-each (lambda (test) + (let ((test-name (basename test + ".cpp"))) + (invoke "./build.sh" test-name) + (invoke "./run.sh" test-name))) + (find-files "." ".cpp")))))) + (replace 'install + (lambda _ + (install-file "src/mini/ini.h" + (string-append #$output "/include/mini"))))))) + (home-page "https://github.com/pulzed/mINI") + (synopsis "INI file reader and writer header library") + (description + "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") |