public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Andreas Sturmlechner" <asturm@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/opencolorio/
Date: Sun, 14 May 2023 08:19:49 +0000 (UTC)	[thread overview]
Message-ID: <1684052373.380f267de261ec9c5dc2589db667ed4df4b8b23e.asturm@gentoo> (raw)

commit:     380f267de261ec9c5dc2589db667ed4df4b8b23e
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Sun May 14 08:08:40 2023 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Sun May 14 08:19:33 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=380f267d

media-libs/opencolorio: add 2.1.3

Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 media-libs/opencolorio/Manifest                 |   1 +
 media-libs/opencolorio/opencolorio-2.1.3.ebuild | 103 ++++++++++++++++++++++++
 2 files changed, 104 insertions(+)

diff --git a/media-libs/opencolorio/Manifest b/media-libs/opencolorio/Manifest
index fbccb7669120..292f02f616b2 100644
--- a/media-libs/opencolorio/Manifest
+++ b/media-libs/opencolorio/Manifest
@@ -1,2 +1,3 @@
 DIST opencolorio-2.1.1.tar.gz 11013141 BLAKE2B ffece30b9f37acd10665a716d519c9807f6398e5e59baedd194376a1424a6d875781c027d998567b2a241da6388a780c94d95237b0b4d64b836cc5ccccd4383c SHA512 86585ec860d460b158f24efb82f202deced7ce96a6bfefd42f39cad9c112add68cca6935f383f5d718c07fe1c121d8ed8b0d2069321f1dafb8ce68b49bc75194
 DIST opencolorio-2.1.2.tar.gz 11021014 BLAKE2B 2612c31c88a86255b3b0389241649aaaf3754f065eec57e8438d3b594d9f8fcac81c71fe06cf0acf0680e40d0fbe019ad16a34a1371a7a3a57a21017f5efb463 SHA512 594e808fb1c175d5b14eb540be0dfb6f41cd37b5bf7df8c2d24d44dfe4986643ea68e52d0282eb3b25283489789001a57a201de1eecc1560fc9461780c7da353
+DIST opencolorio-2.1.3.tar.gz 11024701 BLAKE2B bcd1eb6a74260f451e49ef40e729bfc4c354ab255d96c261fbf865c586f285fe876ed54b05276f3b6b25ece4fd261672fe1dd519041ffad77d7c78efc8cf161d SHA512 b26fcfa3ea12ab6e4b019a13ce79ebcfd215c674acb348f2d9f85f749b2a5beccd395ed1cc9954e4b3cb83a160b24a8d7d81994ac1d9ea8cfe074b81d6b8a061

diff --git a/media-libs/opencolorio/opencolorio-2.1.3.ebuild b/media-libs/opencolorio/opencolorio-2.1.3.ebuild
new file mode 100644
index 000000000000..67af7cfb5758
--- /dev/null
+++ b/media-libs/opencolorio/opencolorio-2.1.3.ebuild
@@ -0,0 +1,103 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{10..11} )
+
+inherit cmake flag-o-matic python-single-r1
+
+DESCRIPTION="Color management framework for visual effects and animation"
+HOMEPAGE="https://opencolorio.org https://github.com/AcademySoftwareFoundation/OpenColorIO"
+SRC_URI="https://github.com/AcademySoftwareFoundation/OpenColorIO/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
+S="${WORKDIR}/OpenColorIO-${PV}"
+
+LICENSE="BSD"
+# TODO: drop .1 on next SONAME bump (2.1 -> 2.2?) as we needed to nudge it
+# to force rebuild of consumers due to changing to openexr 3 changing API.
+SLOT="0/$(ver_cut 1-2).1"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86"
+IUSE="cpu_flags_x86_sse2 doc opengl python static-libs test"
+REQUIRED_USE="
+	doc? ( python )
+	python? ( ${PYTHON_REQUIRED_USE} )
+"
+
+# Restricting tests, bugs #439790 and #447908
+RESTRICT="test"
+
+# Works with older OIIO but need to force a version w/ OpenEXR 3
+RDEPEND="
+	dev-cpp/pystring
+	dev-python/pybind11
+	>=dev-cpp/yaml-cpp-0.7.0:=
+	>=dev-libs/imath-3.1.4-r2:=
+	dev-libs/tinyxml
+	opengl? (
+		media-libs/lcms:2
+		>=media-libs/openimageio-2.3.12.0-r3:=
+		media-libs/glew:=
+		media-libs/freeglut
+		virtual/opengl
+	)
+	python? ( ${PYTHON_DEPS} )
+"
+DEPEND="${RDEPEND}"
+BDEPEND="
+	virtual/pkgconfig
+	doc? (
+		$(python_gen_cond_dep '
+			dev-python/sphinx[${PYTHON_USEDEP}]
+			dev-python/testresources[${PYTHON_USEDEP}]
+		')
+	)
+"
+
+PATCHES=(
+	"${FILESDIR}"/${PN}-2.1.1-gcc12.patch
+	"${FILESDIR}"/${PN}-2.1.2-musl-strtol.patch
+)
+
+pkg_setup() {
+	use python && python-single-r1_pkg_setup
+}
+
+src_prepare() {
+	cmake_src_prepare
+
+	sed -i -e "s|LIBRARY DESTINATION lib|LIBRARY DESTINATION $(get_libdir)|g" {,src/bindings/python/,src/OpenColorIO/,src/libutils/oiiohelpers/,src/libutils/oglapphelpers/}CMakeLists.txt || die
+	sed -i -e "s|ARCHIVE DESTINATION lib|ARCHIVE DESTINATION $(get_libdir)|g" {,src/bindings/python/,src/OpenColorIO/,src/libutils/oiiohelpers/,src/libutils/oglapphelpers/}CMakeLists.txt || die
+
+	# Avoid automagic test dependency on OSL, bug #833933
+	# Can cause problems during e.g. OpenEXR unsplitting migration
+	cmake_run_in tests cmake_comment_add_subdirectory osl
+}
+
+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_USE_OPENEXR_HALF=OFF
+		-DOCIO_BUILD_STATIC=$(usex static-libs)
+		-DOCIO_BUILD_DOCS=$(usex doc)
+		-DOCIO_BUILD_APPS=$(usex opengl)
+		-DOCIO_BUILD_PYTHON=$(usex python)
+		-DOCIO_PYTHON_VERSION="${EPYTHON/python/}"
+		-DOCIO_BUILD_JAVA=OFF
+		-DOCIO_USE_SSE=$(usex cpu_flags_x86_sse2)
+		-DOCIO_BUILD_TESTS=$(usex test)
+		-DOCIO_BUILD_GPU_TESTS=$(usex test)
+		-DOCIO_BUILD_FROZEN_DOCS=$(usex doc)
+		-DOCIO_INSTALL_EXT_PACKAGES=NONE
+	)
+
+	# We need this to work around asserts that can trigger even in proper use cases.
+	# See https://github.com/AcademySoftwareFoundation/OpenColorIO/issues/1235
+	append-flags -DNDEBUG
+
+	cmake_src_configure
+}


             reply	other threads:[~2023-05-14  8:19 UTC|newest]

