From 7cdb980ed83dd83ebc0ff31a13c5e967f67278fb Mon Sep 17 00:00:00 2001 From: Alfred Wingate Date: Fri, 25 Dec 2020 03:24:55 +0200 Subject: [PATCH] media-libs/opencolorio: add opencolorio Package-Manager: Portage-3.0.9, Repoman-3.0.2 --- media-libs/opencolorio/Manifest | 1 + ....0_libraries_to_lib64_instead_of_lib.patch | 14 +++ media-libs/opencolorio/metadata.xml | 12 +++ .../opencolorio-2.0.0_pre20201211.ebuild | 87 +++++++++++++++++++ .../opencolorio/opencolorio-9999.ebuild | 87 +++++++++++++++++++ 5 files changed, 201 insertions(+) create mode 100644 media-libs/opencolorio/Manifest create mode 100644 media-libs/opencolorio/files/opencolorio-2.0.0_libraries_to_lib64_instead_of_lib.patch create mode 100644 media-libs/opencolorio/metadata.xml create mode 100644 media-libs/opencolorio/opencolorio-2.0.0_pre20201211.ebuild create mode 100644 media-libs/opencolorio/opencolorio-9999.ebuild diff --git a/media-libs/opencolorio/Manifest b/media-libs/opencolorio/Manifest new file mode 100644 index 0000000..3909e90 --- /dev/null +++ b/media-libs/opencolorio/Manifest @@ -0,0 +1 @@ +DIST opencolorio-2.0.0_pre20201211.tar.gz 9810813 BLAKE2B fe3d5be0f00eeffef0123d0969867f945a89e7887b8adeef6d1f859d57ddf9cee04b19cd799525944653b1440b0a519a1ed450f4e81e978d675c5b530b1efa5b SHA512 a3ecb91736ea8826afb3ac8f734e6eda63165895af33975ea92c0c5c77bae0be2db57afd0f8f423297d4450ce9cda51e5ab9cdd8737836429ea868cb362107b6 diff --git a/media-libs/opencolorio/files/opencolorio-2.0.0_libraries_to_lib64_instead_of_lib.patch b/media-libs/opencolorio/files/opencolorio-2.0.0_libraries_to_lib64_instead_of_lib.patch new file mode 100644 index 0000000..3a527a0 --- /dev/null +++ b/media-libs/opencolorio/files/opencolorio-2.0.0_libraries_to_lib64_instead_of_lib.patch @@ -0,0 +1,14 @@ +diff --git a/src/OpenColorIO/CMakeLists.txt b/src/OpenColorIO/CMakeLists.txt +index 107e494e..e014ac31 100755 +--- a/src/OpenColorIO/CMakeLists.txt ++++ b/src/OpenColorIO/CMakeLists.txt +@@ -287,7 +287,7 @@ if(MSVC AND BUILD_SHARED_LIBS) + endif() + + install(TARGETS OpenColorIO +- LIBRARY DESTINATION lib ++ LIBRARY DESTINATION lib64 + RUNTIME DESTINATION bin +- ARCHIVE DESTINATION lib ++ ARCHIVE DESTINATION lib64 + ) diff --git a/media-libs/opencolorio/metadata.xml b/media-libs/opencolorio/metadata.xml new file mode 100644 index 0000000..3669d74 --- /dev/null +++ b/media-libs/opencolorio/metadata.xml @@ -0,0 +1,12 @@ + + + + + parona@protonmail.com + Alfred Wingate + + OpenColorIO (OCIO) is a complete color management solution geared towards motion picture production with an emphasis on visual effects and computer animation. + + AcademySoftwareFoundation/OpenColorIO + + diff --git a/media-libs/opencolorio/opencolorio-2.0.0_pre20201211.ebuild b/media-libs/opencolorio/opencolorio-2.0.0_pre20201211.ebuild new file mode 100644 index 0000000..2bd9fea --- /dev/null +++ b/media-libs/opencolorio/opencolorio-2.0.0_pre20201211.ebuild @@ -0,0 +1,87 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit cmake + +DESCRIPTION="A color management framework for visual effects and animation" +HOMEPAGE="https://opencolorio.org/" + +if [[ "${PV}" == "9999" ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/AcademySoftwareFoundation/OpenColorIO.git" +else + COMMIT="55cbcf18b5d1bcb6e79f70b956f3edd2f7c0cf75" # 11.12.2020 + SRC_URI=" + https://github.com/AcademySoftwareFoundation/OpenColorIO/archive/"${COMMIT}".tar.gz -> "${P}".tar.gz + " + KEYWORDS="~amd64" + S="${WORKDIR}/OpenColorIO-"${COMMIT}"" +fi + +# TODO +# doc, Python and Java bindings + +LICENSE="BSD" +SLOT="0" +IUSE="cpu_flags_x86_sse2 opengl test" +#REQUIRED_USE=" +# doc? ( python ) +# python? ( ${PYTHON_REQUIRED_USE} )" + +RDEPEND=" + >=dev-cpp/yaml-cpp-0.5 + dev-libs/tinyxml + dev-python/pybind11 + opengl? ( + media-libs/lcms:2 + media-libs/openimageio + media-libs/glew:= + media-libs/freeglut + virtual/opengl + ) + media-libs/pystring +" + +DEPEND="${RDEPEND}" +BDEPEND=" + virtual/pkgconfig +" + +# No doc for now, as sphinx-tabs isnt in the main repo but in guru and due sphinx-press-theme not being done yet. +# + python bindings not working properly so they are omited for now +# doc? ( +# app-doc/doxygen +# $(python_gen_cond_dep ' +# dev-python/six[${PYTHON_USEDEP}] +# dev-python/testresources[${PYTHON_USEDEP}] +# dev-python/recommonmark[${PYTHON_USEDEP}] +# dev-python/sphinx[${PYTHON_USEDEP}] +# dev-python/sphinx-press-theme[${PYTHON_USEDEP}] +# dev-python/sphinx-tabs[${PYTHON_USEDEP}] +# dev-python/breathe[${PYTHON_USEDEP}] +# ') +# ) +#" + +CMAKE_BUILD_TYPE="Release" + +PATCHES=( + "${FILESDIR}/opencolorio-2.0.0_libraries_to_lib64_instead_of_lib.patch" +) + +src_configure() { + local mycmakeargs=( + -DBUILD_SHARED_LIBS=ON + -DOCIO_BUILD_APPS=$(usex opengl) +# -DOCIO_BUILD_DOCS=$(usex doc) +# -DOCIO_BUILD_PYTHON=$(usex python) + -DOCIO_BUILD_TESTS=$(usex test) + -DOCIO_BUILD_GPU_TESTS=$(usex test) + -DOCIO_USE_SSE=$(usex cpu_flags_x86_sse2) + -DOCIO_INSTALL_EXT_PACKAGES=NONE + + ) + cmake_src_configure +} diff --git a/media-libs/opencolorio/opencolorio-9999.ebuild b/media-libs/opencolorio/opencolorio-9999.ebuild new file mode 100644 index 0000000..2bd9fea --- /dev/null +++ b/media-libs/opencolorio/opencolorio-9999.ebuild @@ -0,0 +1,87 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit cmake + +DESCRIPTION="A color management framework for visual effects and animation" +HOMEPAGE="https://opencolorio.org/" + +if [[ "${PV}" == "9999" ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/AcademySoftwareFoundation/OpenColorIO.git" +else + COMMIT="55cbcf18b5d1bcb6e79f70b956f3edd2f7c0cf75" # 11.12.2020 + SRC_URI=" + https://github.com/AcademySoftwareFoundation/OpenColorIO/archive/"${COMMIT}".tar.gz -> "${P}".tar.gz + " + KEYWORDS="~amd64" + S="${WORKDIR}/OpenColorIO-"${COMMIT}"" +fi + +# TODO +# doc, Python and Java bindings + +LICENSE="BSD" +SLOT="0" +IUSE="cpu_flags_x86_sse2 opengl test" +#REQUIRED_USE=" +# doc? ( python ) +# python? ( ${PYTHON_REQUIRED_USE} )" + +RDEPEND=" + >=dev-cpp/yaml-cpp-0.5 + dev-libs/tinyxml + dev-python/pybind11 + opengl? ( + media-libs/lcms:2 + media-libs/openimageio + media-libs/glew:= + media-libs/freeglut + virtual/opengl + ) + media-libs/pystring +" + +DEPEND="${RDEPEND}" +BDEPEND=" + virtual/pkgconfig +" + +# No doc for now, as sphinx-tabs isnt in the main repo but in guru and due sphinx-press-theme not being done yet. +# + python bindings not working properly so they are omited for now +# doc? ( +# app-doc/doxygen +# $(python_gen_cond_dep ' +# dev-python/six[${PYTHON_USEDEP}] +# dev-python/testresources[${PYTHON_USEDEP}] +# dev-python/recommonmark[${PYTHON_USEDEP}] +# dev-python/sphinx[${PYTHON_USEDEP}] +# dev-python/sphinx-press-theme[${PYTHON_USEDEP}] +# dev-python/sphinx-tabs[${PYTHON_USEDEP}] +# dev-python/breathe[${PYTHON_USEDEP}] +# ') +# ) +#" + +CMAKE_BUILD_TYPE="Release" + +PATCHES=( + "${FILESDIR}/opencolorio-2.0.0_libraries_to_lib64_instead_of_lib.patch" +) + +src_configure() { + local mycmakeargs=( + -DBUILD_SHARED_LIBS=ON + -DOCIO_BUILD_APPS=$(usex opengl) +# -DOCIO_BUILD_DOCS=$(usex doc) +# -DOCIO_BUILD_PYTHON=$(usex python) + -DOCIO_BUILD_TESTS=$(usex test) + -DOCIO_BUILD_GPU_TESTS=$(usex test) + -DOCIO_USE_SSE=$(usex cpu_flags_x86_sse2) + -DOCIO_INSTALL_EXT_PACKAGES=NONE + + ) + cmake_src_configure +}