From 0c73eed36b6a7e3c2d15a8f989eb9cebb44cc16e Mon Sep 17 00:00:00 2001 From: Vinicius Monego Date: Fri, 14 Aug 2020 18:58:15 -0300 Subject: gnu: Add entangle. * gnu/packages/photo.scm (entangle): New variable. Signed-off-by: Mathieu Othacehe --- gnu/packages/photo.scm | 67 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) (limited to 'gnu/packages/photo.scm') diff --git a/gnu/packages/photo.scm b/gnu/packages/photo.scm index abdb751a5a..4a077cf8d4 100644 --- a/gnu/packages/photo.scm +++ b/gnu/packages/photo.scm @@ -28,6 +28,7 @@ (define-module (gnu packages photo) #:use-module (guix build-system cmake) #:use-module (guix build-system gnu) + #:use-module (guix build-system meson) #:use-module (guix build-system perl) #:use-module (guix build-system python) #:use-module (guix download) @@ -40,6 +41,7 @@ #:use-module (gnu packages autotools) #:use-module (gnu packages base) #:use-module (gnu packages boost) + #:use-module (gnu packages cmake) #:use-module (gnu packages compression) #:use-module (gnu packages cups) #:use-module (gnu packages curl) @@ -611,6 +613,71 @@ paint brushes, image filters, colour adjustments and more advanced features such as Batch image processing.") (license license:gpl3+))) +(define-public entangle + (package + (name "entangle") + (version "3.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://gitlab.com/entangle/entangle") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1pdmgxjdb3xlcqsaz7l8qzj5f7g7nwzhsrgid8929bm36d49cgc7")))) + (build-system meson-build-system) + (arguments + `(#:glib-or-gtk? #t + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'skip-gtk-update-icon-cache + ;; Don't create 'icon-theme.cache'. + (lambda _ + (substitute* "meson_post_install.py" + (("gtk-update-icon-cache") "true")) + #t)) + (add-after 'install 'wrap-gi-python + ;; Make GTK find files needed by plugins. + (lambda* (#:key inputs outputs #:allow-other-keys) + (let ((out (assoc-ref outputs "out")) + (gi-typelib-path (getenv "GI_TYPELIB_PATH")) + (python-path (getenv "PYTHONPATH"))) + (wrap-program (string-append out "/bin/entangle") + `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path)) + `("PYTHONPATH" ":" prefix (,python-path)))) + #t))))) + (native-inputs + `(("cmake" ,cmake) + ("gettext" ,gettext-minimal) + ("glib:bin" ,glib "bin") + ("gobject-introspection" ,gobject-introspection) + ("gtk-doc" ,gtk-doc) + ("perl" ,perl) + ("pkg-config" ,pkg-config) + ("xmllint" ,libxml2))) + (inputs + `(("gdk-pixbuf" ,gdk-pixbuf) + ("gexiv2" ,gexiv2) + ("gst-plugins-base" ,gst-plugins-base) + ("gstreamer" ,gstreamer) + ("gtk+" ,gtk+) + ("lcms" ,lcms) + ("libgphoto2" ,libgphoto2) + ("libgudev" ,libgudev) + ("libpeas" ,libpeas) + ("libraw" ,libraw) + ("python" ,python) + ("python-pygobject" ,python-pygobject))) + (home-page "https://entangle-photo.org/") + (synopsis "Camera control and capture") + (description + "Entangle is an application which uses GTK and libgphoto2 to provide a +graphical interface for tethered photography with digital cameras. It +includes control over camera shooting and configuration settings and 'hands +off' shooting directly from the controlling computer.") + (license license:gpl3+))) + (define-public hugin (package (name "hugin") -- cgit v1.2.3 From c49025480e00f68f42efe9f018521d15819c02a6 Mon Sep 17 00:00:00 2001 From: Vinicius Monego Date: Thu, 13 Aug 2020 11:59:15 -0300 Subject: gnu: darktable: Update to 3.2.1. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * gnu/packages/photo.scm (darktable): Update to 3.2.1. Signed-off-by: Ludovic Courtès --- gnu/packages/photo.scm | 30 ++++++++++++++++-------------- 1 file changed, 16 insertions(+), 14 deletions(-) (limited to 'gnu/packages/photo.scm') diff --git a/gnu/packages/photo.scm b/gnu/packages/photo.scm index 4a077cf8d4..4a5d04fbd9 100644 --- a/gnu/packages/photo.scm +++ b/gnu/packages/photo.scm @@ -467,7 +467,7 @@ photographic equipment.") (define-public darktable (package (name "darktable") - (version "3.0.2") + (version "3.2.1") (source (origin (method url-fetch) @@ -475,7 +475,7 @@ photographic equipment.") "https://github.com/darktable-org/darktable/releases/" "download/release-" version "/darktable-" version ".tar.xz")) (sha256 - (base32 "1yrnkw8c47kmy2x6m1xp69hwyk02xyc8pd9kvcmyj54lzrhzdfka")))) + (base32 "035rvqmw386hm0jpi14lf4dnpr5rjkalzjkyprqh42nwi3m86dkf")))) (build-system cmake-build-system) (arguments `(#:tests? #f ; there are no tests @@ -484,6 +484,8 @@ photographic equipment.") (modify-phases %standard-phases (add-before 'configure 'prepare-build-environment (lambda* (#:key inputs #:allow-other-keys) + ;; Rawspeed fails to build with GCC due to OpenMP error: + ;; "undefined reference to `GOMP_loop_nonmonotonic_dynamic_next'" (setenv "CC" "clang") (setenv "CXX" "clang++") ;; Darktable looks for opencl-c.h in the LLVM dir. Guix installs ;; it to the Clang dir. We fix this by patching CMakeLists.txt. @@ -525,36 +527,36 @@ photographic equipment.") ("po4a" ,po4a))) (inputs `(("cairo" ,cairo) - ("colord-gtk" ,colord-gtk) - ("cups" ,cups) + ("colord-gtk" ,colord-gtk) ;optional, for color profile support + ("cups" ,cups) ;optional, for printing support ("curl" ,curl) ("dbus-glib" ,dbus-glib) ("exiv2" ,exiv2) ("freeimage" ,freeimage) - ("gmic" ,gmic) + ("gmic" ,gmic) ;optional, for HaldcLUT support ("graphicsmagick" ,graphicsmagick) ("gsettings-desktop-schemas" ,gsettings-desktop-schemas) ("gtk+" ,gtk+) ("ilmbase" ,ilmbase) - ("iso-codes" ,iso-codes) + ("iso-codes" ,iso-codes) ;optional, for language names in the preferences ("json-glib" ,json-glib) ("lcms" ,lcms) - ("lensfun" ,lensfun) - ("libgphoto2" ,libgphoto2) + ("lensfun" ,lensfun) ;optional, for the lens distortion plugin + ("libgphoto2" ,libgphoto2) ;optional, for camera tethering ("libjpeg" ,libjpeg-turbo) ("libomp" ,libomp) ("libpng" ,libpng) ("librsvg" ,librsvg) - ("libsecret" ,libsecret) + ("libsecret" ,libsecret) ;optional, for storing passwords ("libsoup" ,libsoup) ("libtiff" ,libtiff) - ("libwebp" ,libwebp) + ("libwebp" ,libwebp) ;optional, for WebP support ("libxml2" ,libxml2) ("libxslt" ,libxslt) - ("lua" ,lua) ;for plugins - ("openexr" ,openexr) - ("openjpeg" ,openjpeg) - ("osm-gps-map" ,osm-gps-map) + ("lua" ,lua) ;optional, for plugins + ("openexr" ,openexr) ;optional, for EXR import/export + ("openjpeg" ,openjpeg) ;optional, for JPEG2000 export + ("osm-gps-map" ,osm-gps-map) ;optional, for geotagging view ("pugixml" ,pugixml) ("python-jsonschema" ,python-jsonschema) ("sqlite" ,sqlite))) -- cgit v1.2.3 From 9db1b3786feb5669bed67199365d98f97226ba91 Mon Sep 17 00:00:00 2001 From: Vinicius Monego Date: Thu, 13 Aug 2020 11:59:16 -0300 Subject: gnu: darktable: Add dependency on libavif, ocl-icd. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * gnu/packages/photo.scm (darktable)[inputs]: Add libavif, ocl-icd. [arguments]: Set LD_LIBRARY_PATH for OpenCL. [supported-systems]: Remove i686 which is not supported anymore. Signed-off-by: Ludovic Courtès --- gnu/packages/photo.scm | 26 ++++++++++++++++---------- 1 file changed, 16 insertions(+), 10 deletions(-) (limited to 'gnu/packages/photo.scm') diff --git a/gnu/packages/photo.scm b/gnu/packages/photo.scm index 4a5d04fbd9..5f97d7e214 100644 --- a/gnu/packages/photo.scm +++ b/gnu/packages/photo.scm @@ -505,15 +505,19 @@ photographic equipment.") (string-append (assoc-ref inputs "ilmbase") "/include/OpenEXR:" (or (getenv "CPATH") ""))) #t)) - (add-after 'install 'wrap-program - (lambda* (#:key inputs outputs #:allow-other-keys) - (wrap-program (string-append (assoc-ref outputs "out") - "/bin/darktable") - ;; For GtkFileChooserDialog. - `("GSETTINGS_SCHEMA_DIR" = - (,(string-append (assoc-ref inputs "gtk+") - "/share/glib-2.0/schemas")))) - #t))))) + (add-after 'install 'wrap-program + (lambda* (#:key inputs outputs #:allow-other-keys) + (wrap-program (string-append (assoc-ref outputs "out") + "/bin/darktable") + ;; For GtkFileChooserDialog. + `("GSETTINGS_SCHEMA_DIR" = + (,(string-append (assoc-ref inputs "gtk+") + "/share/glib-2.0/schemas"))) + ;; For libOpenCL.so. + `("LD_LIBRARY_PATH" = + (,(string-append (assoc-ref inputs "ocl-icd") + "/lib")))) + #t))))) (native-inputs `(("clang" ,clang-9) ("desktop-file-utils" ,desktop-file-utils) @@ -543,6 +547,7 @@ photographic equipment.") ("lcms" ,lcms) ("lensfun" ,lensfun) ;optional, for the lens distortion plugin ("libgphoto2" ,libgphoto2) ;optional, for camera tethering + ("libavif" ,libavif) ;optional, for AVIF support ("libjpeg" ,libjpeg-turbo) ("libomp" ,libomp) ("libpng" ,libpng) @@ -554,6 +559,7 @@ photographic equipment.") ("libxml2" ,libxml2) ("libxslt" ,libxslt) ("lua" ,lua) ;optional, for plugins + ("ocl-icd" ,ocl-icd) ;optional, for OpenCL support ("openexr" ,openexr) ;optional, for EXR import/export ("openjpeg" ,openjpeg) ;optional, for JPEG2000 export ("osm-gps-map" ,osm-gps-map) ;optional, for geotagging view @@ -567,7 +573,7 @@ developer. It manages your digital negatives in a database, lets you view them through a zoomable lighttable and enables you to develop raw images and enhance them.") ;; See src/is_supported_platform.h for supported platforms. - (supported-systems '("i686-linux" "x86_64-linux" "aarch64-linux")) + (supported-systems '("x86_64-linux" "aarch64-linux")) (license (list license:gpl3+ ;; Darktable itself. license:lgpl2.1+)))) ;; Rawspeed library. -- cgit v1.2.3