From b62381b18b4bf2e919cbfbae11ebcad391e38e77 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Fri, 16 Dec 2022 03:35:12 +0000 Subject: gentoo auto-resync : 16:12:2022 - 03:35:12 --- media-gfx/yafaray/Manifest | 2 +- media-gfx/yafaray/yafaray-3.5.1-r2.ebuild | 115 ------------------------------ media-gfx/yafaray/yafaray-3.5.1-r4.ebuild | 115 ++++++++++++++++++++++++++++++ 3 files changed, 116 insertions(+), 116 deletions(-) delete mode 100644 media-gfx/yafaray/yafaray-3.5.1-r2.ebuild create mode 100644 media-gfx/yafaray/yafaray-3.5.1-r4.ebuild (limited to 'media-gfx/yafaray') diff --git a/media-gfx/yafaray/Manifest b/media-gfx/yafaray/Manifest index 3e8833262807..b1fcce678e56 100644 --- a/media-gfx/yafaray/Manifest +++ b/media-gfx/yafaray/Manifest @@ -1,5 +1,5 @@ AUX yafaray-3.5.1-0001-respect-distribution-CFLAGS.patch 1541 BLAKE2B ea13c623fe025440481bfa8a68085d4bd0a46decb5dff9c6ce743ebc0dd30bcd8f3333fc45e041db19e420bc86ce1d1965a084a788882c7d68f1423c884ff8fe SHA512 861683353000e0c25991b64ab70af3839641d6e01f48756798acd5903124890d646fe4f9ef54f6c22c4d857994f2d0adc415dcd83534fb85300e6dbc5128631d AUX yafaray-3.5.1-add-missing-limits-header.patch 556 BLAKE2B ef63f5deba7c633917030b34ddf2c7a48bbcf412d99f48a1be89761c6dd19a67082560b2d0bb7dc440b7d0e9db73d708068eec7566ebc4038098faaf31aa269f SHA512 89ff060607e69a5ca0d2fb3ef2651e22e4a2ff5adae7351df2195267f2236792e7feae9a761882f3debc04bff4c83760a6704598643fb0a60ba37af698752032 DIST yafaray-3.5.1.tar.gz 1136455 BLAKE2B 6002f3b96f3626b83f57015eaf3ddd53dcb6b6fd863277912f7fec06e4f176ec81dc48b889a068e6259edf17727dd04d4b1bbc51b571bfe6aad5e48148201e2e SHA512 3ead4d8becd2d524aa5bb4bbde4b9d98b56f8a38d872e7aa49ba19081094406336def02e9bf1503e424ca8e6cade0db4b042214cea8f9345bd4fc542c9346dbe -EBUILD yafaray-3.5.1-r2.ebuild 3129 BLAKE2B 43d0702023ac71cd60caaa7257756ba91308885ecc62a33550f708427c8b617eaef0eabc39e6bc1366fce5c96c1c66a88fa12b5ba0c916531ed8e4d314a3aae0 SHA512 a0688b31d8110f17fe843ec0d0837600a897aeef46bed71f838fa826f1bf9324b7bfe8b00c4e64cd782d1d23366949b72a8df1c802a194e831f6d312daa6ed38 +EBUILD yafaray-3.5.1-r4.ebuild 3131 BLAKE2B 186182527cfce036c086238dd39843773361cd06ef4395792acabd90e324b943c31eb9d7256f2917c239d4d8b2786bcce74b870289fffee656d26795298f020d SHA512 99f15239647f4575b5b012ec5aeb78eb842a0ef5b01f704892ac09095d48872c7da6b8a1b6d566419ff589a8d91bc352de028d6b1a214bc15d6bd0563e1db0be MISC metadata.xml 1090 BLAKE2B 7ce4d1b50e06300184c5cd969e0ba20c3c4ef63471d81646392411528599c429747a36eb5505a2f718867853c9ecd505a04d870ac0b29456f031dc32713606d3 SHA512 f1e56401173a07a15cd5fbce265d47ad09a8745300abffe77310c3eff8d8e18e3bfe2003750863c238e7f25c3e6009197c2fdf6e788c0767e1c4fffdc74ddea4 diff --git a/media-gfx/yafaray/yafaray-3.5.1-r2.ebuild b/media-gfx/yafaray/yafaray-3.5.1-r2.ebuild deleted file mode 100644 index 1da10dced60a..000000000000 --- a/media-gfx/yafaray/yafaray-3.5.1-r2.ebuild +++ /dev/null @@ -1,115 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -PYTHON_COMPAT=( python3_{8..11} ) - -# doesn't build with ninja when qt5 and python USE flags are both enabled -CMAKE_MAKEFILE_GENERATOR="emake" - -inherit cmake flag-o-matic python-single-r1 - -DESCRIPTION="A free open-source montecarlo raytracing engine" -# Regular homepage is currently down. Upstream is working on this. -HOMEPAGE="https://www.yafaray.org https://github.com/YafaRay/libYafaRay" -SRC_URI="https://github.com/YafaRay/libYafaRay/archive/v${PV}.tar.gz -> ${P}.tar.gz" -S="${WORKDIR}/libYafaRay-${PV}" - -LICENSE="LGPL-2.1" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="+fastmath +fasttrig jpeg opencv png python qt5 tiff truetype" -RESTRICT="test" - -REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" - -# Note: according to upstream, the blender plugin doesn't work with >=blender-2.8 (yet). -RDEPEND=" - dev-libs/libxml2:2 - sys-libs/zlib - jpeg? ( media-libs/libjpeg-turbo:= ) - opencv? ( media-libs/opencv:= ) - png? ( media-libs/libpng:= ) - python? ( ${PYTHON_DEPS} ) - qt5? ( dev-qt/qtwidgets:5 ) - tiff? ( media-libs/tiff ) - truetype? ( media-libs/freetype:2 ) -" -DEPEND="${RDEPEND}" -BDEPEND=" - python? ( - ${PYTHON_DEPS} - dev-lang/swig - ) -" - -PATCHES=( - "${FILESDIR}"/${P}-0001-respect-distribution-CFLAGS.patch - "${FILESDIR}"/${P}-add-missing-limits-header.patch -) - -DOCS=( AUTHORS.md CHANGELOG.md CODING.md INSTALL.md README.md ) - -pkg_setup() { - use python && python-single-r1_pkg_setup -} - -src_prepare() { - append-flags -pthread - append-ldflags -pthread - - cmake_src_prepare -} - -src_configure() { - local mycmakeargs=( - # enabling BLENDER_ADDON doesn't build anything, but set's some wierd - # installation paths, so keep it off and install the files manually. - -DBLENDER_ADDON=OFF - -DFAST_MATH=$(usex fastmath) - -DFAST_TRIG=$(usex fasttrig) - -DWITH_Freetype=$(usex truetype) - -DWITH_JPEG=$(usex jpeg) - -DWITH_OpenCV=$(usex opencv) - -DWITH_OpenEXR=OFF # bug #877865 - -DWITH_PNG=$(usex png) - -DWITH_QT=$(usex qt5) - -DWITH_TIFF=$(usex tiff) - -DWITH_XML_LOADER=ON - -DWITH_XMLImport=ON - -DWITH_YAF_PY_BINDINGS=$(usex python) - -DWITH_YAF_RUBY_BINDINGS=OFF - -DYAF_DOC_DIR=share/doc/${PF} - -DYAF_LIB_DIR=$(get_libdir) - ) - - if use python; then - mycmakeargs+=( -DYAF_PY_VERSION=${EPYTHON#python} ) - fi - - cmake_src_configure -} - -src_install() { - cmake_src_install - - if use python; then - python_domodule "${BUILD_DIR}/src/bindings/yafaray_v3_interface.py" - mv "${ED}"/usr/$(get_libdir)/_yafaray_v3_interface.so "${ED}"/$(python_get_sitedir)/ || die - rm -v "${ED}"/usr/$(get_libdir)/yafaray_v3_interface.py || die - - if use qt5; then - python_domodule "${BUILD_DIR}/src/bindings/yafqt.py" - mv "${ED}"/usr/$(get_libdir)/_yafqt.so "${ED}"/$(python_get_sitedir)/ || die - rm -v "${ED}"/usr/$(get_libdir)/yafqt.py || die - fi - fi -} - -pkg_postinst() { - einfo "To confirm your installation is working as expected, run" - einfo "yafaray-xml with /usr/share/yafaray/tests/test01/test01.xml" - einfo "as an input file, then compare the result to" - einfo "'/usr/share/yafaray/tests/test01/test01 - expected render result.png'" -} diff --git a/media-gfx/yafaray/yafaray-3.5.1-r4.ebuild b/media-gfx/yafaray/yafaray-3.5.1-r4.ebuild new file mode 100644 index 000000000000..831951e505c1 --- /dev/null +++ b/media-gfx/yafaray/yafaray-3.5.1-r4.ebuild @@ -0,0 +1,115 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{8..11} ) + +# doesn't build with ninja when qt5 and python USE flags are both enabled +CMAKE_MAKEFILE_GENERATOR="emake" + +inherit cmake flag-o-matic python-single-r1 + +DESCRIPTION="A free open-source montecarlo raytracing engine" +# Regular homepage is currently down. Upstream is working on this. +HOMEPAGE="https://www.yafaray.org https://github.com/YafaRay/libYafaRay" +SRC_URI="https://github.com/YafaRay/libYafaRay/archive/v${PV}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}/libYafaRay-${PV}" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="+fastmath +fasttrig jpeg opencv png python qt5 tiff truetype" +RESTRICT="test" + +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" + +# Note: according to upstream, the blender plugin doesn't work with >=blender-2.8 (yet). +RDEPEND=" + dev-libs/libxml2:2 + sys-libs/zlib + jpeg? ( media-libs/libjpeg-turbo:= ) + opencv? ( media-libs/opencv:= ) + png? ( media-libs/libpng:= ) + python? ( ${PYTHON_DEPS} ) + qt5? ( dev-qt/qtwidgets:5 ) + tiff? ( media-libs/tiff:= ) + truetype? ( media-libs/freetype:2 ) +" +DEPEND="${RDEPEND}" +BDEPEND=" + python? ( + ${PYTHON_DEPS} + dev-lang/swig + ) +" + +PATCHES=( + "${FILESDIR}"/${P}-0001-respect-distribution-CFLAGS.patch + "${FILESDIR}"/${P}-add-missing-limits-header.patch +) + +DOCS=( AUTHORS.md CHANGELOG.md CODING.md INSTALL.md README.md ) + +pkg_setup() { + use python && python-single-r1_pkg_setup +} + +src_prepare() { + append-flags -pthread + append-ldflags -pthread + + cmake_src_prepare +} + +src_configure() { + local mycmakeargs=( + # enabling BLENDER_ADDON doesn't build anything, but set's some wierd + # installation paths, so keep it off and install the files manually. + -DBLENDER_ADDON=OFF + -DFAST_MATH=$(usex fastmath) + -DFAST_TRIG=$(usex fasttrig) + -DWITH_Freetype=$(usex truetype) + -DWITH_JPEG=$(usex jpeg) + -DWITH_OpenCV=$(usex opencv) + -DWITH_OpenEXR=OFF # bug #877865 + -DWITH_PNG=$(usex png) + -DWITH_QT=$(usex qt5) + -DWITH_TIFF=$(usex tiff) + -DWITH_XML_LOADER=ON + -DWITH_XMLImport=ON + -DWITH_YAF_PY_BINDINGS=$(usex python) + -DWITH_YAF_RUBY_BINDINGS=OFF + -DYAF_DOC_DIR=share/doc/${PF} + -DYAF_LIB_DIR=$(get_libdir) + ) + + if use python; then + mycmakeargs+=( -DYAF_PY_VERSION=${EPYTHON#python} ) + fi + + cmake_src_configure +} + +src_install() { + cmake_src_install + + if use python; then + python_domodule "${BUILD_DIR}/src/bindings/yafaray_v3_interface.py" + mv "${ED}"/usr/$(get_libdir)/_yafaray_v3_interface.so "${ED}"/$(python_get_sitedir)/ || die + rm -v "${ED}"/usr/$(get_libdir)/yafaray_v3_interface.py || die + + if use qt5; then + python_domodule "${BUILD_DIR}/src/bindings/yafqt.py" + mv "${ED}"/usr/$(get_libdir)/_yafqt.so "${ED}"/$(python_get_sitedir)/ || die + rm -v "${ED}"/usr/$(get_libdir)/yafqt.py || die + fi + fi +} + +pkg_postinst() { + einfo "To confirm your installation is working as expected, run" + einfo "yafaray-xml with /usr/share/yafaray/tests/test01/test01.xml" + einfo "as an input file, then compare the result to" + einfo "'/usr/share/yafaray/tests/test01/test01 - expected render result.png'" +} -- cgit v1.2.3