all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* opencolorio with unbundle patch, for lfam
@ 2016-10-03 12:16 ng0
  2016-10-03 12:16 ` [PATCH 001/303] gnu: Add opencolorio ng0
  0 siblings, 1 reply; 6+ messages in thread
From: ng0 @ 2016-10-03 12:16 UTC (permalink / raw)
  To: guix-devel

[PATCH 001/303] gnu: Add opencolorio.

You probably will run into a merge conflict at the point where the onionshare patch was added.
I haven't compiled this in a while and can't check right now, but you said you are working on this.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [PATCH 001/303] gnu: Add opencolorio.
  2016-10-03 12:16 opencolorio with unbundle patch, for lfam ng0
@ 2016-10-03 12:16 ` ng0
  2017-07-29 16:21   ` Christopher Allan Webber
  0 siblings, 1 reply; 6+ messages in thread
From: ng0 @ 2016-10-03 12:16 UTC (permalink / raw)
  To: guix-devel; +Cc: ng0

From: ng0 <ng0@we.make.ritual.n0.is>

* gnu/packages/graphics (opencolorio): New variable.
* gnu/packages/patches/opencolorio-avoid-bundled-includes.patch
---
 gnu/local.mk                                       |  1 +
 gnu/packages/graphics.scm                          | 73 ++++++++++++++++++++++
 .../opencolorio-avoid-bundled-includes.patch       | 72 +++++++++++++++++++++
 3 files changed, 146 insertions(+)
 create mode 100644 gnu/packages/patches/opencolorio-avoid-bundled-includes.patch

diff --git a/gnu/local.mk b/gnu/local.mk
index a7006cb..bc52f1a 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -701,6 +701,7 @@ dist_patch_DATA =						\
   %D%/packages/patches/nvi-db4.patch				\
   %D%/packages/patches/ocaml-CVE-2015-8869.patch		\
   %D%/packages/patches/ocaml-findlib-make-install.patch	\
+  %D%/packages/patches/opencolorio-avoid-bundled-includes.patch \
   %D%/packages/patches/openexr-missing-samples.patch		\
   %D%/packages/patches/openjpeg-CVE-2015-6581.patch		\
   %D%/packages/patches/openjpeg-CVE-2016-5157.patch		\
diff --git a/gnu/packages/graphics.scm b/gnu/packages/graphics.scm
index d0df830..1f04da2 100644
--- a/gnu/packages/graphics.scm
+++ b/gnu/packages/graphics.scm
@@ -5,6 +5,7 @@
 ;;; Copyright © 2016 Ricardo Wurmus <rekado@elephly.net>
 ;;; Copyright © 2016 Efraim Flashner <efraim@flashner.co.il>
 ;;; Copyright © 2016 Andreas Enge <andreas@enge.fr>
+;;; Copyright © 2016 ng0 <ngillmann@runbox.com>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -46,18 +47,21 @@
   #:use-module (gnu packages compression)
   #:use-module (gnu packages multiprecision)
   #:use-module (gnu packages boost)
+  #:use-module (gnu packages ghostscript)
   #:use-module (gnu packages gl)
   #:use-module (gnu packages glib)
   #:use-module (gnu packages graphviz)
   #:use-module (gnu packages gtk)
   #:use-module (gnu packages gnome)
   #:use-module (gnu packages image)
+  #:use-module (gnu packages java)
   #:use-module (gnu packages jemalloc)
   #:use-module (gnu packages photo)
   #:use-module (gnu packages python)
   #:use-module (gnu packages qt)
   #:use-module (gnu packages readline)
   #:use-module (gnu packages sdl)
+  #:use-module (gnu packages serialization)
   #:use-module (gnu packages video)
   #:use-module (gnu packages xml)
   #:use-module (gnu packages xorg))
@@ -510,3 +514,72 @@ and understanding different BRDFs (and other component functions).")
 It supports sub-pixel resolutions and anti-aliasing.  It is also library for
 rendering SVG graphics.")
     (license license:gpl2+)))
+
+(define-public opencolorio
+  (package
+    (name "opencolorio")
+    (version "1.0.9")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append "https://github.com/imageworks/OpenColorIO/"
+                                  "archive/v" version ".tar.gz"))
+              (sha256
+               (base32
+                "0zzacmfs4k6lk4yd9v8f6p1616k7sm5wmhk0np93qx8m3ilixj17"))
+              (patches (search-patches
+                        "opencolorio-avoid-bundled-includes.patch"))
+              (file-name (string-append name "-" version ".tar.gz"))))
+    (build-system cmake-build-system)
+    (arguments
+     `(#:configure-flags
+       (list "-DOCIO_BUILD_JNIGLUE=OFF" "-DOCIO_BUILD_SHARED=ON"
+             "-DOCIO_BUILD_NUKE=OFF" ; Nuke is commerical software
+             "-DOCIO_BUILD_STATIC=OFF" "-DOCIO_STATIC_JNIGLUE=OFF"
+             "-DOCIO_BUILD_TRUELIGHT=OFF" ; Another external software
+             "-DUSE_EXTERNAL_LCMS=ON" "-DUSE_EXTERNAL_TINYXML=ON"
+             "-DUSE_EXTERNAL_YAML=ON" ;;"-DOCIO_BUILD_DOCS=ON"
+             "-DOCIO_BUILD_APPS=ON" ;;"-DOCIO_BUILD_PDF_DOCS=ON"
+             "-DOCIO_BUILD_PYGLUE=ON")
+       ;;"-DOCIO_BUILD_TESTS")))
+       #:phases
+       (modify-phases %standard-phases
+         (add-before 'configure 'fix-fixes
+           (lambda _
+             (substitute* "docs/CMakeLists.txt"
+               (("add_dependencies(doc Sphinx)") "")
+               (("add_dependencies(pdf latex)") "")))))))
+    (inputs
+     `(("lcms" ,lcms)
+       ("openimageio" ,openimageio)
+       ("glew" ,glew)
+       ("freeglut" ,freeglut)
+       ("python" ,python)
+       ("yaml-cpp" ,yaml-cpp)
+       ("yaml" ,yaml)
+       ("boost" ,boost)
+       ("tinyxml" ,tinyxml)
+       ("python-sphinx" ,python-sphinx)
+       ("mesa" ,mesa)
+       ("libxi" ,libxi)
+       ("libxmu" ,libxmu)
+       ("pkg-config" ,pkg-config)
+       ("python" ,python)
+       ;; https://github.com/imageworks/OpenColorIO/tree/master/ext:
+       ;; ("python-setuptools" ,python-setuptools) python3.
+       ("python-jinja2" ,python-jinja2)
+       ("python-pygments" ,python-pygments)
+       ("python-docutils" ,python-docutils)
+       ("java-junit" ,java-junit)))
+    (home-page "http://opencolorio.org/")
+    (synopsis "color management framework for visual effects and animation")
+    (description
+     "OpenColorIO (OCIO) is a complete color management solution geared towards
+motion picture production with an emphasis on visual effects and computer animation.
+OCIO provides a straightforward and consistent user experience across all
+supporting applications while allowing for sophisticated back-end configuration
+options suitable for high-end production usage.  OCIO is compatible with the
+Academy Color Encoding Specification (ACES) and is LUT-format agnostic,
+supporting many popular formats.
+OpenColorIO is natively supported in commercial applications like Katana, Mari,
+Silhouette FX, and others coming soon.")
+    (license license:bsd-3)))
diff --git a/gnu/packages/patches/opencolorio-avoid-bundled-includes.patch b/gnu/packages/patches/opencolorio-avoid-bundled-includes.patch
new file mode 100644
index 0000000..e77f733
--- /dev/null
+++ b/gnu/packages/patches/opencolorio-avoid-bundled-includes.patch
@@ -0,0 +1,72 @@
+Do not use bundled applications from the source of OpenColorIO.
+
+--- OpenColorIO-1.0.9/docs/CMakeLists.txt.orig	2016-09-15 09:40:03.932004575 +0000
++++ OpenColorIO-1.0.9/docs/CMakeLists.txt	2016-09-15 09:41:04.420845978 +0000
+@@ -1,67 +1,3 @@
+-
+-###############################################################################
+-### External Doc Apps ###
+-
+-# setuptools
+-# https://pypi.python.org/pypi/setuptools
+-set(SETUPTOOLS_VERSION 1.1.6)
+-ExternalProject_Add(setuptools
+-    URL ${CMAKE_SOURCE_DIR}/ext/setuptools-${SETUPTOOLS_VERSION}.tar.gz
+-    BUILD_IN_SOURCE 1
+-    CONFIGURE_COMMAND ${CMAKE_COMMAND} -E make_directory ${EXTDIST_PYTHONPATH}
+-    BUILD_COMMAND PYTHONPATH=${PYTHONPATH} ${PYTHON} setup.py build
+-    INSTALL_COMMAND PYTHONPATH=${PYTHONPATH} ${PYTHON} setup.py install --prefix=${EXTDIST_ROOT}
+-)
+-
+-# docutils
+-# https://pypi.python.org/pypi/docutils
+-set(DOCUTILS_VERSION 0.11)
+-ExternalProject_Add(docutils
+-    DEPENDS setuptools
+-    URL ${CMAKE_SOURCE_DIR}/ext/docutils-${DOCUTILS_VERSION}.tar.gz
+-    BUILD_IN_SOURCE 1
+-    CONFIGURE_COMMAND ${CMAKE_COMMAND} -E make_directory ${EXTDIST_PYTHONPATH}
+-    BUILD_COMMAND PYTHONPATH=${PYTHONPATH} ${PYTHON} setup.py build
+-    INSTALL_COMMAND PYTHONPATH=${PYTHONPATH} ${PYTHON} setup.py install --prefix=${EXTDIST_ROOT}
+-)
+-
+-# jinja2
+-# https://pypi.python.org/pypi/Jinja2
+-set(JINJA2_VERSION 2.7.1)
+-ExternalProject_Add(Jinja2
+-    DEPENDS setuptools
+-    URL ${CMAKE_SOURCE_DIR}/ext/Jinja2-${JINJA2_VERSION}.tar.gz
+-    BUILD_IN_SOURCE 1
+-    CONFIGURE_COMMAND ${CMAKE_COMMAND} -E make_directory ${EXTDIST_PYTHONPATH}
+-    BUILD_COMMAND PYTHONPATH=${PYTHONPATH} ${PYTHON} setup.py build
+-    INSTALL_COMMAND PYTHONPATH=${PYTHONPATH} ${PYTHON} setup.py install --prefix=${EXTDIST_ROOT}
+-)
+-
+-# Pygments
+-# https://pypi.python.org/pypi/Pygments
+-set(PYGMENTS_VERSION 1.6)
+-ExternalProject_Add(Pygments
+-    DEPENDS setuptools
+-    URL ${CMAKE_SOURCE_DIR}/ext/Pygments-${PYGMENTS_VERSION}.tar.gz
+-    BUILD_IN_SOURCE 1
+-    CONFIGURE_COMMAND ${CMAKE_COMMAND} -E make_directory ${EXTDIST_PYTHONPATH}
+-    BUILD_COMMAND PYTHONPATH=${PYTHONPATH} ${PYTHON} setup.py build
+-    INSTALL_COMMAND PYTHONPATH=${PYTHONPATH} ${PYTHON} setup.py install --prefix=${EXTDIST_ROOT}
+-)
+-
+-# sphinx
+-# https://pypi.python.org/pypi/Sphinx
+-set(SPHINX_VERSION 1.2b3)
+-ExternalProject_Add(Sphinx
+-    DEPENDS setuptools docutils Jinja2 Pygments
+-    URL ${CMAKE_SOURCE_DIR}/ext/Sphinx-${SPHINX_VERSION}.tar.gz
+-    PATCH_COMMAND patch -p1 < ${CMAKE_SOURCE_DIR}/ext/Sphinx-${SPHINX_VERSION}.patch
+-    BUILD_IN_SOURCE 1
+-    CONFIGURE_COMMAND ${CMAKE_COMMAND} -E make_directory ${EXTDIST_PYTHONPATH}
+-    BUILD_COMMAND PYTHONPATH=${PYTHONPATH} ${PYTHON} setup.py build
+-    INSTALL_COMMAND PYTHONPATH=${PYTHONPATH} ${PYTHON} setup.py install --prefix=${EXTDIST_ROOT} --install-scripts=${EXTDIST_ROOT}/bin
+-)
+-
+ ###############################################################################
+ ### Create Doc Targets ###
+ 
-- 
2.10.0

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [PATCH 001/303] gnu: Add opencolorio.
  2016-10-03 12:16 ` [PATCH 001/303] gnu: Add opencolorio ng0
@ 2017-07-29 16:21   ` Christopher Allan Webber
  2017-07-29 16:48     ` ng0
  0 siblings, 1 reply; 6+ messages in thread
From: Christopher Allan Webber @ 2017-07-29 16:21 UTC (permalink / raw)
  To: ng0; +Cc: guix-devel, ng0

I have a friend who's a Blender user who said they'd like to see
opencolorio support in the Blender package... this is an old patch,
but maybe worth trying to get in again?

ng0 writes:

> From: ng0 <ng0@we.make.ritual.n0.is>
>
> * gnu/packages/graphics (opencolorio): New variable.
> * gnu/packages/patches/opencolorio-avoid-bundled-includes.patch
> ---
>  gnu/local.mk                                       |  1 +
>  gnu/packages/graphics.scm                          | 73 ++++++++++++++++++++++
>  .../opencolorio-avoid-bundled-includes.patch       | 72 +++++++++++++++++++++
>  3 files changed, 146 insertions(+)
>  create mode 100644 gnu/packages/patches/opencolorio-avoid-bundled-includes.patch
>
> diff --git a/gnu/local.mk b/gnu/local.mk
> index a7006cb..bc52f1a 100644
> --- a/gnu/local.mk
> +++ b/gnu/local.mk
> @@ -701,6 +701,7 @@ dist_patch_DATA =						\
>    %D%/packages/patches/nvi-db4.patch				\
>    %D%/packages/patches/ocaml-CVE-2015-8869.patch		\
>    %D%/packages/patches/ocaml-findlib-make-install.patch	\
> +  %D%/packages/patches/opencolorio-avoid-bundled-includes.patch \
>    %D%/packages/patches/openexr-missing-samples.patch		\
>    %D%/packages/patches/openjpeg-CVE-2015-6581.patch		\
>    %D%/packages/patches/openjpeg-CVE-2016-5157.patch		\
> diff --git a/gnu/packages/graphics.scm b/gnu/packages/graphics.scm
> index d0df830..1f04da2 100644
> --- a/gnu/packages/graphics.scm
> +++ b/gnu/packages/graphics.scm
> @@ -5,6 +5,7 @@
>  ;;; Copyright © 2016 Ricardo Wurmus <rekado@elephly.net>
>  ;;; Copyright © 2016 Efraim Flashner <efraim@flashner.co.il>
>  ;;; Copyright © 2016 Andreas Enge <andreas@enge.fr>
> +;;; Copyright © 2016 ng0 <ngillmann@runbox.com>
>  ;;;
>  ;;; This file is part of GNU Guix.
>  ;;;
> @@ -46,18 +47,21 @@
>    #:use-module (gnu packages compression)
>    #:use-module (gnu packages multiprecision)
>    #:use-module (gnu packages boost)
> +  #:use-module (gnu packages ghostscript)
>    #:use-module (gnu packages gl)
>    #:use-module (gnu packages glib)
>    #:use-module (gnu packages graphviz)
>    #:use-module (gnu packages gtk)
>    #:use-module (gnu packages gnome)
>    #:use-module (gnu packages image)
> +  #:use-module (gnu packages java)
>    #:use-module (gnu packages jemalloc)
>    #:use-module (gnu packages photo)
>    #:use-module (gnu packages python)
>    #:use-module (gnu packages qt)
>    #:use-module (gnu packages readline)
>    #:use-module (gnu packages sdl)
> +  #:use-module (gnu packages serialization)
>    #:use-module (gnu packages video)
>    #:use-module (gnu packages xml)
>    #:use-module (gnu packages xorg))
> @@ -510,3 +514,72 @@ and understanding different BRDFs (and other component functions).")
>  It supports sub-pixel resolutions and anti-aliasing.  It is also library for
>  rendering SVG graphics.")
>      (license license:gpl2+)))
> +
> +(define-public opencolorio
> +  (package
> +    (name "opencolorio")
> +    (version "1.0.9")
> +    (source (origin
> +              (method url-fetch)
> +              (uri (string-append "https://github.com/imageworks/OpenColorIO/"
> +                                  "archive/v" version ".tar.gz"))
> +              (sha256
> +               (base32
> +                "0zzacmfs4k6lk4yd9v8f6p1616k7sm5wmhk0np93qx8m3ilixj17"))
> +              (patches (search-patches
> +                        "opencolorio-avoid-bundled-includes.patch"))
> +              (file-name (string-append name "-" version ".tar.gz"))))
> +    (build-system cmake-build-system)
> +    (arguments
> +     `(#:configure-flags
> +       (list "-DOCIO_BUILD_JNIGLUE=OFF" "-DOCIO_BUILD_SHARED=ON"
> +             "-DOCIO_BUILD_NUKE=OFF" ; Nuke is commerical software
> +             "-DOCIO_BUILD_STATIC=OFF" "-DOCIO_STATIC_JNIGLUE=OFF"
> +             "-DOCIO_BUILD_TRUELIGHT=OFF" ; Another external software
> +             "-DUSE_EXTERNAL_LCMS=ON" "-DUSE_EXTERNAL_TINYXML=ON"
> +             "-DUSE_EXTERNAL_YAML=ON" ;;"-DOCIO_BUILD_DOCS=ON"
> +             "-DOCIO_BUILD_APPS=ON" ;;"-DOCIO_BUILD_PDF_DOCS=ON"
> +             "-DOCIO_BUILD_PYGLUE=ON")
> +       ;;"-DOCIO_BUILD_TESTS")))
> +       #:phases
> +       (modify-phases %standard-phases
> +         (add-before 'configure 'fix-fixes
> +           (lambda _
> +             (substitute* "docs/CMakeLists.txt"
> +               (("add_dependencies(doc Sphinx)") "")
> +               (("add_dependencies(pdf latex)") "")))))))
> +    (inputs
> +     `(("lcms" ,lcms)
> +       ("openimageio" ,openimageio)
> +       ("glew" ,glew)
> +       ("freeglut" ,freeglut)
> +       ("python" ,python)
> +       ("yaml-cpp" ,yaml-cpp)
> +       ("yaml" ,yaml)
> +       ("boost" ,boost)
> +       ("tinyxml" ,tinyxml)
> +       ("python-sphinx" ,python-sphinx)
> +       ("mesa" ,mesa)
> +       ("libxi" ,libxi)
> +       ("libxmu" ,libxmu)
> +       ("pkg-config" ,pkg-config)
> +       ("python" ,python)
> +       ;; https://github.com/imageworks/OpenColorIO/tree/master/ext:
> +       ;; ("python-setuptools" ,python-setuptools) python3.
> +       ("python-jinja2" ,python-jinja2)
> +       ("python-pygments" ,python-pygments)
> +       ("python-docutils" ,python-docutils)
> +       ("java-junit" ,java-junit)))
> +    (home-page "http://opencolorio.org/")
> +    (synopsis "color management framework for visual effects and animation")
> +    (description
> +     "OpenColorIO (OCIO) is a complete color management solution geared towards
> +motion picture production with an emphasis on visual effects and computer animation.
> +OCIO provides a straightforward and consistent user experience across all
> +supporting applications while allowing for sophisticated back-end configuration
> +options suitable for high-end production usage.  OCIO is compatible with the
> +Academy Color Encoding Specification (ACES) and is LUT-format agnostic,
> +supporting many popular formats.
> +OpenColorIO is natively supported in commercial applications like Katana, Mari,
> +Silhouette FX, and others coming soon.")
> +    (license license:bsd-3)))
> diff --git a/gnu/packages/patches/opencolorio-avoid-bundled-includes.patch b/gnu/packages/patches/opencolorio-avoid-bundled-includes.patch
> new file mode 100644
> index 0000000..e77f733
> --- /dev/null
> +++ b/gnu/packages/patches/opencolorio-avoid-bundled-includes.patch
> @@ -0,0 +1,72 @@
> +Do not use bundled applications from the source of OpenColorIO.
> +
> +--- OpenColorIO-1.0.9/docs/CMakeLists.txt.orig	2016-09-15 09:40:03.932004575 +0000
> ++++ OpenColorIO-1.0.9/docs/CMakeLists.txt	2016-09-15 09:41:04.420845978 +0000
> +@@ -1,67 +1,3 @@
> +-
> +-###############################################################################
> +-### External Doc Apps ###
> +-
> +-# setuptools
> +-# https://pypi.python.org/pypi/setuptools
> +-set(SETUPTOOLS_VERSION 1.1.6)
> +-ExternalProject_Add(setuptools
> +-    URL ${CMAKE_SOURCE_DIR}/ext/setuptools-${SETUPTOOLS_VERSION}.tar.gz
> +-    BUILD_IN_SOURCE 1
> +-    CONFIGURE_COMMAND ${CMAKE_COMMAND} -E make_directory ${EXTDIST_PYTHONPATH}
> +-    BUILD_COMMAND PYTHONPATH=${PYTHONPATH} ${PYTHON} setup.py build
> +-    INSTALL_COMMAND PYTHONPATH=${PYTHONPATH} ${PYTHON} setup.py install --prefix=${EXTDIST_ROOT}
> +-)
> +-
> +-# docutils
> +-# https://pypi.python.org/pypi/docutils
> +-set(DOCUTILS_VERSION 0.11)
> +-ExternalProject_Add(docutils
> +-    DEPENDS setuptools
> +-    URL ${CMAKE_SOURCE_DIR}/ext/docutils-${DOCUTILS_VERSION}.tar.gz
> +-    BUILD_IN_SOURCE 1
> +-    CONFIGURE_COMMAND ${CMAKE_COMMAND} -E make_directory ${EXTDIST_PYTHONPATH}
> +-    BUILD_COMMAND PYTHONPATH=${PYTHONPATH} ${PYTHON} setup.py build
> +-    INSTALL_COMMAND PYTHONPATH=${PYTHONPATH} ${PYTHON} setup.py install --prefix=${EXTDIST_ROOT}
> +-)
> +-
> +-# jinja2
> +-# https://pypi.python.org/pypi/Jinja2
> +-set(JINJA2_VERSION 2.7.1)
> +-ExternalProject_Add(Jinja2
> +-    DEPENDS setuptools
> +-    URL ${CMAKE_SOURCE_DIR}/ext/Jinja2-${JINJA2_VERSION}.tar.gz
> +-    BUILD_IN_SOURCE 1
> +-    CONFIGURE_COMMAND ${CMAKE_COMMAND} -E make_directory ${EXTDIST_PYTHONPATH}
> +-    BUILD_COMMAND PYTHONPATH=${PYTHONPATH} ${PYTHON} setup.py build
> +-    INSTALL_COMMAND PYTHONPATH=${PYTHONPATH} ${PYTHON} setup.py install --prefix=${EXTDIST_ROOT}
> +-)
> +-
> +-# Pygments
> +-# https://pypi.python.org/pypi/Pygments
> +-set(PYGMENTS_VERSION 1.6)
> +-ExternalProject_Add(Pygments
> +-    DEPENDS setuptools
> +-    URL ${CMAKE_SOURCE_DIR}/ext/Pygments-${PYGMENTS_VERSION}.tar.gz
> +-    BUILD_IN_SOURCE 1
> +-    CONFIGURE_COMMAND ${CMAKE_COMMAND} -E make_directory ${EXTDIST_PYTHONPATH}
> +-    BUILD_COMMAND PYTHONPATH=${PYTHONPATH} ${PYTHON} setup.py build
> +-    INSTALL_COMMAND PYTHONPATH=${PYTHONPATH} ${PYTHON} setup.py install --prefix=${EXTDIST_ROOT}
> +-)
> +-
> +-# sphinx
> +-# https://pypi.python.org/pypi/Sphinx
> +-set(SPHINX_VERSION 1.2b3)
> +-ExternalProject_Add(Sphinx
> +-    DEPENDS setuptools docutils Jinja2 Pygments
> +-    URL ${CMAKE_SOURCE_DIR}/ext/Sphinx-${SPHINX_VERSION}.tar.gz
> +-    PATCH_COMMAND patch -p1 < ${CMAKE_SOURCE_DIR}/ext/Sphinx-${SPHINX_VERSION}.patch
> +-    BUILD_IN_SOURCE 1
> +-    CONFIGURE_COMMAND ${CMAKE_COMMAND} -E make_directory ${EXTDIST_PYTHONPATH}
> +-    BUILD_COMMAND PYTHONPATH=${PYTHONPATH} ${PYTHON} setup.py build
> +-    INSTALL_COMMAND PYTHONPATH=${PYTHONPATH} ${PYTHON} setup.py install --prefix=${EXTDIST_ROOT} --install-scripts=${EXTDIST_ROOT}/bin
> +-)
> +-
> + ###############################################################################
> + ### Create Doc Targets ###
> + 

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH 001/303] gnu: Add opencolorio.
  2017-07-29 16:21   ` Christopher Allan Webber
@ 2017-07-29 16:48     ` ng0
  2017-08-04 16:02       ` Christopher Allan Webber
  0 siblings, 1 reply; 6+ messages in thread
From: ng0 @ 2017-07-29 16:48 UTC (permalink / raw)
  To: Christopher Allan Webber; +Cc: guix-devel

[-- Attachment #1: Type: text/plain, Size: 10544 bytes --]

Christopher Allan Webber transcribed 9.3K bytes:
> I have a friend who's a Blender user who said they'd like to see
> opencolorio support in the Blender package... this is an old patch,
> but maybe worth trying to get in again?

Was this directed specifically at myself, or just a bump for the thread?
I welcome any further work on this, but I'm not able to do this
currently or in a foreseeable future.

> ng0 writes:
> 
> > From: ng0 <ng0@we.make.ritual.n0.is>
> >
> > * gnu/packages/graphics (opencolorio): New variable.
> > * gnu/packages/patches/opencolorio-avoid-bundled-includes.patch
> > ---
> >  gnu/local.mk                                       |  1 +
> >  gnu/packages/graphics.scm                          | 73 ++++++++++++++++++++++
> >  .../opencolorio-avoid-bundled-includes.patch       | 72 +++++++++++++++++++++
> >  3 files changed, 146 insertions(+)
> >  create mode 100644 gnu/packages/patches/opencolorio-avoid-bundled-includes.patch
> >
> > diff --git a/gnu/local.mk b/gnu/local.mk
> > index a7006cb..bc52f1a 100644
> > --- a/gnu/local.mk
> > +++ b/gnu/local.mk
> > @@ -701,6 +701,7 @@ dist_patch_DATA =						\
> >    %D%/packages/patches/nvi-db4.patch				\
> >    %D%/packages/patches/ocaml-CVE-2015-8869.patch		\
> >    %D%/packages/patches/ocaml-findlib-make-install.patch	\
> > +  %D%/packages/patches/opencolorio-avoid-bundled-includes.patch \
> >    %D%/packages/patches/openexr-missing-samples.patch		\
> >    %D%/packages/patches/openjpeg-CVE-2015-6581.patch		\
> >    %D%/packages/patches/openjpeg-CVE-2016-5157.patch		\
> > diff --git a/gnu/packages/graphics.scm b/gnu/packages/graphics.scm
> > index d0df830..1f04da2 100644
> > --- a/gnu/packages/graphics.scm
> > +++ b/gnu/packages/graphics.scm
> > @@ -5,6 +5,7 @@
> >  ;;; Copyright © 2016 Ricardo Wurmus <rekado@elephly.net>
> >  ;;; Copyright © 2016 Efraim Flashner <efraim@flashner.co.il>
> >  ;;; Copyright © 2016 Andreas Enge <andreas@enge.fr>
> > +;;; Copyright © 2016 ng0 <ngillmann@runbox.com>
> >  ;;;
> >  ;;; This file is part of GNU Guix.
> >  ;;;
> > @@ -46,18 +47,21 @@
> >    #:use-module (gnu packages compression)
> >    #:use-module (gnu packages multiprecision)
> >    #:use-module (gnu packages boost)
> > +  #:use-module (gnu packages ghostscript)
> >    #:use-module (gnu packages gl)
> >    #:use-module (gnu packages glib)
> >    #:use-module (gnu packages graphviz)
> >    #:use-module (gnu packages gtk)
> >    #:use-module (gnu packages gnome)
> >    #:use-module (gnu packages image)
> > +  #:use-module (gnu packages java)
> >    #:use-module (gnu packages jemalloc)
> >    #:use-module (gnu packages photo)
> >    #:use-module (gnu packages python)
> >    #:use-module (gnu packages qt)
> >    #:use-module (gnu packages readline)
> >    #:use-module (gnu packages sdl)
> > +  #:use-module (gnu packages serialization)
> >    #:use-module (gnu packages video)
> >    #:use-module (gnu packages xml)
> >    #:use-module (gnu packages xorg))
> > @@ -510,3 +514,72 @@ and understanding different BRDFs (and other component functions).")
> >  It supports sub-pixel resolutions and anti-aliasing.  It is also library for
> >  rendering SVG graphics.")
> >      (license license:gpl2+)))
> > +
> > +(define-public opencolorio
> > +  (package
> > +    (name "opencolorio")
> > +    (version "1.0.9")
> > +    (source (origin
> > +              (method url-fetch)
> > +              (uri (string-append "https://github.com/imageworks/OpenColorIO/"
> > +                                  "archive/v" version ".tar.gz"))
> > +              (sha256
> > +               (base32
> > +                "0zzacmfs4k6lk4yd9v8f6p1616k7sm5wmhk0np93qx8m3ilixj17"))
> > +              (patches (search-patches
> > +                        "opencolorio-avoid-bundled-includes.patch"))
> > +              (file-name (string-append name "-" version ".tar.gz"))))
> > +    (build-system cmake-build-system)
> > +    (arguments
> > +     `(#:configure-flags
> > +       (list "-DOCIO_BUILD_JNIGLUE=OFF" "-DOCIO_BUILD_SHARED=ON"
> > +             "-DOCIO_BUILD_NUKE=OFF" ; Nuke is commerical software
> > +             "-DOCIO_BUILD_STATIC=OFF" "-DOCIO_STATIC_JNIGLUE=OFF"
> > +             "-DOCIO_BUILD_TRUELIGHT=OFF" ; Another external software
> > +             "-DUSE_EXTERNAL_LCMS=ON" "-DUSE_EXTERNAL_TINYXML=ON"
> > +             "-DUSE_EXTERNAL_YAML=ON" ;;"-DOCIO_BUILD_DOCS=ON"
> > +             "-DOCIO_BUILD_APPS=ON" ;;"-DOCIO_BUILD_PDF_DOCS=ON"
> > +             "-DOCIO_BUILD_PYGLUE=ON")
> > +       ;;"-DOCIO_BUILD_TESTS")))
> > +       #:phases
> > +       (modify-phases %standard-phases
> > +         (add-before 'configure 'fix-fixes
> > +           (lambda _
> > +             (substitute* "docs/CMakeLists.txt"
> > +               (("add_dependencies(doc Sphinx)") "")
> > +               (("add_dependencies(pdf latex)") "")))))))
> > +    (inputs
> > +     `(("lcms" ,lcms)
> > +       ("openimageio" ,openimageio)
> > +       ("glew" ,glew)
> > +       ("freeglut" ,freeglut)
> > +       ("python" ,python)
> > +       ("yaml-cpp" ,yaml-cpp)
> > +       ("yaml" ,yaml)
> > +       ("boost" ,boost)
> > +       ("tinyxml" ,tinyxml)
> > +       ("python-sphinx" ,python-sphinx)
> > +       ("mesa" ,mesa)
> > +       ("libxi" ,libxi)
> > +       ("libxmu" ,libxmu)
> > +       ("pkg-config" ,pkg-config)
> > +       ("python" ,python)
> > +       ;; https://github.com/imageworks/OpenColorIO/tree/master/ext:
> > +       ;; ("python-setuptools" ,python-setuptools) python3.
> > +       ("python-jinja2" ,python-jinja2)
> > +       ("python-pygments" ,python-pygments)
> > +       ("python-docutils" ,python-docutils)
> > +       ("java-junit" ,java-junit)))
> > +    (home-page "http://opencolorio.org/")
> > +    (synopsis "color management framework for visual effects and animation")
> > +    (description
> > +     "OpenColorIO (OCIO) is a complete color management solution geared towards
> > +motion picture production with an emphasis on visual effects and computer animation.
> > +OCIO provides a straightforward and consistent user experience across all
> > +supporting applications while allowing for sophisticated back-end configuration
> > +options suitable for high-end production usage.  OCIO is compatible with the
> > +Academy Color Encoding Specification (ACES) and is LUT-format agnostic,
> > +supporting many popular formats.
> > +OpenColorIO is natively supported in commercial applications like Katana, Mari,
> > +Silhouette FX, and others coming soon.")
> > +    (license license:bsd-3)))
> > diff --git a/gnu/packages/patches/opencolorio-avoid-bundled-includes.patch b/gnu/packages/patches/opencolorio-avoid-bundled-includes.patch
> > new file mode 100644
> > index 0000000..e77f733
> > --- /dev/null
> > +++ b/gnu/packages/patches/opencolorio-avoid-bundled-includes.patch
> > @@ -0,0 +1,72 @@
> > +Do not use bundled applications from the source of OpenColorIO.
> > +
> > +--- OpenColorIO-1.0.9/docs/CMakeLists.txt.orig	2016-09-15 09:40:03.932004575 +0000
> > ++++ OpenColorIO-1.0.9/docs/CMakeLists.txt	2016-09-15 09:41:04.420845978 +0000
> > +@@ -1,67 +1,3 @@
> > +-
> > +-###############################################################################
> > +-### External Doc Apps ###
> > +-
> > +-# setuptools
> > +-# https://pypi.python.org/pypi/setuptools
> > +-set(SETUPTOOLS_VERSION 1.1.6)
> > +-ExternalProject_Add(setuptools
> > +-    URL ${CMAKE_SOURCE_DIR}/ext/setuptools-${SETUPTOOLS_VERSION}.tar.gz
> > +-    BUILD_IN_SOURCE 1
> > +-    CONFIGURE_COMMAND ${CMAKE_COMMAND} -E make_directory ${EXTDIST_PYTHONPATH}
> > +-    BUILD_COMMAND PYTHONPATH=${PYTHONPATH} ${PYTHON} setup.py build
> > +-    INSTALL_COMMAND PYTHONPATH=${PYTHONPATH} ${PYTHON} setup.py install --prefix=${EXTDIST_ROOT}
> > +-)
> > +-
> > +-# docutils
> > +-# https://pypi.python.org/pypi/docutils
> > +-set(DOCUTILS_VERSION 0.11)
> > +-ExternalProject_Add(docutils
> > +-    DEPENDS setuptools
> > +-    URL ${CMAKE_SOURCE_DIR}/ext/docutils-${DOCUTILS_VERSION}.tar.gz
> > +-    BUILD_IN_SOURCE 1
> > +-    CONFIGURE_COMMAND ${CMAKE_COMMAND} -E make_directory ${EXTDIST_PYTHONPATH}
> > +-    BUILD_COMMAND PYTHONPATH=${PYTHONPATH} ${PYTHON} setup.py build
> > +-    INSTALL_COMMAND PYTHONPATH=${PYTHONPATH} ${PYTHON} setup.py install --prefix=${EXTDIST_ROOT}
> > +-)
> > +-
> > +-# jinja2
> > +-# https://pypi.python.org/pypi/Jinja2
> > +-set(JINJA2_VERSION 2.7.1)
> > +-ExternalProject_Add(Jinja2
> > +-    DEPENDS setuptools
> > +-    URL ${CMAKE_SOURCE_DIR}/ext/Jinja2-${JINJA2_VERSION}.tar.gz
> > +-    BUILD_IN_SOURCE 1
> > +-    CONFIGURE_COMMAND ${CMAKE_COMMAND} -E make_directory ${EXTDIST_PYTHONPATH}
> > +-    BUILD_COMMAND PYTHONPATH=${PYTHONPATH} ${PYTHON} setup.py build
> > +-    INSTALL_COMMAND PYTHONPATH=${PYTHONPATH} ${PYTHON} setup.py install --prefix=${EXTDIST_ROOT}
> > +-)
> > +-
> > +-# Pygments
> > +-# https://pypi.python.org/pypi/Pygments
> > +-set(PYGMENTS_VERSION 1.6)
> > +-ExternalProject_Add(Pygments
> > +-    DEPENDS setuptools
> > +-    URL ${CMAKE_SOURCE_DIR}/ext/Pygments-${PYGMENTS_VERSION}.tar.gz
> > +-    BUILD_IN_SOURCE 1
> > +-    CONFIGURE_COMMAND ${CMAKE_COMMAND} -E make_directory ${EXTDIST_PYTHONPATH}
> > +-    BUILD_COMMAND PYTHONPATH=${PYTHONPATH} ${PYTHON} setup.py build
> > +-    INSTALL_COMMAND PYTHONPATH=${PYTHONPATH} ${PYTHON} setup.py install --prefix=${EXTDIST_ROOT}
> > +-)
> > +-
> > +-# sphinx
> > +-# https://pypi.python.org/pypi/Sphinx
> > +-set(SPHINX_VERSION 1.2b3)
> > +-ExternalProject_Add(Sphinx
> > +-    DEPENDS setuptools docutils Jinja2 Pygments
> > +-    URL ${CMAKE_SOURCE_DIR}/ext/Sphinx-${SPHINX_VERSION}.tar.gz
> > +-    PATCH_COMMAND patch -p1 < ${CMAKE_SOURCE_DIR}/ext/Sphinx-${SPHINX_VERSION}.patch
> > +-    BUILD_IN_SOURCE 1
> > +-    CONFIGURE_COMMAND ${CMAKE_COMMAND} -E make_directory ${EXTDIST_PYTHONPATH}
> > +-    BUILD_COMMAND PYTHONPATH=${PYTHONPATH} ${PYTHON} setup.py build
> > +-    INSTALL_COMMAND PYTHONPATH=${PYTHONPATH} ${PYTHON} setup.py install --prefix=${EXTDIST_ROOT} --install-scripts=${EXTDIST_ROOT}/bin
> > +-)
> > +-
> > + ###############################################################################
> > + ### Create Doc Targets ###
> > + 
> 
> 

-- 
ng0
GnuPG: A88C8ADD129828D7EAC02E52E22F9BBFEE348588
GnuPG: https://n0is.noblogs.org/my-keys
https://www.infotropique.org https://krosos.org

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH 001/303] gnu: Add opencolorio.
  2017-07-29 16:48     ` ng0
@ 2017-08-04 16:02       ` Christopher Allan Webber
  2017-08-04 17:18         ` Leo Famulari
  0 siblings, 1 reply; 6+ messages in thread
From: Christopher Allan Webber @ 2017-08-04 16:02 UTC (permalink / raw)
  To: ng0; +Cc: guix-devel

ng0 writes:

> Christopher Allan Webber transcribed 9.3K bytes:
>> I have a friend who's a Blender user who said they'd like to see
>> opencolorio support in the Blender package... this is an old patch,
>> but maybe worth trying to get in again?
>
> Was this directed specifically at myself, or just a bump for the thread?
> I welcome any further work on this, but I'm not able to do this
> currently or in a foreseeable future.

Directed at whoever has the time :)

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH 001/303] gnu: Add opencolorio.
  2017-08-04 16:02       ` Christopher Allan Webber
@ 2017-08-04 17:18         ` Leo Famulari
  0 siblings, 0 replies; 6+ messages in thread
From: Leo Famulari @ 2017-08-04 17:18 UTC (permalink / raw)
  To: Christopher Allan Webber; +Cc: guix-devel

[-- Attachment #1: Type: text/plain, Size: 647 bytes --]

On Fri, Aug 04, 2017 at 11:02:07AM -0500, Christopher Allan Webber wrote:
> ng0 writes:
> 
> > Christopher Allan Webber transcribed 9.3K bytes:
> >> I have a friend who's a Blender user who said they'd like to see
> >> opencolorio support in the Blender package... this is an old patch,
> >> but maybe worth trying to get in again?
> >
> > Was this directed specifically at myself, or just a bump for the thread?
> > I welcome any further work on this, but I'm not able to do this
> > currently or in a foreseeable future.
> 
> Directed at whoever has the time :)

This package is a dependency of Krita, so it's certainly valuable!

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2017-08-04 18:56 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-03 12:16 opencolorio with unbundle patch, for lfam ng0
2016-10-03 12:16 ` [PATCH 001/303] gnu: Add opencolorio ng0
2017-07-29 16:21   ` Christopher Allan Webber
2017-07-29 16:48     ` ng0
2017-08-04 16:02       ` Christopher Allan Webber
2017-08-04 17:18         ` Leo Famulari

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.