1 |
commit: 3c596be4f93965cfdaf1b200379c4fe5d9cba4ae |
2 |
Author: Bernd Waibel <waebbl <AT> gmail <DOT> com> |
3 |
AuthorDate: Wed Sep 9 20:31:41 2020 +0000 |
4 |
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Oct 3 13:43:05 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3c596be4 |
7 |
|
8 |
media-gfx/yafaray: add support for python-3.{7,8} |
9 |
|
10 |
- Remove support for python-3.6 |
11 |
- Remove blender USE flag and support. The blender plugin isn't ready |
12 |
for blender-2.8 series yet. Blender-2.79 is python-3.6 only, which |
13 |
is going to be removed soon. Support will be re-added, as soon as |
14 |
upstream has updated the plugin for blender-2.8*. |
15 |
|
16 |
Closes: https://bugs.gentoo.org/737392 |
17 |
Package-Manager: Portage-3.0.5, Repoman-3.0.1 |
18 |
Signed-off-by: Bernd Waibel <waebbl <AT> gmail.com> |
19 |
Closes: https://github.com/gentoo/gentoo/pull/17485 |
20 |
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org> |
21 |
|
22 |
media-gfx/yafaray/Manifest | 1 - |
23 |
media-gfx/yafaray/metadata.xml | 1 - |
24 |
media-gfx/yafaray/yafaray-3.4.1.ebuild | 40 +++++----------------------------- |
25 |
3 files changed, 5 insertions(+), 37 deletions(-) |
26 |
|
27 |
diff --git a/media-gfx/yafaray/Manifest b/media-gfx/yafaray/Manifest |
28 |
index 0d86321f1fd..eb4cb6dcc74 100644 |
29 |
--- a/media-gfx/yafaray/Manifest |
30 |
+++ b/media-gfx/yafaray/Manifest |
31 |
@@ -1,2 +1 @@ |
32 |
-DIST yafaray-blender-exporter-3.4.1.tar.gz 381253 BLAKE2B b1483c79b14581729f598b92ca504af4a8a73cff54ff2014e8be646eaa2eea7f10074d1dc8c58251d8a987ac6e5ac10d1bc34b80c229f74e6d580bbaa3a3c461 SHA512 1f7baf7bf5953be8b4e004b1509cc23164df0a05e28d33a2301195ea21ad4d4cd6fdd67a0b1af11c1075bab7018e64b38f564be8b647d8513db46feee7d8bf85 |
33 |
DIST yafaray-core-3.4.1.tar.gz 1136077 BLAKE2B a2ce3945f52315084ee744ff4a6733255018196f0000ca6b1786fbd2ec49ade64cb62e98dfba95dca4dec361f47235d59a8c9bd95ee7d095214fc0afbdcb1ee4 SHA512 a9116273fbc2aaaadbc38a65b1eaaa502070ff06f8a2929e880714a9db57188e65cf319c20a3f96e08146af36a67aea139709a633eb024be65319a64330e6f68 |
34 |
|
35 |
diff --git a/media-gfx/yafaray/metadata.xml b/media-gfx/yafaray/metadata.xml |
36 |
index 795c6e4891e..24519079a75 100644 |
37 |
--- a/media-gfx/yafaray/metadata.xml |
38 |
+++ b/media-gfx/yafaray/metadata.xml |
39 |
@@ -14,7 +14,6 @@ |
40 |
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. |
41 |
</longdescription> |
42 |
<use> |
43 |
- <flag name="blender">Install addon for <pkg>media-gfx/blender</pkg></flag> |
44 |
<flag name="fastmath">Enable mathematic approximations to make code faster</flag> |
45 |
<flag name="fasttrig">Enable trigonometric approximations to make code faster</flag> |
46 |
<flag name="opencv">Use <pkg>media-libs/opencv</pkg></flag> |
47 |
|
48 |
diff --git a/media-gfx/yafaray/yafaray-3.4.1.ebuild b/media-gfx/yafaray/yafaray-3.4.1.ebuild |
49 |
index e583d32d4b7..4efd96180ca 100644 |
50 |
--- a/media-gfx/yafaray/yafaray-3.4.1.ebuild |
51 |
+++ b/media-gfx/yafaray/yafaray-3.4.1.ebuild |
52 |
@@ -3,7 +3,7 @@ |
53 |
|
54 |
EAPI=7 |
55 |
|
56 |
-PYTHON_COMPAT=( python3_6 ) |
57 |
+PYTHON_COMPAT=( python3_{7,8} ) |
58 |
|
59 |
# doesn't build with ninja when qt5 and python USE flags are both enabled |
60 |
CMAKE_MAKEFILE_GENERATOR="emake" |
61 |
@@ -12,19 +12,17 @@ inherit cmake flag-o-matic python-single-r1 |
62 |
|
63 |
DESCRIPTION="A free open-source montecarlo raytracing engine" |
64 |
HOMEPAGE="http://www.yafaray.org" |
65 |
-SRC_URI="https://github.com/YafaRay/Core/archive/v${PV}.tar.gz -> ${PN}-core-${PV}.tar.gz |
66 |
- blender? ( https://github.com/YafaRay/Blender-Exporter/archive/v${PV}.tar.gz -> ${PN}-blender-exporter-${PV}.tar.gz )" |
67 |
+SRC_URI="https://github.com/YafaRay/Core/archive/v${PV}.tar.gz -> ${PN}-core-${PV}.tar.gz" |
68 |
|
69 |
S="${WORKDIR}/Core-${PV}" |
70 |
|
71 |
-LICENSE="blender? ( GPL-2+ ) LGPL-2.1" |
72 |
+LICENSE="LGPL-2.1" |
73 |
SLOT="0" |
74 |
KEYWORDS="~amd64 ~x86" |
75 |
-IUSE="blender +fastmath +fasttrig jpeg opencv openexr png +python qt5 tiff truetype" |
76 |
+IUSE="+fastmath +fasttrig jpeg opencv openexr png +python qt5 tiff truetype" |
77 |
RESTRICT="test" |
78 |
|
79 |
REQUIRED_USE=" |
80 |
- blender? ( python ) |
81 |
python? ( ${PYTHON_REQUIRED_USE} ) |
82 |
" |
83 |
|
84 |
@@ -37,10 +35,7 @@ RDEPEND=" |
85 |
opencv? ( >=media-libs/opencv-3.1.0:= ) |
86 |
openexr? ( >=media-libs/openexr-2.2.0:= ) |
87 |
png? ( media-libs/libpng:0= ) |
88 |
- python? ( |
89 |
- ${PYTHON_DEPS} |
90 |
- blender? ( ~media-gfx/blender-2.79b[${PYTHON_SINGLE_USEDEP}] ) |
91 |
- ) |
92 |
+ python? ( ${PYTHON_DEPS} ) |
93 |
qt5? ( dev-qt/qtwidgets:5 ) |
94 |
tiff? ( media-libs/tiff:0 ) |
95 |
truetype? ( media-libs/freetype:2 ) |
96 |
@@ -63,13 +58,6 @@ src_prepare() { |
97 |
append-ldflags -pthread |
98 |
|
99 |
cmake_src_prepare |
100 |
- |
101 |
- if use blender; then |
102 |
- # fix PLUGIN_PATH |
103 |
- sed -e "s/PLUGIN_PATH = os.path.join(__path__\[0\], 'bin'/PLUGIN_PATH = os.path.join(__path__\[0\], '"$(get_libdir)"'/" \ |
104 |
- -e "s/@YAFARAY_BLENDER_EXPORTER_VERSION@/v"${PV}"/" \ |
105 |
- -i "${WORKDIR}"/Blender-Exporter-${PV}/__init__.py || die "patching startup file failed" |
106 |
- fi |
107 |
} |
108 |
|
109 |
src_configure() { |
110 |
@@ -116,18 +104,6 @@ src_install() { |
111 |
fi |
112 |
|
113 |
rm -rv "${ED}"/usr/share/doc/${PN} || die |
114 |
- |
115 |
- if use blender; then |
116 |
- pushd "${WORKDIR}/Blender-Exporter-${PV}" || die |
117 |
- # grab blender version number for plugin directory |
118 |
- local blender_plugin_dir=$(best_version media-gfx/blender) |
119 |
- blender_plugin_dir=${blender_plugin_dir##*/} # remove category |
120 |
- blender_plugin_dir=${blender_plugin_dir#*-} # remove package name |
121 |
- blender_plugin_dir=${blender_plugin_dir%%-*} # remove revision number if exists |
122 |
- insinto /usr/share/blender/${blender_plugin_dir}/scripts/addons/yafaray_v3 |
123 |
- doins -r . |
124 |
- popd || die |
125 |
- fi |
126 |
} |
127 |
|
128 |
pkg_postinst() { |
129 |
@@ -135,10 +111,4 @@ pkg_postinst() { |
130 |
einfo "yafaray-xml with /usr/share/yafaray/tests/test01/test01.xml" |
131 |
einfo "as an input file, then compare the result to" |
132 |
einfo "'/usr/share/yafaray/tests/test01/test01 - expected render result.png'" |
133 |
- if use blender; then |
134 |
- elog |
135 |
- elog "To use within Blender, navigate to File -> User Preferences -> Add-ons (tab)" |
136 |
- elog "and enable 'Render: YafaRay v3 Exporter'. This will make YafaRay available" |
137 |
- elog "in the render engines drop-down." |
138 |
- fi |
139 |
} |