From d23aa06fb9ce58308d7ce59f2ceb6ea4bcf5a09c Mon Sep 17 00:00:00 2001 From: Alfredo Tupone Date: Wed, 2 Mar 2022 21:50:53 +0100 Subject: media-gfx/exact-image: compatible with openexr:3 Closes: https://bugs.gentoo.org/834328 Package-Manager: Portage-3.0.30, Repoman-3.0.3 Signed-off-by: Alfredo Tupone --- media-gfx/exact-image/exact-image-1.0.2-r2.ebuild | 105 --------------------- media-gfx/exact-image/exact-image-1.0.2-r3.ebuild | 108 ++++++++++++++++++++++ 2 files changed, 108 insertions(+), 105 deletions(-) delete mode 100644 media-gfx/exact-image/exact-image-1.0.2-r2.ebuild create mode 100644 media-gfx/exact-image/exact-image-1.0.2-r3.ebuild diff --git a/media-gfx/exact-image/exact-image-1.0.2-r2.ebuild b/media-gfx/exact-image/exact-image-1.0.2-r2.ebuild deleted file mode 100644 index 32d67a26443a..000000000000 --- a/media-gfx/exact-image/exact-image-1.0.2-r2.ebuild +++ /dev/null @@ -1,105 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -LUA_COMPAT=( lua5-{1..4} luajit ) - -inherit lua-single toolchain-funcs - -DESCRIPTION="A fast, modern and generic image processing library" -HOMEPAGE="http://www.exactcode.de/site/open_source/exactimage/" -SRC_URI="http://dl.exactcode.de/oss/${PN}/${P}.tar.bz2" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="expat jpeg lua openexr php perl png ruby swig tiff truetype X" -REQUIRED_USE="lua? ( swig )" - -RDEPEND=" - x11-libs/agg[truetype] - sys-libs/zlib - expat? ( dev-libs/expat ) - jpeg? ( virtual/jpeg ) - lua? ( ${LUA_DEPS} ) - openexr? ( =media-libs/libpng-1.2.43 ) - ruby? ( dev-lang/ruby:* ) - tiff? ( media-libs/tiff ) - truetype? ( >=media-libs/freetype-2 ) - X? ( - x11-libs/libXext - x11-libs/libXt - x11-libs/libICE - x11-libs/libSM - ) -" -DEPEND=" - ${RDEPEND} - swig? ( dev-lang/swig ) -" - -BDEPEND="virtual/pkgconfig" - -PATCHES=( - "${FILESDIR}"/${P}-gcc6.patch - "${FILESDIR}"/${P}-g++.patch - "${FILESDIR}"/${P}-dcraw.patch - "${FILESDIR}"/${P}-php.patch -) - -src_prepare() { - default - - # Respect user CFLAGS/CXXFLAGS. - sed -i \ - -e '/C\(XX\)\?FLAGS =/s/-O2//' \ - -e "\$aCFLAGS += ${CFLAGS}\nCXXFLAGS += ${CXXFLAGS}" \ - Makefile || die - - # Show commands. Use qualified CC/CXX. - sed -i \ - -e '/^Q =/d' \ - -e '/^\t@echo /d' \ - -e "\$aCC:=$(tc-getCC)\nCXX:=$(tc-getCXX)" \ - build/bottom.make || die - - # The copied string fits exactly. Use memcpy to reflect that a null - # terminator is not needed. - sed -i \ - -e 's/strcpy(\([^,]*\)\(,["a-zA-Z -]*\))/memcpy(\1\2, sizeof(\1))/' \ - codecs/tga.cc || die -} - -src_configure() { - # evas -> enlightenment overlay - # bardecode -> protected by custom license - # libungif -> not supported anymore - # python -> allegedly not python3, but python2 only - - ./configure \ - --prefix=/usr \ - --libdir=/usr/$(get_libdir) \ - $(use_with X x11) \ - $(use_with truetype freetype) \ - --without-evas \ - $(use_with jpeg libjpeg) \ - $(use_with tiff libtiff) \ - $(use_with png libpng) \ - --without-libgif \ - --without-jasper \ - $(use_with openexr) \ - $(use_with expat) \ - --without-lcms \ - --without-bardecode \ - $(use_with lua) \ - $(use_with swig) \ - --without-python \ - $(use_with perl) \ - --without-python \ - $(use_with php) \ - $(use_with ruby) || die -} diff --git a/media-gfx/exact-image/exact-image-1.0.2-r3.ebuild b/media-gfx/exact-image/exact-image-1.0.2-r3.ebuild new file mode 100644 index 000000000000..700070540cde --- /dev/null +++ b/media-gfx/exact-image/exact-image-1.0.2-r3.ebuild @@ -0,0 +1,108 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +LUA_COMPAT=( lua5-{1..4} luajit ) + +inherit lua-single toolchain-funcs + +DESCRIPTION="A fast, modern and generic image processing library" +HOMEPAGE="http://www.exactcode.de/site/open_source/exactimage/" +SRC_URI="http://dl.exactcode.de/oss/${PN}/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="expat jpeg lua openexr php perl png ruby swig tiff truetype X" +REQUIRED_USE="lua? ( swig ) perl? ( swig ) php? ( swig ) ruby? ( swig )" + +RDEPEND=" + x11-libs/agg[truetype] + sys-libs/zlib + expat? ( dev-libs/expat ) + jpeg? ( virtual/jpeg ) + lua? ( ${LUA_DEPS} ) + openexr? ( media-libs/openexr:= ) + php? ( dev-lang/php:* ) + perl? ( dev-lang/perl ) + png? ( >=media-libs/libpng-1.2.43 ) + ruby? ( dev-lang/ruby:* ) + tiff? ( media-libs/tiff ) + truetype? ( >=media-libs/freetype-2 ) + X? ( + x11-libs/libXext + x11-libs/libXt + x11-libs/libICE + x11-libs/libSM + )" +DEPEND=" + ${RDEPEND} + swig? ( dev-lang/swig ) +" + +BDEPEND="virtual/pkgconfig" + +PATCHES=( + "${FILESDIR}"/${P}-gcc6.patch + "${FILESDIR}"/${P}-g++.patch + "${FILESDIR}"/${P}-dcraw.patch + "${FILESDIR}"/${P}-php.patch +) + +src_prepare() { + default + + # Respect user CFLAGS/CXXFLAGS. + sed -i \ + -e '/C\(XX\)\?FLAGS =/s/-O2//' \ + -e "\$aCFLAGS += ${CFLAGS}\nCXXFLAGS += ${CXXFLAGS}" \ + Makefile || die + + # Show commands. Use qualified CC/CXX. + sed -i \ + -e '/^Q =/d' \ + -e '/^\t@echo /d' \ + -e "\$aCC:=$(tc-getCC)\nCXX:=$(tc-getCXX)" \ + build/bottom.make || die + + # The copied string fits exactly. Use memcpy to reflect that a null + # terminator is not needed. + sed -i \ + -e 's/strcpy(\([^,]*\)\(,["a-zA-Z -]*\))/memcpy(\1\2, sizeof(\1))/' \ + codecs/tga.cc || die + + # openexr vers 3 + sed -i \ + -e 's:Int64:uint64_t:g' \ + codecs/openexr.cc || die +} + +src_configure() { + # evas -> enlightenment overlay + # bardecode -> protected by custom license + # libungif -> not supported anymore + # python -> allegedly not python3, but python2 only + + ./configure \ + --prefix=/usr \ + --libdir=/usr/$(get_libdir) \ + $(use_with X x11) \ + $(use_with truetype freetype) \ + --without-evas \ + $(use_with jpeg libjpeg) \ + $(use_with tiff libtiff) \ + $(use_with png libpng) \ + --without-libgif \ + --without-jasper \ + $(use_with openexr) \ + $(use_with expat) \ + --without-lcms \ + --without-bardecode \ + $(use_with lua) \ + $(use_with swig) \ + $(use_with perl) \ + --without-python \ + $(use_with php) \ + $(use_with ruby) || die +} -- cgit v1.2.3-65-gdbad