diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /media-libs/opencolorio/opencolorio-1.0.9-r2.ebuild |
reinit the tree, so we can have metadata
Diffstat (limited to 'media-libs/opencolorio/opencolorio-1.0.9-r2.ebuild')
-rw-r--r-- | media-libs/opencolorio/opencolorio-1.0.9-r2.ebuild | 87 |
1 files changed, 87 insertions, 0 deletions
diff --git a/media-libs/opencolorio/opencolorio-1.0.9-r2.ebuild b/media-libs/opencolorio/opencolorio-1.0.9-r2.ebuild new file mode 100644 index 000000000000..1d80450f58a3 --- /dev/null +++ b/media-libs/opencolorio/opencolorio-1.0.9-r2.ebuild @@ -0,0 +1,87 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +# Compatibility with Python 3 is declared by upstream, but it is broken in fact, check on bump +PYTHON_COMPAT=( python2_7 ) + +inherit cmake-utils python-single-r1 vcs-snapshot + +DESCRIPTION="A color management framework for visual effects and animation" +HOMEPAGE="http://opencolorio.org/" +SRC_URI="https://github.com/imageworks/OpenColorIO/archive/v${PV}.tar.gz \ + -> ${P}.tar.gz + https://dev.gentoo.org/~pinkbyte/distfiles/patches/${P}-yaml-0.5-compat-v2.patch.bz2" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="doc opengl pdf python cpu_flags_x86_sse2 test" + +RDEPEND="opengl? ( + media-libs/lcms:2 + >=media-libs/openimageio-1.1.0 + media-libs/glew:0= + media-libs/freeglut + virtual/opengl + ) + python? ( ${PYTHON_DEPS} ) + >=dev-cpp/yaml-cpp-0.5 + dev-libs/tinyxml + " +DEPEND="${RDEPEND} + doc? ( + pdf? ( dev-python/sphinx[latex,${PYTHON_USEDEP}] ) + !pdf? ( dev-python/sphinx[${PYTHON_USEDEP}] ) + ) + " + +# Documentation building requires Python bindings building +REQUIRED_USE="doc? ( python ) python? ( ${PYTHON_REQUIRED_USE} )" + +# Restricting tests, bugs #439790 and #447908 +RESTRICT="test" + +PATCHES=( + "${FILESDIR}/${PN}-1.0.8-documentation-gen.patch" + "${FILESDIR}/${P}-remove-external-doc-utilities.patch" + "${WORKDIR}/${P}-yaml-0.5-compat-v2.patch" +) + +pkg_setup() { + use python && python-single-r1_pkg_setup +} + +src_prepare() { + cmake-utils_src_prepare + + use python && python_fix_shebang . +} + +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 + -DOCIO_BUILD_DOCS="$(usex doc)" + -DOCIO_BUILD_APPS="$(usex opengl)" + -DOCIO_BUILD_PDF_DOCS="$(usex pdf)" + -DOCIO_BUILD_PYGLUE="$(usex python)" + -DOCIO_USE_SSE="$(usex cpu_flags_x86_sse2)" + -DOCIO_BUILD_TESTS="$(usex test)" + ) + cmake-utils_src_configure +} |