Thread overview: 78+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-05-14  8:19 Andreas Sturmlechner [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-03-14  6:21 [gentoo-commits] repo/gentoo:master commit in: media-libs/opencolorio/ Sam James
2025-03-11  4:30 Eli Schwartz
2025-02-19 20:07 Michał Górny
2025-02-12 19:25 Arthur Zamarin
2025-01-05 20:35 Sam James
2024-05-28 12:35 Sam James
2024-03-18 16:35 Sam James
2023-10-29 20:52 Sam James
2023-10-28 21:46 Sam James
2023-10-28 21:46 Sam James
2023-10-27  5:15 Sam James
2023-10-27  3:20 Sam James
2023-10-27  2:59 [gentoo-commits] repo/gentoo:master commit in: media-libs/OpenColorIO/ Sam James
2023-10-27  2:34 Sam James
2023-09-26 20:48 [gentoo-commits] repo/gentoo:master commit in: media-libs/opencolorio/ Sam James
2023-09-26 20:48 Sam James
2023-06-10 21:12 Andreas Sturmlechner
2023-06-10 21:11 Sam James
2023-06-10 20:47 Andreas Sturmlechner
2023-06-10 20:47 Andreas Sturmlechner
2023-04-09 12:35 Arthur Zamarin
2022-12-03  8:37 Joonas Niilola
2022-08-27 11:38 Sam James
2022-06-06  1:20 Sam James
2022-02-28 23:58 Sam James
2022-02-28  7:06 Yixun Lan
2022-02-28  5:21 Sam James
2022-02-26 23:06 Sam James
2022-02-20  4:49 Sam James
2022-02-20  4:45 Sam James
2022-02-18  2:14 Sam James
2022-02-15 22:39 Sam James
2022-01-09 15:48 Andreas Sturmlechner
2022-01-02  0:31 Sam James
2021-12-17  2:52 Sam James
2021-12-17  2:52 Sam James
2021-11-02 22:54 Sam James
2021-11-01 13:07 Sam James
2021-10-31  5:53 Sam James
2021-10-31  5:49 Sam James
2021-10-22  2:47 Sam James
2021-10-17  3:04 Sam James
2021-10-11  3:16 Sam James
2021-09-19  3:30 Sam James
2021-09-19  3:25 Sam James
2021-09-19  3:09 Sam James
2021-09-19  3:09 Sam James
2021-09-19  3:09 Sam James
2021-08-30  2:58 Sam James
2021-07-20 11:04 Joonas Niilola
2021-07-20 11:00 Joonas Niilola
2021-07-20 11:00 Joonas Niilola
2021-06-12  5:18 Sam James
2021-06-10  0:51 Sam James
2021-06-07  8:33 Joonas Niilola
2021-05-31 23:19 Sam James
2021-02-22  7:12 Sam James
2020-12-23 21:56 Sam James
2020-12-21 18:07 Sam James
2020-11-17 19:17 Agostino Sarubbo
2020-11-17  0:02 Sam James
2020-10-10 13:50 Sergei Trofimovich
2020-10-10  4:34 Sam James
2020-06-06  0:02 Andreas Sturmlechner
2020-04-13  9:21 Andreas Sturmlechner
2020-02-11 19:50 Agostino Sarubbo
2020-02-11 19:43 Agostino Sarubbo
2020-02-09 16:29 Michał Górny
2020-01-30 21:26 Michał Górny
2019-05-19 17:54 Andreas Sturmlechner
2018-05-25 23:58 Thomas Deutschmann
2018-05-24 14:31 Agostino Sarubbo
2017-09-23 11:14 David Seifert
2017-04-26 14:35 Sergey Popov
2017-04-23 11:29 David Seifert
2016-06-02  8:26 Sergey Popov
2016-05-30 20:16 Sergey Popov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1684052373.380f267de261ec9c5dc2589db667ed4df4b8b23e.asturm@gentoo \
    --to=asturm@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox