From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1211476-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by finch.gentoo.org (Postfix) with ESMTPS id 58AA713835A
	for <garchives@archives.gentoo.org>; Sat,  3 Oct 2020 13:43:20 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 8E9D6E086B;
	Sat,  3 Oct 2020 13:43:19 +0000 (UTC)
Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4])
	(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id 6AFB6E086B
	for <gentoo-commits@lists.gentoo.org>; Sat,  3 Oct 2020 13:43:19 +0000 (UTC)
Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84])
	(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id 468F4335D24
	for <gentoo-commits@lists.gentoo.org>; Sat,  3 Oct 2020 13:43:18 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id C69DE376
	for <gentoo-commits@lists.gentoo.org>; Sat,  3 Oct 2020 13:43:16 +0000 (UTC)
From: "Joonas Niilola" <juippis@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: 8bit
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "Joonas Niilola" <juippis@gentoo.org>
Message-ID: <1601732585.3c596be4f93965cfdaf1b200379c4fe5d9cba4ae.juippis@gentoo>
Subject: [gentoo-commits] repo/gentoo:master commit in: media-gfx/yafaray/
X-VCS-Repository: repo/gentoo
X-VCS-Files: media-gfx/yafaray/Manifest media-gfx/yafaray/metadata.xml media-gfx/yafaray/yafaray-3.4.1.ebuild
X-VCS-Directories: media-gfx/yafaray/
X-VCS-Committer: juippis
X-VCS-Committer-Name: Joonas Niilola
X-VCS-Revision: 3c596be4f93965cfdaf1b200379c4fe5d9cba4ae
X-VCS-Branch: master
Date: Sat,  3 Oct 2020 13:43:16 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply
X-Archives-Salt: df5bfe3d-f510-4a45-acf6-ed491df275e1
X-Archives-Hash: ac9c064659a438733e8f213292aa61b1

commit:     3c596be4f93965cfdaf1b200379c4fe5d9cba4ae
Author:     Bernd Waibel <waebbl <AT> gmail <DOT> com>
AuthorDate: Wed Sep  9 20:31:41 2020 +0000
Commit:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Sat Oct  3 13:43:05 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3c596be4

media-gfx/yafaray: add support for python-3.{7,8}

- Remove support for python-3.6
- Remove blender USE flag and support. The blender plugin isn't ready
  for blender-2.8 series yet. Blender-2.79 is python-3.6 only, which
  is going to be removed soon. Support will be re-added, as soon as
  upstream has updated the plugin for blender-2.8*.

Closes: https://bugs.gentoo.org/737392
Package-Manager: Portage-3.0.5, Repoman-3.0.1
Signed-off-by: Bernd Waibel <waebbl <AT> gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/17485
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>

 media-gfx/yafaray/Manifest             |  1 -
 media-gfx/yafaray/metadata.xml         |  1 -
 media-gfx/yafaray/yafaray-3.4.1.ebuild | 40 +++++-----------------------------
 3 files changed, 5 insertions(+), 37 deletions(-)

diff --git a/media-gfx/yafaray/Manifest b/media-gfx/yafaray/Manifest
index 0d86321f1fd..eb4cb6dcc74 100644
--- a/media-gfx/yafaray/Manifest
+++ b/media-gfx/yafaray/Manifest
@@ -1,2 +1 @@
-DIST yafaray-blender-exporter-3.4.1.tar.gz 381253 BLAKE2B b1483c79b14581729f598b92ca504af4a8a73cff54ff2014e8be646eaa2eea7f10074d1dc8c58251d8a987ac6e5ac10d1bc34b80c229f74e6d580bbaa3a3c461 SHA512 1f7baf7bf5953be8b4e004b1509cc23164df0a05e28d33a2301195ea21ad4d4cd6fdd67a0b1af11c1075bab7018e64b38f564be8b647d8513db46feee7d8bf85
 DIST yafaray-core-3.4.1.tar.gz 1136077 BLAKE2B a2ce3945f52315084ee744ff4a6733255018196f0000ca6b1786fbd2ec49ade64cb62e98dfba95dca4dec361f47235d59a8c9bd95ee7d095214fc0afbdcb1ee4 SHA512 a9116273fbc2aaaadbc38a65b1eaaa502070ff06f8a2929e880714a9db57188e65cf319c20a3f96e08146af36a67aea139709a633eb024be65319a64330e6f68

diff --git a/media-gfx/yafaray/metadata.xml b/media-gfx/yafaray/metadata.xml
index 795c6e4891e..24519079a75 100644
--- a/media-gfx/yafaray/metadata.xml
+++ b/media-gfx/yafaray/metadata.xml
@@ -14,7 +14,6 @@
 		An render engine consists of a "faceless" computer program that interacts with a host 3D application to provide very specific raytracing capabilties "on demand". Blender 3D is the host application of YafaRay.
 	</longdescription>
 	<use>
-		<flag name="blender">Install addon for <pkg>media-gfx/blender</pkg></flag>
 		<flag name="fastmath">Enable mathematic approximations to make code faster</flag>
 		<flag name="fasttrig">Enable trigonometric approximations to make code faster</flag>
 		<flag name="opencv">Use <pkg>media-libs/opencv</pkg></flag>

diff --git a/media-gfx/yafaray/yafaray-3.4.1.ebuild b/media-gfx/yafaray/yafaray-3.4.1.ebuild
index e583d32d4b7..4efd96180ca 100644
--- a/media-gfx/yafaray/yafaray-3.4.1.ebuild
+++ b/media-gfx/yafaray/yafaray-3.4.1.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=7
 
-PYTHON_COMPAT=( python3_6 )
+PYTHON_COMPAT=( python3_{7,8} )
 
 # doesn't build with ninja when qt5 and python USE flags are both enabled
 CMAKE_MAKEFILE_GENERATOR="emake"
@@ -12,19 +12,17 @@ inherit cmake flag-o-matic python-single-r1
 
 DESCRIPTION="A free open-source montecarlo raytracing engine"
 HOMEPAGE="http://www.yafaray.org"
-SRC_URI="https://github.com/YafaRay/Core/archive/v${PV}.tar.gz -> ${PN}-core-${PV}.tar.gz
-	blender? ( https://github.com/YafaRay/Blender-Exporter/archive/v${PV}.tar.gz -> ${PN}-blender-exporter-${PV}.tar.gz )"
+SRC_URI="https://github.com/YafaRay/Core/archive/v${PV}.tar.gz -> ${PN}-core-${PV}.tar.gz"
 
 S="${WORKDIR}/Core-${PV}"
 
-LICENSE="blender? ( GPL-2+ ) LGPL-2.1"
+LICENSE="LGPL-2.1"
 SLOT="0"
 KEYWORDS="~amd64 ~x86"
-IUSE="blender +fastmath +fasttrig jpeg opencv openexr png +python qt5 tiff truetype"
+IUSE="+fastmath +fasttrig jpeg opencv openexr png +python qt5 tiff truetype"
 RESTRICT="test"
 
 REQUIRED_USE="
-	blender? ( python )
 	python? ( ${PYTHON_REQUIRED_USE} )
 "
 
@@ -37,10 +35,7 @@ RDEPEND="
 	opencv? ( >=media-libs/opencv-3.1.0:= )
 	openexr? ( >=media-libs/openexr-2.2.0:= )
 	png? ( media-libs/libpng:0= )
-	python? (
-		${PYTHON_DEPS}
-		blender? ( ~media-gfx/blender-2.79b[${PYTHON_SINGLE_USEDEP}] )
-	)
+	python? ( ${PYTHON_DEPS} )
 	qt5? ( dev-qt/qtwidgets:5 )
 	tiff? ( media-libs/tiff:0 )
 	truetype? ( media-libs/freetype:2 )
@@ -63,13 +58,6 @@ src_prepare() {
 	append-ldflags -pthread
 
 	cmake_src_prepare
-
-	if use blender; then
-		# fix PLUGIN_PATH
-		sed -e "s/PLUGIN_PATH = os.path.join(__path__\[0\], 'bin'/PLUGIN_PATH = os.path.join(__path__\[0\], '"$(get_libdir)"'/" \
-			-e "s/@YAFARAY_BLENDER_EXPORTER_VERSION@/v"${PV}"/" \
-			-i "${WORKDIR}"/Blender-Exporter-${PV}/__init__.py || die "patching startup file failed"
-	fi
 }
 
 src_configure() {
@@ -116,18 +104,6 @@ src_install() {
 	fi
 
 	rm -rv "${ED}"/usr/share/doc/${PN} || die
-
-	if use blender; then
-		pushd "${WORKDIR}/Blender-Exporter-${PV}" || die
-		# grab blender version number for plugin directory
-		local blender_plugin_dir=$(best_version media-gfx/blender)
-		blender_plugin_dir=${blender_plugin_dir##*/} # remove category
-		blender_plugin_dir=${blender_plugin_dir#*-}  # remove package name
-		blender_plugin_dir=${blender_plugin_dir%%-*} # remove revision number if exists
-		insinto /usr/share/blender/${blender_plugin_dir}/scripts/addons/yafaray_v3
-		doins -r .
-		popd || die
-	fi
 }
 
 pkg_postinst() {
@@ -135,10 +111,4 @@ pkg_postinst() {
 	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'"
-	if use blender; then
-		elog
-		elog "To use within Blender, navigate to File -> User Preferences -> Add-ons (tab)"
-		elog "and enable 'Render: YafaRay v3 Exporter'. This will make YafaRay available"
-		elog "in the render engines drop-down."
-	fi
 }