diff options
author | Bernd Waibel <waebbl-gentoo@posteo.net> | 2022-11-14 17:59:36 +0100 |
---|---|---|
committer | Joonas Niilola <juippis@gentoo.org> | 2022-11-23 19:55:08 +0200 |
commit | fd0604a9d022357679f853b1ff195b7c66d33de0 (patch) | |
tree | 7fc99ff6d3a717726246b9818a4849394ba70138 /media-libs/openexr | |
parent | dev-libs/imath: drop 3.1.4-r3, 3.1.4-r4 (diff) | |
download | gentoo-fd0604a9d022357679f853b1ff195b7c66d33de0.tar.gz gentoo-fd0604a9d022357679f853b1ff195b7c66d33de0.tar.bz2 gentoo-fd0604a9d022357679f853b1ff195b7c66d33de0.zip |
media-libs/openexr: loosen dependency on dev-libs/imath
Package builds with dev-libs/imath-3.1.6, so don't restrict to the
same version.
Signed-off-by: Bernd Waibel <waebbl-gentoo@posteo.net>
Closes: https://github.com/gentoo/gentoo/pull/28265
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'media-libs/openexr')
-rw-r--r-- | media-libs/openexr/openexr-3.1.5-r1.ebuild | 79 |
1 files changed, 79 insertions, 0 deletions
diff --git a/media-libs/openexr/openexr-3.1.5-r1.ebuild b/media-libs/openexr/openexr-3.1.5-r1.ebuild new file mode 100644 index 000000000000..48224fa049f9 --- /dev/null +++ b/media-libs/openexr/openexr-3.1.5-r1.ebuild @@ -0,0 +1,79 @@ +# Copyright 1999-2022 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://www.openexr.com/" +SRC_URI="https://github.com/AcademySoftwareFoundation/openexr/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD" +SLOT="0/30" # based on SONAME +# -ppc -sparc because broken on big endian, bug #818424 +KEYWORDS="~amd64 ~arm ~arm64 ~ia64 ~loong -ppc ~ppc64 ~riscv -sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-solaris" +IUSE="cpu_flags_x86_avx doc examples large-stack utils test threads" +RESTRICT="!test? ( test )" + +RDEPEND=" + >=dev-libs/imath-${PV}:= + sys-libs/zlib + !media-libs/openexr:3 + !media-libs/ilmbase +" +DEPEND="${RDEPEND}" +BDEPEND=" + doc? ( dev-python/breathe ) + virtual/pkgconfig +" + +PATCHES=( + "${FILESDIR}"/${PN}-3.1.1-0003-disable-failing-test.patch + "${FILESDIR}"/${P}-Add-missing-include-cstdint-required-by-gcc-13-1264.patch + "${FILESDIR}"/${P}-add-missed-include-cstdint-statement.patch +) + +DOCS=( CHANGES.md GOVERNANCE.md PATENTS README.md SECURITY.md docs/SymbolVisibility.md ) + +src_prepare() { + # Fix path for testsuite + sed -e "s:/var/tmp/:${T}:" \ + -i "${S}"/src/test/${MY_PN}{,Fuzz,Util}Test/tmpDir.h || die "failed to set temp path for tests" + + if use x86; then + eapply "${FILESDIR}"/${P}-drop-failing-testDwaLookups.patch + fi + + cmake_src_prepare +} + +src_configure() { + if use x86; then + replace-cpu-flags native i686 + fi + + local mycmakeargs=( + -DBUILD_TESTING=$(usex test) + -DDOCS=$(usex doc) + -DOPENEXR_BUILD_TOOLS=$(usex utils) + -DOPENEXR_ENABLE_LARGE_STACK=$(usex large-stack) + -DOPENEXR_ENABLE_THREADING=$(usex threads) + -DOPENEXR_INSTALL_EXAMPLES=$(usex examples) + -DOPENEXR_INSTALL_PKG_CONFIG=ON + -DOPENEXR_INSTALL_TOOLS=$(usex utils) + -DOPENEXR_USE_CLANG_TIDY=OFF # don't look for clang-tidy + ) + + use test && mycmakeargs+=( -DOPENEXR_RUN_FUZZ_TESTS=ON ) + + cmake_src_configure +} + +src_install() { + use examples && docompress -x /usr/share/doc/${PF}/examples + + cmake_src_install +} |