1 |
commit: 8e3eb85f19ac6d60b334dd63f6401fbe3bb4f300 |
2 |
Author: Bernd Waibel <waebbl <AT> gmail <DOT> com> |
3 |
AuthorDate: Sun Jul 26 08:00:55 2020 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Aug 2 10:40:32 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8e3eb85f |
7 |
|
8 |
dev-python/pyilmbase: change to python-single-r1 |
9 |
|
10 |
The package is not fully python-r1 aware. The cmake configuration |
11 |
files currently only support one python version, so switch to |
12 |
inheriting python-single-r1 instead of python-r1. |
13 |
|
14 |
Closes: https://bugs.gentoo.org/733858 |
15 |
Package-Manager: Portage-3.0.0, Repoman-2.3.23 |
16 |
Signed-off-by: Bernd Waibel <waebbl <AT> gmail.com> |
17 |
Closes: https://github.com/gentoo/gentoo/pull/16828 |
18 |
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> |
19 |
|
20 |
dev-python/pyilmbase/pyilmbase-2.5.2-r1.ebuild | 59 ++++++++++++++++++++ |
21 |
dev-python/pyilmbase/pyilmbase-2.5.2.ebuild | 77 -------------------------- |
22 |
2 files changed, 59 insertions(+), 77 deletions(-) |
23 |
|
24 |
diff --git a/dev-python/pyilmbase/pyilmbase-2.5.2-r1.ebuild b/dev-python/pyilmbase/pyilmbase-2.5.2-r1.ebuild |
25 |
new file mode 100644 |
26 |
index 00000000000..861ffa45e7c |
27 |
--- /dev/null |
28 |
+++ b/dev-python/pyilmbase/pyilmbase-2.5.2-r1.ebuild |
29 |
@@ -0,0 +1,59 @@ |
30 |
+# Copyright 1999-2020 Gentoo Authors |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=7 |
34 |
+ |
35 |
+# boost is lacking py39 support as of 20200605 |
36 |
+PYTHON_COMPAT=( python3_{6,7,8} ) |
37 |
+inherit cmake python-single-r1 |
38 |
+ |
39 |
+DESCRIPTION="IlmBase Python bindings" |
40 |
+HOMEPAGE="https://www.openexr.com" |
41 |
+SRC_URI="https://github.com/AcademySoftwareFoundation/openexr/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
42 |
+ |
43 |
+LICENSE="BSD" |
44 |
+SLOT="0/25" |
45 |
+KEYWORDS="~amd64 ~x86" |
46 |
+IUSE="exceptions +numpy test" |
47 |
+REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
48 |
+RESTRICT="!test? ( test )" |
49 |
+ |
50 |
+RDEPEND=" |
51 |
+ ${PYTHON_DEPS} |
52 |
+ ~media-libs/ilmbase-${PV}:= |
53 |
+ sys-libs/zlib |
54 |
+ $(python_gen_cond_dep ' |
55 |
+ >=dev-libs/boost-1.62.0-r1:=[python,${PYTHON_MULTI_USEDEP}] |
56 |
+ numpy? ( >=dev-python/numpy-1.10.4[${PYTHON_MULTI_USEDEP}] ) |
57 |
+ ') |
58 |
+" |
59 |
+DEPEND="${RDEPEND}" |
60 |
+BDEPEND="virtual/pkgconfig" |
61 |
+ |
62 |
+S="${WORKDIR}/openexr-${PV}/PyIlmBase" |
63 |
+ |
64 |
+PATCHES=( |
65 |
+ "${FILESDIR}/${P}-0001-Fix-pkgconfig-file-for-PyIlmBase-to-include-prefixes.patch" |
66 |
+) |
67 |
+ |
68 |
+DOCS=( README.md ) |
69 |
+ |
70 |
+src_configure() { |
71 |
+ local mycmakeargs=( |
72 |
+ -DCMAKE_DISABLE_FIND_PACKAGE_Python2=ON |
73 |
+ -DPYILMBASE_INSTALL_PKG_CONFIG=ON |
74 |
+ -DPYIMATH_ENABLE_EXCEPTIONS=$(usex exceptions) |
75 |
+ -DPython3_EXECUTABLE="${PYTHON}" |
76 |
+ -DPython3_INCLUDE_DIR=$(python_get_includedir) |
77 |
+ -DPython3_LIBRARY=$(python_get_library_path) |
78 |
+ ) |
79 |
+ cmake_src_configure |
80 |
+} |
81 |
+ |
82 |
+src_install() { |
83 |
+ cmake_src_install |
84 |
+ if use numpy; then |
85 |
+ python_domodule "${BUILD_DIR}/${EPYTHON/./_}/imathnumpy.so" |
86 |
+ chmod +x "${D}/$(python_get_sitedir)/imathnumpy.so" || die |
87 |
+ fi |
88 |
+} |
89 |
|
90 |
diff --git a/dev-python/pyilmbase/pyilmbase-2.5.2.ebuild b/dev-python/pyilmbase/pyilmbase-2.5.2.ebuild |
91 |
deleted file mode 100644 |
92 |
index 0411b0530d8..00000000000 |
93 |
--- a/dev-python/pyilmbase/pyilmbase-2.5.2.ebuild |
94 |
+++ /dev/null |
95 |
@@ -1,77 +0,0 @@ |
96 |
-# Copyright 1999-2020 Gentoo Authors |
97 |
-# Distributed under the terms of the GNU General Public License v2 |
98 |
- |
99 |
-EAPI=7 |
100 |
- |
101 |
-# boost is lacking py39 support as of 20200605 |
102 |
-PYTHON_COMPAT=( python3_{6,7,8} ) |
103 |
-CMAKE_ECLASS=cmake |
104 |
-inherit cmake-multilib python-r1 |
105 |
- |
106 |
-DESCRIPTION="IlmBase Python bindings" |
107 |
-HOMEPAGE="https://www.openexr.com" |
108 |
-SRC_URI="https://github.com/AcademySoftwareFoundation/openexr/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
109 |
- |
110 |
-LICENSE="BSD" |
111 |
-SLOT="0/25" |
112 |
-KEYWORDS="~amd64 ~x86" |
113 |
-IUSE="exceptions +numpy test" |
114 |
-REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
115 |
-RESTRICT="!test? ( test )" |
116 |
- |
117 |
-RDEPEND=" |
118 |
- ${PYTHON_DEPS} |
119 |
- >=dev-libs/boost-1.62.0-r1:=[python,${MULTILIB_USEDEP},${PYTHON_USEDEP}] |
120 |
- ~media-libs/ilmbase-${PV}:=[${MULTILIB_USEDEP}] |
121 |
- sys-libs/zlib[${MULTILIB_USEDEP}] |
122 |
- numpy? ( >=dev-python/numpy-1.10.4[${PYTHON_USEDEP}] ) |
123 |
-" |
124 |
-DEPEND="${RDEPEND}" |
125 |
-BDEPEND="virtual/pkgconfig" |
126 |
- |
127 |
-S="${WORKDIR}/openexr-${PV}/PyIlmBase" |
128 |
- |
129 |
-PATCHES=( |
130 |
- "${FILESDIR}/${P}-0001-Fix-pkgconfig-file-for-PyIlmBase-to-include-prefixes.patch" |
131 |
-) |
132 |
- |
133 |
-DOCS=( README.md ) |
134 |
- |
135 |
-multilib_src_prepare() { |
136 |
- cmake_src_prepare |
137 |
- multilib_copy_sources |
138 |
-} |
139 |
- |
140 |
-multilib_src_configure() { |
141 |
- python_configure() { |
142 |
- local mycmakeargs=( |
143 |
- -DCMAKE_DISABLE_FIND_PACKAGE_Python2=ON |
144 |
- -DPYILMBASE_INSTALL_PKG_CONFIG=ON |
145 |
- -DPYIMATH_ENABLE_EXCEPTIONS=$(usex exceptions) |
146 |
- -DPython3_EXECUTABLE="${PYTHON}" |
147 |
- -DPython3_INCLUDE_DIR=$(python_get_includedir) |
148 |
- -DPython3_LIBRARY=$(python_get_library_path) |
149 |
- ) |
150 |
- cmake_src_configure |
151 |
- } |
152 |
- python_foreach_impl python_configure |
153 |
-} |
154 |
- |
155 |
-multilib_src_compile() { |
156 |
- python_foreach_impl cmake_src_compile |
157 |
-} |
158 |
- |
159 |
-multilib_src_install() { |
160 |
- python_install() { |
161 |
- cmake_src_install |
162 |
- if use numpy; then |
163 |
- python_domodule "${BUILD_DIR}/${EPYTHON/./_}/imathnumpy.so" |
164 |
- chmod +x "${D}/$(python_get_sitedir)/imathnumpy.so" || die |
165 |
- fi |
166 |
- } |
167 |
- python_foreach_impl python_install |
168 |
-} |
169 |
- |
170 |
-multilib_src_test() { |
171 |
- python_foreach_impl cmake_src_test |
172 |
-} |