commit:     ef829652925fbe6e01dafe871e78e5a2637e18a0
Author:     Bernd Waibel <waebbl-gentoo <AT> posteo <DOT> net>
AuthorDate: Tue Nov 15 17:26:24 2022 +0000
Commit:     John Helmert III <ajak <AT> gentoo <DOT> org>
CommitDate: Wed Nov 16 18:56:07 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ef829652

media-gfx/enblend: disable OpenEXR support

Package doesn't recognize OpenEXR-3. Restricting the dependency to
<media-libs/openexr-3 would lead to a conflict with media-libs/vigra[openexr]
dependency which pulls in >=media-libs/openexr-3.

Bug: https://bugs.gentoo.org/878149
Signed-off-by: Bernd Waibel <waebbl-gentoo <AT> posteo.net>
Closes: https://github.com/gentoo/gentoo/pull/28289
Signed-off-by: John Helmert III <ajak <AT> gentoo.org>

 .../enblend/enblend-4.2.0_p20161007-r2.ebuild      | 85 ++++++++++++++++++++++
 1 file changed, 85 insertions(+)

diff --git a/media-gfx/enblend/enblend-4.2.0_p20161007-r2.ebuild 
b/media-gfx/enblend/enblend-4.2.0_p20161007-r2.ebuild
new file mode 100644
index 000000000000..e9138b6c09a2
--- /dev/null
+++ b/media-gfx/enblend/enblend-4.2.0_p20161007-r2.ebuild
@@ -0,0 +1,85 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit cmake
+
+DESCRIPTION="Image Blending with Multiresolution Splines"
+HOMEPAGE="http://enblend.sourceforge.net/";
+SRC_URI="https://dev.gentoo.org/~soap/distfiles/${P}.tar.xz";
+
+LICENSE="GPL-2+ FDL-1.2+"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64 ~x86"
+IUSE="cpu_flags_x86_sse2 debug doc openmp tcmalloc"
+
+REQUIRED_USE="tcmalloc? ( !debug )"
+
+BDEPEND="
+       sys-apps/help2man
+       virtual/pkgconfig
+       doc? (
+               dev-lang/perl
+               dev-perl/Readonly
+               dev-tex/hevea
+               gnome-base/librsvg
+               media-gfx/graphviz
+               media-gfx/transfig
+               sci-visualization/gnuplot[gd]
+               virtual/imagemagick-tools
+               virtual/latex-base
+       )
+"
+RDEPEND="
+       media-libs/lcms:2
+       media-libs/tiff:0
+       media-libs/vigra[openexr]
+       sci-libs/gsl:=
+       debug? ( dev-libs/dmalloc )
+       tcmalloc? ( dev-util/google-perftools )
+"
+DEPEND="${RDEPEND}
+       dev-libs/boost
+       media-libs/libpng:0
+       media-libs/libjpeg-turbo:=
+"
+
+PATCHES=(
+       "${FILESDIR}"/${PN}-4.2-doc-install-dir-fix.patch
+       "${FILESDIR}"/${P}-cmake.patch
+       "${FILESDIR}"/${P}-gcc-10.patch
+)
+
+src_prepare() {
+       cmake_src_prepare
+
+       sed -i -e "s:share/doc/enblend:share/doc/${PF}:" doc/CMakeLists.txt || 
die
+}
+
+src_configure() {
+       local mycmakeargs=(
+               -DENABLE_SSE2=$(usex cpu_flags_x86_sse2)
+               -DENABLE_DMALLOC=$(usex debug)
+               -DDOC=$(usex doc)
+               -DENABLE_OPENMP=$(usex openmp)
+               -DENABLE_TCMALLOC=$(usex tcmalloc)
+       )
+       if use doc; then
+               -DINSTALL_HTML_DOC=ON
+               -DINSTALL_PDF_DOC=ON
+       fi
+
+       cmake_src_configure
+}
+
+src_compile() {
+       # To allow icon resizing with renderers (no way to disable)
+       addpredict /dev/dri
+
+       # To compile fonts in the temp directory
+       export VARTEXFONTS="${T}/fonts"
+
+       # forcing -j1 as every parallel compilation process needs about 1 GB 
RAM.
+       cmake_src_compile -j1
+}

Reply via email to