diff options
author | Sergey Popov <pinkbyte@gentoo.org> | 2013-01-16 05:47:02 +0000 |
---|---|---|
committer | Sergey Popov <pinkbyte@gentoo.org> | 2013-01-16 05:47:02 +0000 |
commit | a55a3ec2284253e20647cd598d41f7ad2225fa27 (patch) | |
tree | 65ca5e708efe948802d8ce1e935f613c762b6d53 /media-libs/opencolorio | |
parent | Version bump for >=dev-libs/libcdio-0.90 compability. (diff) | |
download | gentoo-2-a55a3ec2284253e20647cd598d41f7ad2225fa27.tar.gz gentoo-2-a55a3ec2284253e20647cd598d41f7ad2225fa27.tar.bz2 gentoo-2-a55a3ec2284253e20647cd598d41f7ad2225fa27.zip |
Move from media-gfx/opencolorio to media-libs/opencolorio
(Portage version: 2.2.0_alpha153/cvs/Linux x86_64, RepoMan options: --force, unsigned Manifest commit)
Diffstat (limited to 'media-libs/opencolorio')
8 files changed, 411 insertions, 0 deletions
diff --git a/media-libs/opencolorio/ChangeLog b/media-libs/opencolorio/ChangeLog new file mode 100644 index 000000000000..8944e2086a9d --- /dev/null +++ b/media-libs/opencolorio/ChangeLog @@ -0,0 +1,14 @@ +# ChangeLog for media-libs/opencolorio +# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/media-libs/opencolorio/ChangeLog,v 1.1 2013/01/16 05:47:02 pinkbyte Exp $ + +*opencolorio-1.0.8 (16 Jan 2013) +*opencolorio-1.0.7 (16 Jan 2013) + + 16 Jan 2013; Sergey Popov <pinkbyte@gentoo.org> +opencolorio-1.0.7.ebuild, + +files/opencolorio-1.0.7-documentation-gen.patch, +opencolorio-1.0.8.ebuild, + +files/opencolorio-1.0.8-documentation-gen.patch, + +files/opencolorio-openimageio.patch, + +files/opencolorio-use-system-libs.patch, +metadata.xml: + Move from media-gfx/opencolorio to media-libs/opencolorio + diff --git a/media-libs/opencolorio/files/opencolorio-1.0.7-documentation-gen.patch b/media-libs/opencolorio/files/opencolorio-1.0.7-documentation-gen.patch new file mode 100644 index 000000000000..172d50d1d6dd --- /dev/null +++ b/media-libs/opencolorio/files/opencolorio-1.0.7-documentation-gen.patch @@ -0,0 +1,116 @@ +--- docs/CMakeLists.txt.orig 2012-11-26 11:05:55.000000000 +0400 ++++ docs/CMakeLists.txt 2012-11-26 11:07:42.622459004 +0400 +@@ -1,62 +1,3 @@ +- +-############################################################################### +-### External Doc Apps ### +- +-# setuptools +-set(SETUPTOOLS_VERSION 0.6c11) +-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 +-set(DOCUTILS_VERSION 0.7) +-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 +-set(JINJA2_VERSION 2.5.5) +-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 +-set(PYGMENTS_VERSION 1.3.1) +-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 +-set(SPHINX_VERSION f52b631f501a) # 1.1pre +-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 ### + +@@ -81,7 +22,7 @@ + ExtractRstCPP(${CMAKE_SOURCE_DIR}/export/OpenColorIO/OpenColorTypes.h developers/api/OpenColorTypes.rst) + + add_custom_target(doc ALL +- COMMAND PYTHONPATH=${PYTHONPATH} ${EXTDIST_BINPATH}/sphinx-build -b html . ${CMAKE_CURRENT_BINARY_DIR}/build-html ++ COMMAND sphinx-build -b html . ${CMAKE_CURRENT_BINARY_DIR}/build-html + DEPENDS + OpenColorIO + PyOpenColorIO +@@ -93,19 +34,17 @@ + COMMENT "Building html docs" + SOURCES ${DOCFILES}) + +-# note: ExternalProject will not build when added to a add_custom_target this +-# works around this problem. This seems to be fixed in the cmake ^HEAD +-add_dependencies(doc Sphinx) +- + install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/build-html/ +- DESTINATION ${CMAKE_INSTALL_PREFIX}/share/doc/OpenColorIO/html ++ DESTINATION ${CMAKE_INSTALL_PREFIX}/share/doc/$ENV{P}/html + PATTERN .git EXCLUDE) + ++if(OCIO_BUILD_PDF_DOCS) ++ + find_package(LATEX) + if(PDFLATEX_COMPILER) + + add_custom_target(latex +- COMMAND PYTHONPATH=${PYTHONPATH} ${EXTDIST_BINPATH}/sphinx-build -b latex . ${CMAKE_CURRENT_BINARY_DIR}/build-latex ++ COMMAND PYTHONPATH= sphinx-build -b latex . ${CMAKE_CURRENT_BINARY_DIR}/build-latex + DEPENDS + OpenColorIO + ${CMAKE_BINARY_DIR}/docs/conf.py +@@ -115,7 +54,6 @@ + ${RSTDOC_OUTPUT} + COMMENT "Building latex doc" + SOURCES ${DOCFILES}) +- add_dependencies(latex Sphinx) + + add_custom_target(pdf ALL + COMMAND ${PDFLATEX_COMPILER} OpenColorIO.tex +@@ -125,6 +63,8 @@ + add_dependencies(pdf latex) + + install(FILES ${CMAKE_CURRENT_BINARY_DIR}/build-latex/OpenColorIO.pdf +- DESTINATION ${CMAKE_INSTALL_PREFIX}/share/doc/OpenColorIO/) ++ DESTINATION ${CMAKE_INSTALL_PREFIX}/share/doc/$ENV{P}) + + endif() ++ ++endif() diff --git a/media-libs/opencolorio/files/opencolorio-1.0.8-documentation-gen.patch b/media-libs/opencolorio/files/opencolorio-1.0.8-documentation-gen.patch new file mode 100644 index 000000000000..f5b3b7b7a5fe --- /dev/null +++ b/media-libs/opencolorio/files/opencolorio-1.0.8-documentation-gen.patch @@ -0,0 +1,54 @@ +--- docs/CMakeLists.txt.orig 2013-01-08 03:19:23.649162615 +0400 ++++ docs/CMakeLists.txt 2013-01-08 03:22:29.647329174 +0400 +@@ -81,7 +81,7 @@ + ExtractRstCPP(${CMAKE_SOURCE_DIR}/export/OpenColorIO/OpenColorTypes.h developers/api/OpenColorTypes.rst) + + add_custom_target(doc ALL +- COMMAND PYTHONPATH=${PYTHONPATH} ${EXTDIST_BINPATH}/sphinx-build -b html . ${CMAKE_CURRENT_BINARY_DIR}/build-html ++ COMMAND sphinx-build -b html . ${CMAKE_CURRENT_BINARY_DIR}/build-html + DEPENDS + OpenColorIO + PyOpenColorIO +@@ -93,20 +93,18 @@ + COMMENT "Building html docs" + SOURCES ${DOCFILES}) + +-# note: ExternalProject will not build when added to a add_custom_target this +-# works around this problem. This seems to be fixed in the cmake ^HEAD +-add_dependencies(doc Sphinx) +- + install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/build-html/ +- DESTINATION ${CMAKE_INSTALL_PREFIX}/share/doc/OpenColorIO/html ++ DESTINATION ${CMAKE_INSTALL_PREFIX}/share/doc/$ENV{P}/html + PATTERN .* EXCLUDE + ) + ++if(OCIO_BUILD_PDF_DOCS) ++ + find_package(LATEX) + if(PDFLATEX_COMPILER) + + add_custom_target(latex +- COMMAND PYTHONPATH=${PYTHONPATH} ${EXTDIST_BINPATH}/sphinx-build -b latex . ${CMAKE_CURRENT_BINARY_DIR}/build-latex ++ COMMAND sphinx-build -b latex . ${CMAKE_CURRENT_BINARY_DIR}/build-latex + DEPENDS + OpenColorIO + ${CMAKE_BINARY_DIR}/docs/conf.py +@@ -116,7 +114,6 @@ + ${RSTDOC_OUTPUT} + COMMENT "Building latex doc" + SOURCES ${DOCFILES}) +- add_dependencies(latex Sphinx) + + add_custom_target(pdf ALL + COMMAND ${PDFLATEX_COMPILER} OpenColorIO.tex +@@ -126,6 +123,8 @@ + add_dependencies(pdf latex) + + install(FILES ${CMAKE_CURRENT_BINARY_DIR}/build-latex/OpenColorIO.pdf +- DESTINATION ${CMAKE_INSTALL_PREFIX}/share/doc/OpenColorIO/) ++ DESTINATION ${CMAKE_INSTALL_PREFIX}/share/doc/$ENV{P}/) + + endif() ++ ++endif() diff --git a/media-libs/opencolorio/files/opencolorio-openimageio.patch b/media-libs/opencolorio/files/opencolorio-openimageio.patch new file mode 100644 index 000000000000..89b7042d47f8 --- /dev/null +++ b/media-libs/opencolorio/files/opencolorio-openimageio.patch @@ -0,0 +1,38 @@ +http://github.com/cjwills/OpenColorIO/commit/36c59cb788adc20219f6086bccd893531d0cec43 + +--- src/apps/ocioconvert/main.cpp ++++ src/apps/ocioconvert/main.cpp +@@ -35,7 +35,9 @@ + + #include <OpenImageIO/imageio.h> + #include <OpenImageIO/typedesc.h> ++#if defined OIIO_VERSION && (OIIO_VERSION<10100) + namespace OIIO = OIIO_NAMESPACE; ++#endif + + #include "argparse.h" + +--- src/apps/ociodisplay/main.cpp ++++ src/apps/ociodisplay/main.cpp +@@ -53,7 +53,9 @@ + + #include <OpenImageIO/imageio.h> + #include <OpenImageIO/typedesc.h> ++#if defined OIIO_VERSION && (OIIO_VERSION<10100) + namespace OIIO = OIIO_NAMESPACE; ++#endif + + GLint g_win = 0; + int g_winWidth = 0; +--- src/apps/ociolutimage/main.cpp ++++ src/apps/ociolutimage/main.cpp +@@ -32,7 +32,9 @@ + + #include <OpenImageIO/imageio.h> + #include <OpenImageIO/typedesc.h> ++#if defined OIIO_VERSION && (OIIO_VERSION<10100) + namespace OIIO = OIIO_NAMESPACE; ++#endif + + #include "argparse.h" + diff --git a/media-libs/opencolorio/files/opencolorio-use-system-libs.patch b/media-libs/opencolorio/files/opencolorio-use-system-libs.patch new file mode 100644 index 000000000000..10a931551258 --- /dev/null +++ b/media-libs/opencolorio/files/opencolorio-use-system-libs.patch @@ -0,0 +1,18 @@ +--- CMakeLists.txt.orig 2012-08-18 14:47:17.449263203 +0400 ++++ CMakeLists.txt 2012-08-18 14:47:34.102263732 +0400 +@@ -28,11 +28,10 @@ + option(OCIO_USE_BOOST_PTR "Set to ON to enable boost shared_ptr (necessary when tr1 is not available)" OFF) + + option(OCIO_PYGLUE_RESPECT_ABI "If ON, the Python module install path includes Python UCS version" OFF) +-if(UNIX AND NOT APPLE) +- option(USE_EXTERNAL_YAML "Use system installed yaml-cpp library." OFF) +- option(USE_EXTERNAL_TINYXML "Use system installed tinyxml library." OFF) +- option(USE_EXTERNAL_LCMS "Use system install lcms2 library." OFF) +-endif() ++ ++option(USE_EXTERNAL_YAML "Use system installed yaml-cpp library." ON) ++option(USE_EXTERNAL_TINYXML "Use system installed tinyxml library." ON) ++option(USE_EXTERNAL_LCMS "Use system install lcms2 library." ON) + + # This does not include the SOVERSION override, on purpose, so that the + # OCIO_VERSION value will be an accurate reflection of the underlying library version. diff --git a/media-libs/opencolorio/metadata.xml b/media-libs/opencolorio/metadata.xml new file mode 100644 index 000000000000..316ba2c52478 --- /dev/null +++ b/media-libs/opencolorio/metadata.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>graphics</herd> + <maintainer> + <email>pinkbyte@gentoo.org</email> + <name>Sergey Popov</name> + </maintainer> + <longdescription lang="en">OpenColorIO (OCIO) is a complete color management solution geared towards motion picture production with an emphasis on visual effects and computer animation.</longdescription> + <use> + <flag name="pdf">Install extra documentation in PDF format</flag> + </use> +</pkgmetadata> diff --git a/media-libs/opencolorio/opencolorio-1.0.7.ebuild b/media-libs/opencolorio/opencolorio-1.0.7.ebuild new file mode 100644 index 000000000000..39746437fb1d --- /dev/null +++ b/media-libs/opencolorio/opencolorio-1.0.7.ebuild @@ -0,0 +1,80 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-libs/opencolorio/opencolorio-1.0.7.ebuild,v 1.1 2013/01/16 05:47:02 pinkbyte Exp $ + +EAPI=4 + +PYTHON_DEPEND="python? 2" + +inherit cmake-utils python vcs-snapshot + +DESCRIPTION="A color management framework for visual effects and animation" +HOMEPAGE="http://opencolorio.org/" +SRC_URI="https://github.com/imageworks/OpenColorIO/tarball/v${PV} \ + -> ${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="doc opengl pdf python sse2 test" + +RDEPEND="opengl? ( + media-libs/lcms:2 + >=media-libs/openimageio-1.1.0 + media-libs/glew + media-libs/freeglut + virtual/opengl + ) + dev-cpp/yaml-cpp + dev-libs/tinyxml + " +DEPEND="${RDEPEND} + doc? ( + pdf? ( dev-python/sphinx[latex] ) + !pdf? ( dev-python/sphinx ) + ) + " + +# Documentation building requires Python bindings building +REQUIRED_USE="doc? ( python )" + +# Restricting tests, bugs #439790 and #447908 +RESTRICT="test" + +pkg_setup() { + if use python; then + python_set_active_version 2 + python_pkg_setup + fi +} + +src_prepare() { + epatch \ + "${FILESDIR}"/${PN}-use-system-libs.patch \ + "${FILESDIR}"/${P}-documentation-gen.patch \ + "${FILESDIR}"/${PN}-openimageio.patch +} + +src_configure() { + # Missing features: + # - Truelight and Nuke are not in portage for now, so their support are disabled + # - Java bindings was not tested, so disabled + # Notes: + # - OpenImageIO is required for building ociodisplay and ocioconvert (USE opengl) + # - OpenGL, GLUT and GLEW is required for building ociodisplay (USE opengl) + local mycmakeargs=( + -DOCIO_BUILD_JNIGLUE=OFF + -DOCIO_BUILD_NUKE=OFF + -DOCIO_BUILD_SHARED=ON + -DOCIO_BUILD_STATIC=OFF + -DOCIO_STATIC_JNIGLUE=OFF + -DOCIO_BUILD_TRUELIGHT=OFF + $(cmake-utils_use doc OCIO_BUILD_DOCS) + $(cmake-utils_use opengl OCIO_BUILD_APPS) + $(cmake-utils_use pdf OCIO_BUILD_PDF_DOCS) + $(cmake-utils_use python OCIO_BUILD_PYGLUE) + $(cmake-utils_use sse2 OCIO_USE_SSE) + $(cmake-utils_use test OCIO_BUILD_TESTS) + ) + cmake-utils_src_configure +} diff --git a/media-libs/opencolorio/opencolorio-1.0.8.ebuild b/media-libs/opencolorio/opencolorio-1.0.8.ebuild new file mode 100644 index 000000000000..c08bb2d7acd7 --- /dev/null +++ b/media-libs/opencolorio/opencolorio-1.0.8.ebuild @@ -0,0 +1,78 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-libs/opencolorio/opencolorio-1.0.8.ebuild,v 1.1 2013/01/16 05:47:02 pinkbyte Exp $ + +EAPI=5 + +PYTHON_DEPEND="python? 2" + +inherit cmake-utils python vcs-snapshot + +DESCRIPTION="A color management framework for visual effects and animation" +HOMEPAGE="http://opencolorio.org/" +SRC_URI="https://github.com/imageworks/OpenColorIO/tarball/v${PV} \ + -> ${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="doc opengl pdf python sse2 test" + +RDEPEND="opengl? ( + media-libs/lcms:2 + >=media-libs/openimageio-1.1.0 + media-libs/glew + media-libs/freeglut + virtual/opengl + ) + dev-cpp/yaml-cpp + dev-libs/tinyxml + " +DEPEND="${RDEPEND} + doc? ( + pdf? ( dev-python/sphinx[latex] ) + !pdf? ( dev-python/sphinx ) + ) + " + +# Documentation building requires Python bindings building +REQUIRED_USE="doc? ( python )" + +# Restricting tests, bugs #439790 and #447908 +RESTRICT="test" + +PATCHES=( "${FILESDIR}/${P}-documentation-gen.patch" ) + +pkg_setup() { + if use python; then + python_set_active_version 2 + python_pkg_setup + fi +} + +src_configure() { + # Missing features: + # - Truelight and Nuke are not in portage for now, so their support are disabled + # - Java bindings was not tested, so disabled + # Notes: + # - OpenImageIO is required for building ociodisplay and ocioconvert (USE opengl) + # - OpenGL, GLUT and GLEW is required for building ociodisplay (USE opengl) + local mycmakeargs=( + -DOCIO_BUILD_JNIGLUE=OFF + -DOCIO_BUILD_NUKE=OFF + -DOCIO_BUILD_SHARED=ON + -DOCIO_BUILD_STATIC=OFF + -DOCIO_STATIC_JNIGLUE=OFF + -DOCIO_BUILD_TRUELIGHT=OFF + -DUSE_EXTERNAL_LCMS=ON + -DUSE_EXTERNAL_TINYXML=ON + -DUSE_EXTERNAL_YAML=ON + $(cmake-utils_use doc OCIO_BUILD_DOCS) + $(cmake-utils_use opengl OCIO_BUILD_APPS) + $(cmake-utils_use pdf OCIO_BUILD_PDF_DOCS) + $(cmake-utils_use python OCIO_BUILD_PYGLUE) + $(cmake-utils_use sse2 OCIO_USE_SSE) + $(cmake-utils_use test OCIO_BUILD_TESTS) + ) + cmake-utils_src_configure +} |