* bug#25928: [PATCH] gnu: Add darktable. [not found] ` <20170314231326.3ac43a08@alma-ubu> @ 2017-03-30 13:19 ` Ricardo Wurmus 2017-03-30 13:00 ` Roel Janssen 2017-05-10 14:08 ` Roel Janssen 0 siblings, 2 replies; 7+ messages in thread From: Ricardo Wurmus @ 2017-03-30 13:19 UTC (permalink / raw) To: Björn Höfling; +Cc: 25928 Hi Björn, > I could build and run it and load two photos into it today, leaving out > the dependency of "fop". thanks for testing! Roel, could you push a version of this patch without the dependency on “fop”? You could add a FIXME comment if this means that some features will be missing without it. Thanks! -- Ricardo GPG: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC https://elephly.net ^ permalink raw reply [flat|nested] 7+ messages in thread
* bug#25928: [PATCH] gnu: Add darktable. 2017-03-30 13:19 ` bug#25928: [PATCH] gnu: Add darktable Ricardo Wurmus @ 2017-03-30 13:00 ` Roel Janssen 2017-05-10 14:08 ` Roel Janssen 1 sibling, 0 replies; 7+ messages in thread From: Roel Janssen @ 2017-03-30 13:00 UTC (permalink / raw) To: Ricardo Wurmus; +Cc: 25928 Ricardo Wurmus writes: > Hi Björn, > >> I could build and run it and load two photos into it today, leaving out >> the dependency of "fop". > > thanks for testing! > > Roel, could you push a version of this patch without the dependency on > “fop”? You could add a FIXME comment if this means that some features > will be missing without it. > > Thanks! No. First we need the LLVM and CLANG version upgrade. I haven't found the time to test that (yet). Kind regards, Roel Janssen ^ permalink raw reply [flat|nested] 7+ messages in thread
* bug#25928: [PATCH] gnu: Add darktable. 2017-03-30 13:19 ` bug#25928: [PATCH] gnu: Add darktable Ricardo Wurmus 2017-03-30 13:00 ` Roel Janssen @ 2017-05-10 14:08 ` Roel Janssen 2017-05-10 14:40 ` Ricardo Wurmus 1 sibling, 1 reply; 7+ messages in thread From: Roel Janssen @ 2017-05-10 14:08 UTC (permalink / raw) To: Ricardo Wurmus; +Cc: 25928 [-- Warning: decoded text below may be mangled, UTF-8 assumed --] [-- Attachment #1: 0001-gnu-Add-darktable.patch --] [-- Type: text/x-patch, Size: 4484 bytes --] From 5053b44b621932d3c3aa0f1ddb8b01dd04cd4680 Mon Sep 17 00:00:00 2001 From: Roel Janssen <roel@gnu.org> Date: Wed, 10 May 2017 16:06:38 +0200 Subject: [PATCH] gnu: Add darktable. * gnu/packages/photo.scm (darktable): New variable. --- gnu/packages/photo.scm | 80 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 80 insertions(+) diff --git a/gnu/packages/photo.scm b/gnu/packages/photo.scm index fff19551a..cb2eaadb2 100644 --- a/gnu/packages/photo.scm +++ b/gnu/packages/photo.scm @@ -32,18 +32,24 @@ #:use-module (gnu packages base) #:use-module (gnu packages boost) #:use-module (gnu packages compression) + #:use-module (gnu packages curl) + #:use-module (gnu packages databases) #:use-module (gnu packages ghostscript) #:use-module (gnu packages gl) + #:use-module (gnu packages gnome) #:use-module (gnu packages glib) #:use-module (gnu packages graphics) + #:use-module (gnu packages gtk) #:use-module (gnu packages image) #:use-module (gnu packages imagemagick) #:use-module (gnu packages libusb) + #:use-module (gnu packages llvm) #:use-module (gnu packages man) #:use-module (gnu packages maths) #:use-module (gnu packages perl) #:use-module (gnu packages pkg-config) #:use-module (gnu packages popt) + #:use-module (gnu packages python) #:use-module (gnu packages readline) #:use-module (gnu packages tex) #:use-module (gnu packages web) @@ -300,3 +306,77 @@ photographic equipment.") ;; licensed GPL3, and the database is license CC-BY-SA 3.0. See the ;; README.md file for this clarification. (license (list license:lgpl3 license:gpl3 license:cc-by-sa3.0)))) + +(define-public darktable + (package + (name "darktable") + (version "2.2.4") + (source (origin + (method url-fetch) + (uri (string-append + "https://github.com/darktable-org/darktable/releases/" + "download/release-" + version "/darktable-" version ".tar.xz")) + (sha256 + (base32 + "1n7rddkxwcifc3kcdlnar9w562xv4h78fqkkn27jihqzp3b4am5x")))) + (build-system cmake-build-system) + (arguments + `(#:tests? #f ; There are no tests. + #:configure-flags '("-DCMAKE_INSTALL_LIBDIR=lib") + #:phases + (modify-phases %standard-phases + (add-before 'configure 'set-ldflags + (lambda* (#:key outputs #:allow-other-keys) + (setenv "LDFLAGS" + (string-append + "-Wl,-rpath=" + (assoc-ref outputs "out") "/lib/darktable")) + #t)) + (add-after 'set-paths 'add-ilmbase-include-path + (lambda* (#:key inputs #:allow-other-keys) + ;; OpenEXR propagates ilmbase, but its include files do not appear + ;; in the CPATH, so we need to add "$ilmbase/include/OpenEXR/" to + ;; the CPATH to satisfy the dependency on "ImathInt64.h". + (setenv "CPATH" + (string-append + (assoc-ref inputs "ilmbase") + "/include/OpenEXR:" (or (getenv "CPATH") ""))) + #t))))) + (native-inputs + `(("llvm" ,llvm-3.9.1) + ("clang" ,clang-3.9.1))) + (inputs + `(("libxslt" ,libxslt) + ("libxml2" ,libxml2) + ("pugixml" ,pugixml) + ("gtk+" ,gtk+) + ("sqlite" ,sqlite) + ("libjpeg" ,libjpeg) + ("libpng" ,libpng) + ("cairo" ,cairo) + ("lcms" ,lcms) + ("exiv2" ,exiv2) + ("libtiff" ,libtiff) + ("curl" ,curl) + ("libgphoto2" ,libgphoto2) + ("dbus-glib" ,dbus-glib) + ("openexr" ,openexr) + ("ilmbase" ,ilmbase) + ("libsoup" ,libsoup) + ("python-jsonschema" ,python-jsonschema) + ("intltool" ,intltool) + ("perl" ,perl) + ("pkg-config" ,pkg-config) + ("libwebp" ,libwebp) + ("lensfun" ,lensfun) + ("librsvg" ,librsvg) + ("json-glib" ,json-glib) + ("freeimage" ,freeimage))) + (home-page "https://www.darktable.org") + (synopsis "Virtual lighttable and darkroom for photographers") + (description "Darktable is an open source photography workflow application +and RAW 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.") + (license license:gpl3+))) -- 2.12.2 [-- Attachment #2: Type: text/plain, Size: 702 bytes --] Ricardo Wurmus writes: > Hi Björn, > >> I could build and run it and load two photos into it today, leaving out >> the dependency of "fop". > > thanks for testing! > > Roel, could you push a version of this patch without the dependency on > “fop”? You could add a FIXME comment if this means that some features > will be missing without it. > > Thanks! Now that LLVM and CLANG 3.9.1 are in master, darktable is good to go in too. Attached is a new patch without "fop" as dependency. I also upgraded darktable to the latest release (2.2.4). I built and tested this version, and I cannot find any feature we're missing by not including "fop". Is this OK to push? Kind regards, Roel Janssen ^ permalink raw reply related [flat|nested] 7+ messages in thread
* bug#25928: [PATCH] gnu: Add darktable. 2017-05-10 14:08 ` Roel Janssen @ 2017-05-10 14:40 ` Ricardo Wurmus 2017-05-10 15:28 ` Roel Janssen 0 siblings, 1 reply; 7+ messages in thread From: Ricardo Wurmus @ 2017-05-10 14:40 UTC (permalink / raw) To: Roel Janssen; +Cc: 25928 Roel Janssen <roel@gnu.org> writes: > From 5053b44b621932d3c3aa0f1ddb8b01dd04cd4680 Mon Sep 17 00:00:00 2001 > From: Roel Janssen <roel@gnu.org> > Date: Wed, 10 May 2017 16:06:38 +0200 > Subject: [PATCH] gnu: Add darktable. > > * gnu/packages/photo.scm (darktable): New variable. > --- […] > + (arguments > + `(#:tests? #f ; There are no tests. > + #:configure-flags '("-DCMAKE_INSTALL_LIBDIR=lib") > + #:phases > + (modify-phases %standard-phases > + (add-before 'configure 'set-ldflags > + (lambda* (#:key outputs #:allow-other-keys) > + (setenv "LDFLAGS" > + (string-append > + "-Wl,-rpath=" > + (assoc-ref outputs "out") "/lib/darktable")) > + #t)) > + (add-after 'set-paths 'add-ilmbase-include-path > + (lambda* (#:key inputs #:allow-other-keys) > + ;; OpenEXR propagates ilmbase, but its include files do not appear > + ;; in the CPATH, so we need to add "$ilmbase/include/OpenEXR/" to > + ;; the CPATH to satisfy the dependency on "ImathInt64.h". > + (setenv "CPATH" > + (string-append > + (assoc-ref inputs "ilmbase") > + "/include/OpenEXR:" (or (getenv "CPATH") ""))) > + #t))))) I wonder if it would be possible to augment LDFLAGS and CPATH in #:configure-flags or #:make-flags instead of using build phases (which I find a bit crude). If that’s too hard I promise I won’t complain about doing it with build phases :) > + (native-inputs > + `(("llvm" ,llvm-3.9.1) > + ("clang" ,clang-3.9.1))) > + (inputs > + `(("libxslt" ,libxslt) > + ("libxml2" ,libxml2) > + ("pugixml" ,pugixml) > + ("gtk+" ,gtk+) > + ("sqlite" ,sqlite) > + ("libjpeg" ,libjpeg) > + ("libpng" ,libpng) > + ("cairo" ,cairo) > + ("lcms" ,lcms) > + ("exiv2" ,exiv2) > + ("libtiff" ,libtiff) > + ("curl" ,curl) > + ("libgphoto2" ,libgphoto2) > + ("dbus-glib" ,dbus-glib) > + ("openexr" ,openexr) > + ("ilmbase" ,ilmbase) > + ("libsoup" ,libsoup) > + ("python-jsonschema" ,python-jsonschema) > + ("intltool" ,intltool) > + ("perl" ,perl) > + ("pkg-config" ,pkg-config) > + ("libwebp" ,libwebp) > + ("lensfun" ,lensfun) > + ("librsvg" ,librsvg) > + ("json-glib" ,json-glib) > + ("freeimage" ,freeimage))) > + (home-page "https://www.darktable.org") > + (synopsis "Virtual lighttable and darkroom for photographers") > + (description "Darktable is an open source photography workflow > application s/an open source/a/ > +and RAW 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.") > + (license license:gpl3+))) Good to push with the change to the description. Thanks! -- Ricardo GPG: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC https://elephly.net ^ permalink raw reply [flat|nested] 7+ messages in thread
* bug#25928: [PATCH] gnu: Add darktable. 2017-05-10 14:40 ` Ricardo Wurmus @ 2017-05-10 15:28 ` Roel Janssen 2017-05-10 16:06 ` Ricardo Wurmus 0 siblings, 1 reply; 7+ messages in thread From: Roel Janssen @ 2017-05-10 15:28 UTC (permalink / raw) To: Ricardo Wurmus; +Cc: 25928 [-- Warning: decoded text below may be mangled, UTF-8 assumed --] [-- Attachment #1: 0001-gnu-Add-darktable.patch --] [-- Type: text/x-patch, Size: 4098 bytes --] From 6723796c48bc09846be6dee6a23d695ac248f63e Mon Sep 17 00:00:00 2001 From: Roel Janssen <roel@gnu.org> Date: Wed, 10 May 2017 17:23:30 +0200 Subject: [PATCH] gnu: Add darktable. * gnu/packages/photo.scm (darktable): New variable. --- gnu/packages/photo.scm | 74 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 74 insertions(+) diff --git a/gnu/packages/photo.scm b/gnu/packages/photo.scm index fff19551a..b68aea9d7 100644 --- a/gnu/packages/photo.scm +++ b/gnu/packages/photo.scm @@ -32,18 +32,24 @@ #:use-module (gnu packages base) #:use-module (gnu packages boost) #:use-module (gnu packages compression) + #:use-module (gnu packages curl) + #:use-module (gnu packages databases) #:use-module (gnu packages ghostscript) #:use-module (gnu packages gl) + #:use-module (gnu packages gnome) #:use-module (gnu packages glib) #:use-module (gnu packages graphics) + #:use-module (gnu packages gtk) #:use-module (gnu packages image) #:use-module (gnu packages imagemagick) #:use-module (gnu packages libusb) + #:use-module (gnu packages llvm) #:use-module (gnu packages man) #:use-module (gnu packages maths) #:use-module (gnu packages perl) #:use-module (gnu packages pkg-config) #:use-module (gnu packages popt) + #:use-module (gnu packages python) #:use-module (gnu packages readline) #:use-module (gnu packages tex) #:use-module (gnu packages web) @@ -300,3 +306,71 @@ photographic equipment.") ;; licensed GPL3, and the database is license CC-BY-SA 3.0. See the ;; README.md file for this clarification. (license (list license:lgpl3 license:gpl3 license:cc-by-sa3.0)))) + +(define-public darktable + (package + (name "darktable") + (version "2.2.4") + (source (origin + (method url-fetch) + (uri (string-append + "https://github.com/darktable-org/darktable/releases/" + "download/release-" + version "/darktable-" version ".tar.xz")) + (sha256 + (base32 + "1n7rddkxwcifc3kcdlnar9w562xv4h78fqkkn27jihqzp3b4am5x")))) + (build-system cmake-build-system) + (arguments + `(#:tests? #f ; There are no tests. + #:configure-flags '("-DCMAKE_INSTALL_LIBDIR=lib") + #:make-flags + (list + (string-append "CPATH=" (assoc-ref %build-inputs "ilmbase") + "/include/OpenEXR:" (or (getenv "CPATH") ""))) + #:phases + (modify-phases %standard-phases + (add-before 'configure 'set-ldflags + (lambda* (#:key outputs #:allow-other-keys) + (setenv "LDFLAGS" + (string-append + "-Wl,-rpath=" + (assoc-ref outputs "out") "/lib/darktable")) + #t))))) + (native-inputs + `(("llvm" ,llvm-3.9.1) + ("clang" ,clang-3.9.1))) + (inputs + `(("libxslt" ,libxslt) + ("libxml2" ,libxml2) + ("pugixml" ,pugixml) + ("gtk+" ,gtk+) + ("sqlite" ,sqlite) + ("libjpeg" ,libjpeg) + ("libpng" ,libpng) + ("cairo" ,cairo) + ("lcms" ,lcms) + ("exiv2" ,exiv2) + ("libtiff" ,libtiff) + ("curl" ,curl) + ("libgphoto2" ,libgphoto2) + ("dbus-glib" ,dbus-glib) + ("openexr" ,openexr) + ("ilmbase" ,ilmbase) + ("libsoup" ,libsoup) + ("python-jsonschema" ,python-jsonschema) + ("intltool" ,intltool) + ("perl" ,perl) + ("pkg-config" ,pkg-config) + ("libwebp" ,libwebp) + ("lensfun" ,lensfun) + ("librsvg" ,librsvg) + ("json-glib" ,json-glib) + ("freeimage" ,freeimage))) + (home-page "https://www.darktable.org") + (synopsis "Virtual lighttable and darkroom for photographers") + (description "Darktable is a photography workflow application and RAW +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.") + (license license:gpl3+))) -- 2.12.2 [-- Attachment #2: Type: text/plain, Size: 3480 bytes --] Ricardo Wurmus writes: > Roel Janssen <roel@gnu.org> writes: > >> From 5053b44b621932d3c3aa0f1ddb8b01dd04cd4680 Mon Sep 17 00:00:00 2001 >> From: Roel Janssen <roel@gnu.org> >> Date: Wed, 10 May 2017 16:06:38 +0200 >> Subject: [PATCH] gnu: Add darktable. >> >> * gnu/packages/photo.scm (darktable): New variable. >> --- > […] >> + (arguments >> + `(#:tests? #f ; There are no tests. >> + #:configure-flags '("-DCMAKE_INSTALL_LIBDIR=lib") >> + #:phases >> + (modify-phases %standard-phases >> + (add-before 'configure 'set-ldflags >> + (lambda* (#:key outputs #:allow-other-keys) >> + (setenv "LDFLAGS" >> + (string-append >> + "-Wl,-rpath=" >> + (assoc-ref outputs "out") "/lib/darktable")) >> + #t)) >> + (add-after 'set-paths 'add-ilmbase-include-path >> + (lambda* (#:key inputs #:allow-other-keys) >> + ;; OpenEXR propagates ilmbase, but its include files do not appear >> + ;; in the CPATH, so we need to add "$ilmbase/include/OpenEXR/" to >> + ;; the CPATH to satisfy the dependency on "ImathInt64.h". >> + (setenv "CPATH" >> + (string-append >> + (assoc-ref inputs "ilmbase") >> + "/include/OpenEXR:" (or (getenv "CPATH") ""))) >> + #t))))) > > I wonder if it would be possible to augment LDFLAGS and CPATH in > #:configure-flags or #:make-flags instead of using build phases (which I > find a bit crude). > > If that’s too hard I promise I won’t complain about doing it with build > phases :) See attached patch. By adding the LDFLAGS part to either #:make-flags or #:configure-flags, the run-path validation phase fails at the end of the build process. So, maybe we can settle half-way here? :-) >> + (native-inputs >> + `(("llvm" ,llvm-3.9.1) >> + ("clang" ,clang-3.9.1))) >> + (inputs >> + `(("libxslt" ,libxslt) >> + ("libxml2" ,libxml2) >> + ("pugixml" ,pugixml) >> + ("gtk+" ,gtk+) >> + ("sqlite" ,sqlite) >> + ("libjpeg" ,libjpeg) >> + ("libpng" ,libpng) >> + ("cairo" ,cairo) >> + ("lcms" ,lcms) >> + ("exiv2" ,exiv2) >> + ("libtiff" ,libtiff) >> + ("curl" ,curl) >> + ("libgphoto2" ,libgphoto2) >> + ("dbus-glib" ,dbus-glib) >> + ("openexr" ,openexr) >> + ("ilmbase" ,ilmbase) >> + ("libsoup" ,libsoup) >> + ("python-jsonschema" ,python-jsonschema) >> + ("intltool" ,intltool) >> + ("perl" ,perl) >> + ("pkg-config" ,pkg-config) >> + ("libwebp" ,libwebp) >> + ("lensfun" ,lensfun) >> + ("librsvg" ,librsvg) >> + ("json-glib" ,json-glib) >> + ("freeimage" ,freeimage))) >> + (home-page "https://www.darktable.org") >> + (synopsis "Virtual lighttable and darkroom for photographers") >> + (description "Darktable is an open source photography workflow >> application > > s/an open source/a/ Oops. Adjusted in the new patch. >> +and RAW 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.") >> + (license license:gpl3+))) > > Good to push with the change to the description. > Thanks! Is this then finally the moment we get to have darktable in Guix? :-) Kind regards, Roel Janssen ^ permalink raw reply related [flat|nested] 7+ messages in thread
* bug#25928: [PATCH] gnu: Add darktable. 2017-05-10 15:28 ` Roel Janssen @ 2017-05-10 16:06 ` Ricardo Wurmus 2017-05-10 17:51 ` Roel Janssen 0 siblings, 1 reply; 7+ messages in thread From: Ricardo Wurmus @ 2017-05-10 16:06 UTC (permalink / raw) To: Roel Janssen; +Cc: 25928 Roel Janssen <roel@gnu.org> writes: > > I wonder if it would be possible to augment LDFLAGS and CPATH in > > #:configure-flags or #:make-flags instead of using build phases (which I > > find a bit crude). > > > > If that’s too hard I promise I won’t complain about doing it with build > > phases :) > See attached patch. By adding the LDFLAGS part to either #:make-flags > or #:configure-flags, the run-path validation phase fails at the end of > the build process. > So, maybe we can settle half-way here? :-) Sure, looks good to me! > > Good to push with the change to the description. > > Thanks! > Is this then finally the moment we get to have darktable in Guix? :-) Yay! Thank you! -- Ricardo GPG: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC https://elephly.net ^ permalink raw reply [flat|nested] 7+ messages in thread
* bug#25928: [PATCH] gnu: Add darktable. 2017-05-10 16:06 ` Ricardo Wurmus @ 2017-05-10 17:51 ` Roel Janssen 0 siblings, 0 replies; 7+ messages in thread From: Roel Janssen @ 2017-05-10 17:51 UTC (permalink / raw) To: Ricardo Wurmus; +Cc: 25928-done Ricardo Wurmus writes: > Roel Janssen <roel@gnu.org> writes: > >> > I wonder if it would be possible to augment LDFLAGS and CPATH in >> > #:configure-flags or #:make-flags instead of using build phases (which I >> > find a bit crude). >> > >> > If that’s too hard I promise I won’t complain about doing it with build >> > phases :) > >> See attached patch. By adding the LDFLAGS part to either #:make-flags >> or #:configure-flags, the run-path validation phase fails at the end of >> the build process. > >> So, maybe we can settle half-way here? :-) > > Sure, looks good to me! > >> > Good to push with the change to the description. >> > Thanks! > >> Is this then finally the moment we get to have darktable in Guix? :-) > > Yay! Thank you! Pushed in 91a9c65c7bae73d999ccc2288833e909ce4a0871. Thanks! Kind regards, Roel Janssen ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2017-05-10 17:52 UTC | newest] Thread overview: 7+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- [not found] <87zih4ee7i.fsf@gnu.org> [not found] ` <20170313232428.0530762b@alma-ubu> [not found] ` <20170314231326.3ac43a08@alma-ubu> 2017-03-30 13:19 ` bug#25928: [PATCH] gnu: Add darktable Ricardo Wurmus 2017-03-30 13:00 ` Roel Janssen 2017-05-10 14:08 ` Roel Janssen 2017-05-10 14:40 ` Ricardo Wurmus 2017-05-10 15:28 ` Roel Janssen 2017-05-10 16:06 ` Ricardo Wurmus 2017-05-10 17:51 ` Roel Janssen
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.