summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Popov <pinkbyte@gentoo.org>2012-09-03 08:32:35 +0000
committerSergey Popov <pinkbyte@gentoo.org>2012-09-03 08:32:35 +0000
commit3bbee9cfbb964f024d6cdd4884c2f963bc5fd584 (patch)
treeffc9991872c19d1ff51f64b22678b7ade1082637 /media-gfx
parent[bump] dev-perl/Test-TCP-1.170.0 (diff)
downloadgentoo-2-3bbee9cfbb964f024d6cdd4884c2f963bc5fd584.tar.gz
gentoo-2-3bbee9cfbb964f024d6cdd4884c2f963bc5fd584.tar.bz2
gentoo-2-3bbee9cfbb964f024d6cdd4884c2f963bc5fd584.zip
New ebuild, fixes bug #431826
(Portage version: 2.2.0_alpha123/cvs/Linux x86_64)
Diffstat (limited to 'media-gfx')
-rw-r--r--media-gfx/opencolorio/ChangeLog11
-rw-r--r--media-gfx/opencolorio/Manifest6
-rw-r--r--media-gfx/opencolorio/files/opencolorio-documentation-gen.patch112
-rw-r--r--media-gfx/opencolorio/files/opencolorio-use-system-libs.patch18
-rw-r--r--media-gfx/opencolorio/metadata.xml9
-rw-r--r--media-gfx/opencolorio/opencolorio-1.0.7.ebuild72
6 files changed, 228 insertions, 0 deletions
diff --git a/media-gfx/opencolorio/ChangeLog b/media-gfx/opencolorio/ChangeLog
new file mode 100644
index 000000000000..ce64982ba161
--- /dev/null
+++ b/media-gfx/opencolorio/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for media-gfx/opencolorio
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/opencolorio/ChangeLog,v 1.1 2012/09/03 08:32:34 pinkbyte Exp $
+
+*opencolorio-1.0.7 (03 Sep 2012)
+
+ 03 Sep 2012; Sergey Popov <pinkbyte@gentoo.org> +opencolorio-1.0.7.ebuild,
+ +files/opencolorio-documentation-gen.patch,
+ +files/opencolorio-use-system-libs.patch, +metadata.xml:
+ New ebuild, fixes bug #431826
+
diff --git a/media-gfx/opencolorio/Manifest b/media-gfx/opencolorio/Manifest
new file mode 100644
index 000000000000..07c7b7c2a3df
--- /dev/null
+++ b/media-gfx/opencolorio/Manifest
@@ -0,0 +1,6 @@
+AUX opencolorio-documentation-gen.patch 4479 SHA256 887ae8dfdb06026c6836253c322725c7042eb14fbef5c0e601bb1b1ef8c43b62 SHA512 4bf0227de03095cb822d89ef449c69df45ab8104ce6becfe8aeb45597fd05980e1910acd2023bf9468d61adeea2d5ec410afbf24cf8f947c0dcd9bf46bea6f24 WHIRLPOOL cb85017075aadd96315474838cb93f3cd7573912c668dee1cec0291209ed039cda687954104e12c0e70438f799d1c0b99bd652e495fc6684a49f48be1140ac07
+AUX opencolorio-use-system-libs.patch 984 SHA256 423f24c9d913e052cbcb863dcda9d9eb6166473a6ba133d04692b1bd8149a721 SHA512 8c98d02ebb29c8e085f96dbe59c79ae2bb57de19b73c3b06f6e374181e2bca624d20ad0a5d386cbc68e3f81e7427f43c0867ed7c74e86916d47f9c0fa63c4513 WHIRLPOOL 7a3bb0099347e048d324dfe19099dbc6184405a45d5d98ad3434546f58f6ccb32eabebb9fd7c7bfdb352c8b55d058e8051627326bb96d1f42034cfa547d1b4be
+DIST opencolorio-1.0.7.tar.gz 11844185 SHA256 54c6516a89dc9287f1bcc47f27a91fb608477295a4ba6106b45f34e89506d7d5 SHA512 34a9a92aa0cabb449e14fbca32ece1ba411b8d8154cb459e5a88d63bd0b43ffd9b6eeda324339cbd0e8f51b086a34235a984030647b766342c41dc1ec633a70a WHIRLPOOL 6701f1446c1540e2400982f1cd1961803c9e9bde50bd34bff46fd819366d1226defa0334fe1610d3b3ee4d30a04530bdecad89363fd480ea025391382b0e4537
+EBUILD opencolorio-1.0.7.ebuild 1846 SHA256 47ce4f98c0d8244b2177bc2be5a4832c8bd2c3d80510e9df772d946b1fcafe54 SHA512 b3eb551b1a2cf65440ac7fa14a201ccb5fc6b74389f8d9ffc04395728e49126d6dd40c5b6fe5ece50567edf985efa5b227fd762898f293f2e68cfa7b165cb16a WHIRLPOOL 636d0faa3d1e8a77253cbeb0ac7f1667d532dd3220248a9b8a1bcd13b300c9ff31ac3d6473b4d17e05eb991e9f72cab816a059fb1e08a210426ca35549f47613
+MISC ChangeLog 371 SHA256 c6b85be3132f1a5937b52736b62ebc7a4ee2f7ca96c8c75cd7430c5036bf41dd SHA512 c123b08078a0a10ba5cdb2a3726c3d5572800f219800d3150b4ca75582c982fed928d72eea5172c56fa3d5df04e53d79a85b2d2dd1255874143104141d8f450e WHIRLPOOL 2e823243b9ec429cb185fe2129d5ad69263a8e05f438ee2ca96f671f3b956b9a53d332127960296f4b385c8c8897ebd87e8f2e6bdf7443a5208284c0039500ab
+MISC metadata.xml 438 SHA256 4e3bd3147d7af2d93cfae292dfb96451ba39e9a36fd110ff630f66c9cf065ec5 SHA512 cb8ae7cf634e17b800cf9992bd210d9d4f97a3449f4073aae4b9662536e575971836e50feed65975554a17ed08a65c620392511dec7d032d7c6883e1435fcf19 WHIRLPOOL c761ae14a8caece0bb6ccf0158dff6e65ee50f5b567a7ddb914d051cca4fea1e7b9173b7dc69002806f033e4c2168ef0f47a2a09880111d970faf227c4929eee
diff --git a/media-gfx/opencolorio/files/opencolorio-documentation-gen.patch b/media-gfx/opencolorio/files/opencolorio-documentation-gen.patch
new file mode 100644
index 000000000000..283282232e9b
--- /dev/null
+++ b/media-gfx/opencolorio/files/opencolorio-documentation-gen.patch
@@ -0,0 +1,112 @@
+--- docs/CMakeLists.txt.orig 2012-08-18 17:21:23.833556790 +0400
++++ docs/CMakeLists.txt 2012-08-18 17:22:44.968559366 +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,15 @@
+ 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)
+
+ 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 +52,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 +61,6 @@
+ 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()
diff --git a/media-gfx/opencolorio/files/opencolorio-use-system-libs.patch b/media-gfx/opencolorio/files/opencolorio-use-system-libs.patch
new file mode 100644
index 000000000000..10a931551258
--- /dev/null
+++ b/media-gfx/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-gfx/opencolorio/metadata.xml b/media-gfx/opencolorio/metadata.xml
new file mode 100644
index 000000000000..6e27fe9a4988
--- /dev/null
+++ b/media-gfx/opencolorio/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <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>
+</pkgmetadata>
diff --git a/media-gfx/opencolorio/opencolorio-1.0.7.ebuild b/media-gfx/opencolorio/opencolorio-1.0.7.ebuild
new file mode 100644
index 000000000000..2a0d07f33c17
--- /dev/null
+++ b/media-gfx/opencolorio/opencolorio-1.0.7.ebuild
@@ -0,0 +1,72 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/opencolorio/opencolorio-1.0.7.ebuild,v 1.1 2012/09/03 08:32:34 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 python sse2 test"
+
+RDEPEND="opengl? (
+ media-libs/lcms:2
+ media-libs/openimageio
+ media-libs/glew
+ media-libs/freeglut
+ virtual/opengl
+ )
+ dev-cpp/yaml-cpp
+ dev-libs/tinyxml
+ "
+DEPEND="${RDEPEND}
+ doc? ( dev-python/sphinx )
+ "
+
+# Documentation building requires Python bindings building
+REQUIRED_USE="doc? ( python )"
+
+pkg_setup() {
+ if use python; then
+ python_set_active_version 2
+ python_pkg_setup
+ fi
+}
+
+src_prepare() {
+ epatch "${FILESDIR}"/"${PN}"-use-system-libs.patch
+ epatch "${FILESDIR}"/"${PN}"-documentation-gen.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
+ # - Documentation PDF does not build properly ("automagic dependency on pdflatex")
+ # 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 python OCIO_BUILD_PYGLUE)
+ $(cmake-utils_use sse2 OCIO_USE_SSE)
+ $(cmake-utils_use test OCIO_BUILD_TESTS)
+ )
+ cmake-utils_src_configure
+}