From 2e8abb8c82f14dd064991a1afd337b2f022b37f6 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Fri, 30 Aug 2024 12:00:55 +0100 Subject: gentoo auto-resync : 30:08:2024 - 12:00:55 --- media-libs/Manifest.gz | Bin 69631 -> 69644 bytes media-libs/ksanecore-common/Manifest | 2 +- .../ksanecore-common-24.05.2.ebuild | 2 +- media-libs/ksanecore/Manifest | 5 +- media-libs/ksanecore/ksanecore-23.08.5-r1.ebuild | 32 ----- media-libs/ksanecore/ksanecore-23.08.5-r2.ebuild | 2 +- media-libs/ksanecore/metadata.xml | 3 - media-libs/openexr/Manifest | 4 +- media-libs/openexr/openexr-3.2.3-r1.ebuild | 146 --------------------- media-libs/openexr/openexr-3.2.3-r2.ebuild | 146 +++++++++++++++++++++ media-libs/openexr/openexr-3.2.4-r1.ebuild | 146 --------------------- media-libs/openexr/openexr-3.2.4-r2.ebuild | 146 +++++++++++++++++++++ 12 files changed, 299 insertions(+), 335 deletions(-) delete mode 100644 media-libs/ksanecore/ksanecore-23.08.5-r1.ebuild delete mode 100644 media-libs/openexr/openexr-3.2.3-r1.ebuild create mode 100644 media-libs/openexr/openexr-3.2.3-r2.ebuild delete mode 100644 media-libs/openexr/openexr-3.2.4-r1.ebuild create mode 100644 media-libs/openexr/openexr-3.2.4-r2.ebuild (limited to 'media-libs') diff --git a/media-libs/Manifest.gz b/media-libs/Manifest.gz index 1101f6e63421..18e2129e482a 100644 Binary files a/media-libs/Manifest.gz and b/media-libs/Manifest.gz differ diff --git a/media-libs/ksanecore-common/Manifest b/media-libs/ksanecore-common/Manifest index 29dd4b78e95a..950e87b83788 100644 --- a/media-libs/ksanecore-common/Manifest +++ b/media-libs/ksanecore-common/Manifest @@ -1,5 +1,5 @@ DIST ksanecore-24.05.2.tar.xz 51080 BLAKE2B c57152bbff1c3eb4c6de3f20809d9e3a7ec5c81c981823e3750142006f1c6ac0f7bfc5913042edfcaa6a8e2f2210c8dc8963097d60dffc153ffb9078e3ca13bd SHA512 862c5997f0e10e6b3382127fe1d5efee37621212f2ec70a5346bf914cbe6ff9d1476cd05b119e0784222c8a195787f30b4454aaeeeb9535d0d52362a7ba0a718 DIST ksanecore-24.08.0.tar.xz 51200 BLAKE2B 787692d39738ec2bd93988399238f8e3d08ad753bde702e8fd24d6b9c6db3f24f1b061336b0a917b9e421b03f23fa46bef664dae24b38acfc483d68801e303ba SHA512 7e5f144811110cdb18f06ef163ba6ddf3bf270eefe654f6c53d1f2e91a28d2729f034c691a8439206a0514839edcff5d75d69e7ca4d6b191b981c931ed5c06e2 -EBUILD ksanecore-common-24.05.2.ebuild 365 BLAKE2B c9121754649aed2dacefad0902427dd2fff07851cb7c9aa143cd4e01a62960aaaaa58eff5de377b02fd09766f4a6e111fb9417eefece70a73dcc83e88d0b5f14 SHA512 07042022b3b066c42e8efb60f4bf5589154f701755289845e212764de9ff109bd92eb13a5fbf5bbeededadd06425b57211ef637c165256aac3b40d0612764f44 +EBUILD ksanecore-common-24.05.2.ebuild 364 BLAKE2B 6209d72b32e2703bf688bdaf6aed825917a8053799a7be4b7bef48503677eca63a8113510fbe7d4aad4f55a05bb85e294150ac8bc21a0ffd80f883ffd037a426 SHA512 6b8575f6d6ff49ef2b618b4982ca080b33806e88612bfbdb0322f98cf7007986db6b5420078f118cbc1f91f0c28a253022ff3b65c983da44021eeac7032ffc05 EBUILD ksanecore-common-24.08.0.ebuild 367 BLAKE2B d39c69d74afa352fc23f0db2c9123d54002eba818303f3f747ea0d06e47c0d43e403fa0f3a8a0e8e0fadff37384b5111952933811c2b6db3f9e88e0b482ad714 SHA512 b7433e152a74e2f79a80b8e00453ecca83241b2bda2147615325ac716221d4ebffe374430c2ced2d9e9c99ebabad064b78905a4ab5d144d917e183d009496067 MISC metadata.xml 381 BLAKE2B 42cf8662e7a405016cbf593e43771e2a354116ed82825cf42ba21c41d9dcd22dfc868fcc1837ae47b3c13b229908a7a1db8b1fe636b53418664f7835cabe4c35 SHA512 1d3caf0c29b67b79a29c02db8625ee17306f6c114b48599b432c5ced09d51aa02339e75d1552b56fa86ad4ec781c44cc909f8f7cccc0eadc2043ce3103604c38 diff --git a/media-libs/ksanecore-common/ksanecore-common-24.05.2.ebuild b/media-libs/ksanecore-common/ksanecore-common-24.05.2.ebuild index 22c00602c74d..d598909ef7f0 100644 --- a/media-libs/ksanecore-common/ksanecore-common-24.05.2.ebuild +++ b/media-libs/ksanecore-common/ksanecore-common-24.05.2.ebuild @@ -10,7 +10,7 @@ inherit ecm-common gear.kde.org LICENSE="GPL-2" SLOT="0" -KEYWORDS="amd64 arm64 ~ppc64 ~riscv ~x86" +KEYWORDS="amd64 arm64 ~ppc64 ~riscv x86" RDEPEND=" !libraries/ksanecore - - Disable components colliding with KF6, depend on KF6 components instead - diff --git a/media-libs/openexr/Manifest b/media-libs/openexr/Manifest index 5662db42265c..16a72dd8f4be 100644 --- a/media-libs/openexr/Manifest +++ b/media-libs/openexr/Manifest @@ -16,6 +16,6 @@ EBUILD openexr-3.1.11.ebuild 2065 BLAKE2B e0c0fdcdd04715324b708c5096fa9e5a6d71a9 EBUILD openexr-3.1.12.ebuild 2068 BLAKE2B 152d93c66f05c1ec9b83f9631e9984f0a5a4f39abcd7063b19756d4f0f8e9aef1d91301cd95018feca57c763558faedfe78ba07bec5f7517cf3c8c07925fbc19 SHA512 a24d130a7dd6207ae1da95cf2a04fbfbeb1188179a2f9e1c838d2a58ea502a4b0398bdbb2d9666f25926c424f24e6b940c7ec1daeabe2c7439398ce4571fcec2 EBUILD openexr-3.1.5-r1.ebuild 2067 BLAKE2B 5def6ac36362ea8d8810bd2056df16ca57e658e83eb2a0ae6846cc322ae0be41f8c76dad1498947ed8b44fad9fac46a598e1cf173395c1a9946719f2359743b2 SHA512 9b7f62c74c723fe18766db36e4f75623818c8d2697d23f24c742061280a373fef973cc5478bd8a27492aa82249f189bdcc4c395854199d910e54d91033755174 EBUILD openexr-3.1.7.ebuild 1924 BLAKE2B 1ae6aeb5a4693d21d798b6260fb2b485044dcfa33820f328f81993f7d3fa6a7ba98c12f183dda3b58fc8d99c3785c5e5d15acdab03d6fe2c9b19bbe76905e5cc SHA512 df60600d657768a811a5b62cb3f77c0fca177ea595b2895c7e62d797fc147f8ef0551512b67ef80d0b0ece156de143bf36e7dd20dbc88f276f879d95fb8e58e8 -EBUILD openexr-3.2.3-r1.ebuild 3574 BLAKE2B 6fa156942b70f95f96351e116019a5d29dc1090ca3e37c57a7ebf34f250d1e3dd4da05dfad3bb1aab6f37430b9c18699f5b86d5fbb64c563e5c88951a4897808 SHA512 fbb278658606442bfdb214cf13c6b779af2a4aa5dcc424c6302587ddef484324e670145482ee36b722a3c0ffaad05883b4ed36c09b1075f5d30057ca30f18305 -EBUILD openexr-3.2.4-r1.ebuild 3577 BLAKE2B 6276b5d70f57a4cadc8a2a3ca28adee9abb97fce743a46b6ae21bc9b1c25554020721abb995aa46295df911acb2a100e315cf4fe6ca020d6eeffbae5235d4ea4 SHA512 af257822a7b0490e68bb34889d73f28fcf1cda998b07772a85dd4c3fa3b970ef70eff5cb7af518721e0b13f608cbb0e1161dfabefa3ec17f2729c6a56ed86a12 +EBUILD openexr-3.2.3-r2.ebuild 3582 BLAKE2B 9bfe1420f27548dce47a3fe3ba7b98694fcaf07b541277bc4542954ed2416550335fa9d1c6c3dc3c89ee016b6e9da9943ebe9a1b258c91bd25537bdc07a2b971 SHA512 1d76eb16ec764bc579008a3568d7292fa317f8753ed439856c126232e268f7b2b72334686f3b4e8b6298ff6e5e4fa0fa9e4873d5854b4aadd14dac9be47ffab2 +EBUILD openexr-3.2.4-r2.ebuild 3585 BLAKE2B 40207d48af048e261cffcd22b866cedbd6906daad9ca92eba0fe0b7d828737038190eab682e06a5699757fa5ee5d9adb2f41b16f80c26059fde54091fe8827da SHA512 2807147451e7c08004f94cc2b6e711f0640568c1f96e87a1e37e123ee0209aba496bfe932f014d20f2ecc243ff90cb9127c55322e12470f3d9fb6132d1afa340 MISC metadata.xml 798 BLAKE2B d780a0ead28144e6031fedeed720d1cd79bfa8ab54a1f9d2a99324ac6db4948cf25ebf73abd630d7e697b8578ef5b6442679ce05d1949784fb8a17ed2a6fb9a1 SHA512 5c9d837a72b41c0d8463ffadd639fde0c9dc620abf4b51ef7718efed5d94a12a336d85f10d65e2fbffd3d4c59fe12a09e71f42f68d081917f4d7f1aba24de893 diff --git a/media-libs/openexr/openexr-3.2.3-r1.ebuild b/media-libs/openexr/openexr-3.2.3-r1.ebuild deleted file mode 100644 index 7b883cfee438..000000000000 --- a/media-libs/openexr/openexr-3.2.3-r1.ebuild +++ /dev/null @@ -1,146 +0,0 @@ -# Copyright 1999-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit cmake flag-o-matic - -MY_PN=OpenEXR - -DESCRIPTION="ILM's OpenEXR high dynamic-range image file format libraries" -HOMEPAGE="https://openexr.com/" -SRC_URI=" - https://github.com/AcademySoftwareFoundation/openexr/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz - test? ( - utils? ( - https://github.com/AcademySoftwareFoundation/openexr-images/archive/refs/tags/v1.0.tar.gz - -> openexr-images-1.0.tar.gz - ) - ) -" - -LICENSE="BSD" -SLOT="0/31" # based on SONAME -# -ppc -sparc because broken on big endian, bug #818424 -KEYWORDS="amd64 ~arm arm64 ~loong -ppc ~ppc64 ~riscv -sparc x86 ~amd64-linux ~x86-linux ~x64-macos" - -IUSE="cpu_flags_x86_avx doc examples large-stack utils test threads" -REQUIRED_USE="doc? ( utils )" -RESTRICT="!test? ( test )" - -RDEPEND=" - app-arch/libdeflate:= - >=dev-libs/imath-3.1.6:= -" -DEPEND="${RDEPEND}" -BDEPEND=" - virtual/pkgconfig - doc? ( sys-apps/help2man ) -" - -PATCHES=( - "${FILESDIR}/${PN}-3.2.1-bintests-iff-utils.patch" -) - -DOCS=( CHANGES.md GOVERNANCE.md PATENTS README.md SECURITY.md ) - -src_prepare() { - # Fix path for testsuite - sed -e "s:/var/tmp/:${T}:" \ - -i "${S}"/src/test/${MY_PN}Test/tmpDir.h || die "failed to set temp path for tests" - - sed -e "s:if(INSTALL_DOCS):if(OPENEXR_INSTALL_DOCS):" \ - -i docs/CMakeLists.txt || die - - cmake_src_prepare - - if use test && use utils; then - IMAGES=( - Beachball/multipart.0001.exr - Beachball/singlepart.0001.exr - Chromaticities/Rec709.exr - Chromaticities/Rec709_YC.exr - Chromaticities/XYZ.exr - Chromaticities/XYZ_YC.exr - LuminanceChroma/Flowers.exr - LuminanceChroma/Garden.exr - MultiResolution/ColorCodedLevels.exr - MultiResolution/WavyLinesCube.exr - MultiResolution/WavyLinesLatLong.exr - MultiView/Adjuster.exr - TestImages/GammaChart.exr - TestImages/GrayRampsHorizontal.exr - v2/LeftView/Balls.exr - v2/Stereo/Trunks.exr - ) - - mkdir -p "${BUILD_DIR}/src/test/bin" || die - - for image in "${IMAGES[@]}"; do - mkdir -p "${BUILD_DIR}/src/test/bin/$(dirname "${image}")" || die - cp -a "${WORKDIR}/openexr-images-1.0/${image}" "${BUILD_DIR}/src/test/bin/${image}" || die - done - fi - -} - -src_configure() { - if use x86; then - replace-cpu-flags native i686 - fi - - local mycmakeargs=( - -DOPENEXR_CXX_STANDARD="17" - - -DBUILD_SHARED_LIBS="yes" - -DBUILD_TESTING="$(usex test)" - -DBUILD_WEBSITE="no" - - -DOPENEXR_BUILD_EXAMPLES="$(usex examples)" - -DOPENEXR_BUILD_PYTHON="no" - -DOPENEXR_BUILD_TOOLS="$(usex utils)" - -DOPENEXR_ENABLE_LARGE_STACK="$(usex large-stack)" - -DOPENEXR_ENABLE_THREADING="$(usex threads)" - - -DOPENEXR_INSTALL="yes" - -DOPENEXR_INSTALL_DOCS="$(usex doc)" - -DOPENEXR_INSTALL_PKG_CONFIG="yes" - -DOPENEXR_INSTALL_TOOLS="$(usex utils)" - - -DOPENEXR_USE_CLANG_TIDY="no" # don't look for clang-tidy - - -DOPENEXR_FORCE_INTERNAL_DEFLATE="no" - -DOPENEXR_FORCE_INTERNAL_IMATH="no" - ) - if use test; then - # OPENEXR_RUN_FUZZ_TESTS depends on BUILD_TESTING, see - # - https://bugs.gentoo.org/925128 - # - https://openexr.com/en/latest/install.html#component-options - - # NOTE: the fuzz tests are very slow - mycmakeargs+=( -DOPENEXR_RUN_FUZZ_TESTS="ON" ) - fi - - cmake_src_configure -} - -src_test() { - local CMAKE_SKIP_TESTS=() - - use arm64 && CMAKE_SKIP_TESTS+=( - # bug #922247 - 'OpenEXRCore.testDWAACompression' - 'OpenEXRCore.testDWABCompression' - ) - use x86 && CMAKE_SKIP_TESTS+=( - '^OpenEXR.testDwaLookups$' - ) - - cmake_src_test -} - -src_install() { - use examples && docompress -x "/usr/share/doc/${PF}/examples" - - cmake_src_install -} diff --git a/media-libs/openexr/openexr-3.2.3-r2.ebuild b/media-libs/openexr/openexr-3.2.3-r2.ebuild new file mode 100644 index 000000000000..574d441feb13 --- /dev/null +++ b/media-libs/openexr/openexr-3.2.3-r2.ebuild @@ -0,0 +1,146 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake flag-o-matic + +MY_PN=OpenEXR + +DESCRIPTION="ILM's OpenEXR high dynamic-range image file format libraries" +HOMEPAGE="https://openexr.com/" +SRC_URI=" + https://github.com/AcademySoftwareFoundation/openexr/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz + test? ( + utils? ( + https://github.com/AcademySoftwareFoundation/openexr-images/archive/refs/tags/v1.0.tar.gz + -> openexr-images-1.0.tar.gz + ) + ) +" + +LICENSE="BSD" +SLOT="0/31" # based on SONAME +# -ppc -sparc because broken on big endian, bug #818424 +KEYWORDS="amd64 ~arm arm64 ~loong -ppc ~ppc64 ~riscv -sparc x86 ~amd64-linux ~x86-linux ~x64-macos" + +IUSE="cpu_flags_x86_avx doc examples large-stack utils test threads" +REQUIRED_USE="doc? ( utils )" +RESTRICT="!test? ( test )" + +RDEPEND=" + app-arch/libdeflate:=[zlib(+)] + >=dev-libs/imath-3.1.6:= +" +DEPEND="${RDEPEND}" +BDEPEND=" + virtual/pkgconfig + doc? ( sys-apps/help2man ) +" + +PATCHES=( + "${FILESDIR}/${PN}-3.2.1-bintests-iff-utils.patch" +) + +DOCS=( CHANGES.md GOVERNANCE.md PATENTS README.md SECURITY.md ) + +src_prepare() { + # Fix path for testsuite + sed -e "s:/var/tmp/:${T}:" \ + -i "${S}"/src/test/${MY_PN}Test/tmpDir.h || die "failed to set temp path for tests" + + sed -e "s:if(INSTALL_DOCS):if(OPENEXR_INSTALL_DOCS):" \ + -i docs/CMakeLists.txt || die + + cmake_src_prepare + + if use test && use utils; then + IMAGES=( + Beachball/multipart.0001.exr + Beachball/singlepart.0001.exr + Chromaticities/Rec709.exr + Chromaticities/Rec709_YC.exr + Chromaticities/XYZ.exr + Chromaticities/XYZ_YC.exr + LuminanceChroma/Flowers.exr + LuminanceChroma/Garden.exr + MultiResolution/ColorCodedLevels.exr + MultiResolution/WavyLinesCube.exr + MultiResolution/WavyLinesLatLong.exr + MultiView/Adjuster.exr + TestImages/GammaChart.exr + TestImages/GrayRampsHorizontal.exr + v2/LeftView/Balls.exr + v2/Stereo/Trunks.exr + ) + + mkdir -p "${BUILD_DIR}/src/test/bin" || die + + for image in "${IMAGES[@]}"; do + mkdir -p "${BUILD_DIR}/src/test/bin/$(dirname "${image}")" || die + cp -a "${WORKDIR}/openexr-images-1.0/${image}" "${BUILD_DIR}/src/test/bin/${image}" || die + done + fi + +} + +src_configure() { + if use x86; then + replace-cpu-flags native i686 + fi + + local mycmakeargs=( + -DOPENEXR_CXX_STANDARD="17" + + -DBUILD_SHARED_LIBS="yes" + -DBUILD_TESTING="$(usex test)" + -DBUILD_WEBSITE="no" + + -DOPENEXR_BUILD_EXAMPLES="$(usex examples)" + -DOPENEXR_BUILD_PYTHON="no" + -DOPENEXR_BUILD_TOOLS="$(usex utils)" + -DOPENEXR_ENABLE_LARGE_STACK="$(usex large-stack)" + -DOPENEXR_ENABLE_THREADING="$(usex threads)" + + -DOPENEXR_INSTALL="yes" + -DOPENEXR_INSTALL_DOCS="$(usex doc)" + -DOPENEXR_INSTALL_PKG_CONFIG="yes" + -DOPENEXR_INSTALL_TOOLS="$(usex utils)" + + -DOPENEXR_USE_CLANG_TIDY="no" # don't look for clang-tidy + + -DOPENEXR_FORCE_INTERNAL_DEFLATE="no" + -DOPENEXR_FORCE_INTERNAL_IMATH="no" + ) + if use test; then + # OPENEXR_RUN_FUZZ_TESTS depends on BUILD_TESTING, see + # - https://bugs.gentoo.org/925128 + # - https://openexr.com/en/latest/install.html#component-options + + # NOTE: the fuzz tests are very slow + mycmakeargs+=( -DOPENEXR_RUN_FUZZ_TESTS="ON" ) + fi + + cmake_src_configure +} + +src_test() { + local CMAKE_SKIP_TESTS=() + + use arm64 && CMAKE_SKIP_TESTS+=( + # bug #922247 + 'OpenEXRCore.testDWAACompression' + 'OpenEXRCore.testDWABCompression' + ) + use x86 && CMAKE_SKIP_TESTS+=( + '^OpenEXR.testDwaLookups$' + ) + + cmake_src_test +} + +src_install() { + use examples && docompress -x "/usr/share/doc/${PF}/examples" + + cmake_src_install +} diff --git a/media-libs/openexr/openexr-3.2.4-r1.ebuild b/media-libs/openexr/openexr-3.2.4-r1.ebuild deleted file mode 100644 index 1207ed892873..000000000000 --- a/media-libs/openexr/openexr-3.2.4-r1.ebuild +++ /dev/null @@ -1,146 +0,0 @@ -# Copyright 1999-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit cmake flag-o-matic - -MY_PN=OpenEXR - -DESCRIPTION="ILM's OpenEXR high dynamic-range image file format libraries" -HOMEPAGE="https://openexr.com/" -SRC_URI=" - https://github.com/AcademySoftwareFoundation/openexr/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz - test? ( - utils? ( - https://github.com/AcademySoftwareFoundation/openexr-images/archive/refs/tags/v1.0.tar.gz - -> openexr-images-1.0.tar.gz - ) - ) -" - -LICENSE="BSD" -SLOT="0/31" # based on SONAME -# -ppc -sparc because broken on big endian, bug #818424 -KEYWORDS="~amd64 ~arm ~arm64 ~loong -ppc ~ppc64 ~riscv -sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos" - -IUSE="cpu_flags_x86_avx doc examples large-stack utils test threads" -REQUIRED_USE="doc? ( utils )" -RESTRICT="!test? ( test )" - -RDEPEND=" - app-arch/libdeflate:= - >=dev-libs/imath-3.1.6:= -" -DEPEND="${RDEPEND}" -BDEPEND=" - virtual/pkgconfig - doc? ( sys-apps/help2man ) -" - -PATCHES=( - "${FILESDIR}/${PN}-3.2.1-bintests-iff-utils.patch" -) - -DOCS=( CHANGES.md GOVERNANCE.md PATENTS README.md SECURITY.md ) - -src_prepare() { - # Fix path for testsuite - sed -e "s:/var/tmp/:${T}:" \ - -i "${S}"/src/test/${MY_PN}Test/tmpDir.h || die "failed to set temp path for tests" - - sed -e "s:if(INSTALL_DOCS):if(OPENEXR_INSTALL_DOCS):" \ - -i docs/CMakeLists.txt || die - - cmake_src_prepare - - if use test && use utils; then - IMAGES=( - Beachball/multipart.0001.exr - Beachball/singlepart.0001.exr - Chromaticities/Rec709.exr - Chromaticities/Rec709_YC.exr - Chromaticities/XYZ.exr - Chromaticities/XYZ_YC.exr - LuminanceChroma/Flowers.exr - LuminanceChroma/Garden.exr - MultiResolution/ColorCodedLevels.exr - MultiResolution/WavyLinesCube.exr - MultiResolution/WavyLinesLatLong.exr - MultiView/Adjuster.exr - TestImages/GammaChart.exr - TestImages/GrayRampsHorizontal.exr - v2/LeftView/Balls.exr - v2/Stereo/Trunks.exr - ) - - mkdir -p "${BUILD_DIR}/src/test/bin" || die - - for image in "${IMAGES[@]}"; do - mkdir -p "${BUILD_DIR}/src/test/bin/$(dirname "${image}")" || die - cp -a "${WORKDIR}/openexr-images-1.0/${image}" "${BUILD_DIR}/src/test/bin/${image}" || die - done - fi - -} - -src_configure() { - if use x86; then - replace-cpu-flags native i686 - fi - - local mycmakeargs=( - -DOPENEXR_CXX_STANDARD="17" - - -DBUILD_SHARED_LIBS="yes" - -DBUILD_TESTING="$(usex test)" - -DBUILD_WEBSITE="no" - - -DOPENEXR_BUILD_EXAMPLES="$(usex examples)" - -DOPENEXR_BUILD_PYTHON="no" - -DOPENEXR_BUILD_TOOLS="$(usex utils)" - -DOPENEXR_ENABLE_LARGE_STACK="$(usex large-stack)" - -DOPENEXR_ENABLE_THREADING="$(usex threads)" - - -DOPENEXR_INSTALL="yes" - -DOPENEXR_INSTALL_DOCS="$(usex doc)" - -DOPENEXR_INSTALL_PKG_CONFIG="yes" - -DOPENEXR_INSTALL_TOOLS="$(usex utils)" - - -DOPENEXR_USE_CLANG_TIDY="no" # don't look for clang-tidy - - -DOPENEXR_FORCE_INTERNAL_DEFLATE="no" - -DOPENEXR_FORCE_INTERNAL_IMATH="no" - ) - if use test; then - # OPENEXR_RUN_FUZZ_TESTS depends on BUILD_TESTING, see - # - https://bugs.gentoo.org/925128 - # - https://openexr.com/en/latest/install.html#component-options - - # NOTE: the fuzz tests are very slow - mycmakeargs+=( -DOPENEXR_RUN_FUZZ_TESTS="ON" ) - fi - - cmake_src_configure -} - -src_test() { - local CMAKE_SKIP_TESTS=() - - use arm64 && CMAKE_SKIP_TESTS+=( - # bug #922247 - 'OpenEXRCore.testDWAACompression' - 'OpenEXRCore.testDWABCompression' - ) - use x86 && CMAKE_SKIP_TESTS+=( - '^OpenEXR.testDwaLookups$' - ) - - cmake_src_test -} - -src_install() { - use examples && docompress -x "/usr/share/doc/${PF}/examples" - - cmake_src_install -} diff --git a/media-libs/openexr/openexr-3.2.4-r2.ebuild b/media-libs/openexr/openexr-3.2.4-r2.ebuild new file mode 100644 index 000000000000..8c58eef5d830 --- /dev/null +++ b/media-libs/openexr/openexr-3.2.4-r2.ebuild @@ -0,0 +1,146 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake flag-o-matic + +MY_PN=OpenEXR + +DESCRIPTION="ILM's OpenEXR high dynamic-range image file format libraries" +HOMEPAGE="https://openexr.com/" +SRC_URI=" + https://github.com/AcademySoftwareFoundation/openexr/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz + test? ( + utils? ( + https://github.com/AcademySoftwareFoundation/openexr-images/archive/refs/tags/v1.0.tar.gz + -> openexr-images-1.0.tar.gz + ) + ) +" + +LICENSE="BSD" +SLOT="0/31" # based on SONAME +# -ppc -sparc because broken on big endian, bug #818424 +KEYWORDS="~amd64 ~arm ~arm64 ~loong -ppc ~ppc64 ~riscv -sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos" + +IUSE="cpu_flags_x86_avx doc examples large-stack utils test threads" +REQUIRED_USE="doc? ( utils )" +RESTRICT="!test? ( test )" + +RDEPEND=" + app-arch/libdeflate:=[zlib(+)] + >=dev-libs/imath-3.1.6:= +" +DEPEND="${RDEPEND}" +BDEPEND=" + virtual/pkgconfig + doc? ( sys-apps/help2man ) +" + +PATCHES=( + "${FILESDIR}/${PN}-3.2.1-bintests-iff-utils.patch" +) + +DOCS=( CHANGES.md GOVERNANCE.md PATENTS README.md SECURITY.md ) + +src_prepare() { + # Fix path for testsuite + sed -e "s:/var/tmp/:${T}:" \ + -i "${S}"/src/test/${MY_PN}Test/tmpDir.h || die "failed to set temp path for tests" + + sed -e "s:if(INSTALL_DOCS):if(OPENEXR_INSTALL_DOCS):" \ + -i docs/CMakeLists.txt || die + + cmake_src_prepare + + if use test && use utils; then + IMAGES=( + Beachball/multipart.0001.exr + Beachball/singlepart.0001.exr + Chromaticities/Rec709.exr + Chromaticities/Rec709_YC.exr + Chromaticities/XYZ.exr + Chromaticities/XYZ_YC.exr + LuminanceChroma/Flowers.exr + LuminanceChroma/Garden.exr + MultiResolution/ColorCodedLevels.exr + MultiResolution/WavyLinesCube.exr + MultiResolution/WavyLinesLatLong.exr + MultiView/Adjuster.exr + TestImages/GammaChart.exr + TestImages/GrayRampsHorizontal.exr + v2/LeftView/Balls.exr + v2/Stereo/Trunks.exr + ) + + mkdir -p "${BUILD_DIR}/src/test/bin" || die + + for image in "${IMAGES[@]}"; do + mkdir -p "${BUILD_DIR}/src/test/bin/$(dirname "${image}")" || die + cp -a "${WORKDIR}/openexr-images-1.0/${image}" "${BUILD_DIR}/src/test/bin/${image}" || die + done + fi + +} + +src_configure() { + if use x86; then + replace-cpu-flags native i686 + fi + + local mycmakeargs=( + -DOPENEXR_CXX_STANDARD="17" + + -DBUILD_SHARED_LIBS="yes" + -DBUILD_TESTING="$(usex test)" + -DBUILD_WEBSITE="no" + + -DOPENEXR_BUILD_EXAMPLES="$(usex examples)" + -DOPENEXR_BUILD_PYTHON="no" + -DOPENEXR_BUILD_TOOLS="$(usex utils)" + -DOPENEXR_ENABLE_LARGE_STACK="$(usex large-stack)" + -DOPENEXR_ENABLE_THREADING="$(usex threads)" + + -DOPENEXR_INSTALL="yes" + -DOPENEXR_INSTALL_DOCS="$(usex doc)" + -DOPENEXR_INSTALL_PKG_CONFIG="yes" + -DOPENEXR_INSTALL_TOOLS="$(usex utils)" + + -DOPENEXR_USE_CLANG_TIDY="no" # don't look for clang-tidy + + -DOPENEXR_FORCE_INTERNAL_DEFLATE="no" + -DOPENEXR_FORCE_INTERNAL_IMATH="no" + ) + if use test; then + # OPENEXR_RUN_FUZZ_TESTS depends on BUILD_TESTING, see + # - https://bugs.gentoo.org/925128 + # - https://openexr.com/en/latest/install.html#component-options + + # NOTE: the fuzz tests are very slow + mycmakeargs+=( -DOPENEXR_RUN_FUZZ_TESTS="ON" ) + fi + + cmake_src_configure +} + +src_test() { + local CMAKE_SKIP_TESTS=() + + use arm64 && CMAKE_SKIP_TESTS+=( + # bug #922247 + 'OpenEXRCore.testDWAACompression' + 'OpenEXRCore.testDWABCompression' + ) + use x86 && CMAKE_SKIP_TESTS+=( + '^OpenEXR.testDwaLookups$' + ) + + cmake_src_test +} + +src_install() { + use examples && docompress -x "/usr/share/doc/${PF}/examples" + + cmake_src_install +} -- cgit v1.2.3