1 |
commit: 6a97131300269627ef811261f8c822130e433506 |
2 |
Author: Bernd Waibel <waebbl-gentoo <AT> posteo <DOT> net> |
3 |
AuthorDate: Sat May 21 14:44:52 2022 +0000 |
4 |
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Jun 3 12:34:50 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6a971313 |
7 |
|
8 |
media-libs/assimp: add 5.2.4 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/846698 |
11 |
Signed-off-by: Bernd Waibel <waebbl-gentoo <AT> posteo.net> |
12 |
Closes: https://github.com/gentoo/gentoo/pull/25589 |
13 |
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org> |
14 |
|
15 |
media-libs/assimp/Manifest | 1 + |
16 |
media-libs/assimp/assimp-5.2.4.ebuild | 66 +++++++++ |
17 |
...p-5.2.4-drop-failing-tests-for-abi_x86_32.patch | 165 +++++++++++++++++++++ |
18 |
3 files changed, 232 insertions(+) |
19 |
|
20 |
diff --git a/media-libs/assimp/Manifest b/media-libs/assimp/Manifest |
21 |
index c8a058fd549a..b5c0f828ac95 100644 |
22 |
--- a/media-libs/assimp/Manifest |
23 |
+++ b/media-libs/assimp/Manifest |
24 |
@@ -1,4 +1,5 @@ |
25 |
DIST assimp-5.0.1.tar.gz 46607553 BLAKE2B 7f8cdf2bc602398fbdb675094d135e955716deb8f6469a4b68f7a8c735ecaa3120ee023c5c1f95c5a79c0606ed9a3cb3491c5011e2b409da523b56cd193ebb60 SHA512 51b704ffea778638b9e228578650f62691c56ee1a90337f8bbbee37e807455466d818234be24852334e5806260e5690932c9bd8e00f055c5c26782e0636538f0 |
26 |
DIST assimp-5.2.2.tar.gz 49600909 BLAKE2B f5f8b5fc43a44c59c95ac3a1f2ce861a5198851ca910ec7688a818550aa0cde787901f7a7beb9f90f7fe731e18f3c31c7350d3b3070f7437153ff9d041f6ffdf SHA512 7f11f3e53bdcd43a81be49ce2ad90d97769ae1c3c6157f57e8a0b2b41c72f394ad1afcdc5f5fa6fbfa1a44233fed4b9a578d5548ec5b9aae2113ef88c2ec843a |
27 |
DIST assimp-5.2.3.tar.gz 49606233 BLAKE2B d6904769f1812b875a3b30de9edf35d9ca1774aecefe4d84edaaaa2975be1350de46e259e14b40f7749921c398490e7aea08c30c0ee89a69aedeab8f02a3e863 SHA512 accc1020877b631431bd0bc2de20b530d7e8d234e960904070292a4a08e768c55d1d0cf614c68d38f099fab2d086420c3ffd3f729cb538b169c1275ef0be1eaa |
28 |
+DIST assimp-5.2.4.tar.gz 49613683 BLAKE2B d99243ce84a76ea237becd0b0982619e8f948ebc75784d8ea35e3800b9ca5084291fa58484433e4f2a7c3cd7ec2869033cf458daf94ee0fc4fe3283592721e73 SHA512 ee988b1806b46c78f97bb5b25237a3f56a7028ed37898fb9b243e379e29e8bfd29e4dffc616566941ed9bdcf502bd30568904ad2ef2ef7d0f63b40daefdc66bf |
29 |
DIST assimp-docs-5.0.1.pdf 315941 BLAKE2B 06b2d3a68b6f70fd2ca3daee6cbcd79da255ec8ba00383077b775a1e032ab9675b5f70f2c5e9c1a6f51a4c65b482dfd7bce6c8be3c0288d6f6a653feaa7dfd84 SHA512 f37b8eb8d3a3c6198a91f03fd712a911990aa2d5f50e5039d54349dd673e5270e11ff55aa430f7c3ccbb142cb3b9530684157c25d8a533861b6de34064ab339e |
30 |
|
31 |
diff --git a/media-libs/assimp/assimp-5.2.4.ebuild b/media-libs/assimp/assimp-5.2.4.ebuild |
32 |
new file mode 100644 |
33 |
index 000000000000..c89ba2b0796b |
34 |
--- /dev/null |
35 |
+++ b/media-libs/assimp/assimp-5.2.4.ebuild |
36 |
@@ -0,0 +1,66 @@ |
37 |
+# Copyright 1999-2022 Gentoo Authors |
38 |
+# Distributed under the terms of the GNU General Public License v2 |
39 |
+ |
40 |
+EAPI=8 |
41 |
+ |
42 |
+inherit cmake |
43 |
+ |
44 |
+DESCRIPTION="Importer library to import assets from 3D files" |
45 |
+HOMEPAGE="https://github.com/assimp/assimp" |
46 |
+SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
47 |
+ |
48 |
+LICENSE="BSD" |
49 |
+SLOT="0/5.2.4" |
50 |
+KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86" |
51 |
+IUSE="samples test" |
52 |
+ |
53 |
+RESTRICT="!test? ( test )" |
54 |
+ |
55 |
+RDEPEND=" |
56 |
+ dev-libs/boost:= |
57 |
+ sys-libs/zlib[minizip] |
58 |
+ samples? ( |
59 |
+ media-libs/freeglut |
60 |
+ virtual/opengl |
61 |
+ x11-libs/libX11 |
62 |
+ ) |
63 |
+" |
64 |
+DEPEND="${RDEPEND}" |
65 |
+ |
66 |
+PATCHES=( |
67 |
+ "${FILESDIR}"/${PN}-5.2.2-fix-usage-of-incompatible-minizip-data-structure.patch |
68 |
+ "${FILESDIR}"/${PN}-5.2.2-disable-failing-tests.patch |
69 |
+) |
70 |
+ |
71 |
+DOCS=( CodeConventions.md Readme.md ) |
72 |
+ |
73 |
+src_prepare() { |
74 |
+ if use x86 ; then |
75 |
+ eapply "${FILESDIR}"/${P}-drop-failing-tests-for-abi_x86_32.patch |
76 |
+ fi |
77 |
+ |
78 |
+ cmake_src_prepare |
79 |
+} |
80 |
+ |
81 |
+src_configure() { |
82 |
+ local mycmakeargs=( |
83 |
+ -DASSIMP_ASAN=OFF |
84 |
+ -DASSIMP_BUILD_DOCS=OFF |
85 |
+ -DASSIMP_BUILD_SAMPLES=$(usex samples) |
86 |
+ -DASSIMP_BUILD_TESTS=$(usex test) |
87 |
+ -DASSIMP_INJECT_DEBUG_POSTFIX=OFF |
88 |
+ -DASSIMP_IGNORE_GIT_HASH=ON |
89 |
+ -DASSIMP_UBSAN=OFF |
90 |
+ -DASSIMP_WARNINGS_AS_ERRORS=OFF |
91 |
+ ) |
92 |
+ |
93 |
+ if use samples; then |
94 |
+ mycmakeargs+=( -DOpenGL_GL_PREFERENCE="GLVND" ) |
95 |
+ fi |
96 |
+ |
97 |
+ cmake_src_configure |
98 |
+} |
99 |
+ |
100 |
+src_test() { |
101 |
+ "${BUILD_DIR}/bin/unit" || die |
102 |
+} |
103 |
|
104 |
diff --git a/media-libs/assimp/files/assimp-5.2.4-drop-failing-tests-for-abi_x86_32.patch b/media-libs/assimp/files/assimp-5.2.4-drop-failing-tests-for-abi_x86_32.patch |
105 |
new file mode 100644 |
106 |
index 000000000000..fba27be45315 |
107 |
--- /dev/null |
108 |
+++ b/media-libs/assimp/files/assimp-5.2.4-drop-failing-tests-for-abi_x86_32.patch |
109 |
@@ -0,0 +1,165 @@ |
110 |
+https://bugs.gentoo.org/840767 |
111 |
+https://github.com/assimp/assimp/issues/4438 |
112 |
+ |
113 |
+From 48cb5451383855755debfc17cb5e3428cba2d94e Mon Sep 17 00:00:00 2001 |
114 |
+From: Bernd Waibel <waebbl-gentoo@××××××.net> |
115 |
+Date: Sat, 21 May 2022 17:37:04 +0200 |
116 |
+Subject: [PATCH] drop failing tests for abi_x86_32 |
117 |
+ |
118 |
+Drop two additional test wrt 5.2.3 |
119 |
+Signed-off-by: Bernd Waibel <waebbl-gentoo@××××××.net> |
120 |
+--- a/test/unit/AssimpAPITest_aiMatrix3x3.cpp |
121 |
++++ b/test/unit/AssimpAPITest_aiMatrix3x3.cpp |
122 |
+@@ -68,13 +68,6 @@ TEST_F(AssimpAPITest_aiMatrix3x3, aiMatrix3FromMatrix4Test) { |
123 |
+ EXPECT_EQ(result_cpp, result_c); |
124 |
+ } |
125 |
+ |
126 |
+-TEST_F(AssimpAPITest_aiMatrix3x3, aiMatrix3FromQuaternionTest) { |
127 |
+- const auto q = random_quat(); |
128 |
+- result_cpp = q.GetMatrix(); |
129 |
+- aiMatrix3FromQuaternion(&result_c, &q); |
130 |
+- EXPECT_EQ(result_cpp, result_c); |
131 |
+-} |
132 |
+- |
133 |
+ TEST_F(AssimpAPITest_aiMatrix3x3, aiMatrix3AreEqualTest) { |
134 |
+ result_c = result_cpp = random_mat3(); |
135 |
+ EXPECT_EQ(result_cpp == result_c, |
136 |
+@@ -127,14 +120,6 @@ TEST_F(AssimpAPITest_aiMatrix3x3, aiMatrix3RotationZTest) { |
137 |
+ EXPECT_EQ(result_cpp, result_c); |
138 |
+ } |
139 |
+ |
140 |
+-TEST_F(AssimpAPITest_aiMatrix3x3, aiMatrix3FromRotationAroundAxisTest) { |
141 |
+- const float angle(RandPI.next()); |
142 |
+- const auto axis = random_unit_vec3(); |
143 |
+- aiMatrix3x3::Rotation(angle, axis, result_cpp); |
144 |
+- aiMatrix3FromRotationAroundAxis(&result_c, &axis, angle); |
145 |
+- EXPECT_EQ(result_cpp, result_c); |
146 |
+-} |
147 |
+- |
148 |
+ TEST_F(AssimpAPITest_aiMatrix3x3, aiMatrix3TranslationTest) { |
149 |
+ const auto axis = random_vec2(); |
150 |
+ aiMatrix3x3::Translation(axis, result_cpp); |
151 |
+--- a/test/unit/AssimpAPITest_aiMatrix4x4.cpp |
152 |
++++ b/test/unit/AssimpAPITest_aiMatrix4x4.cpp |
153 |
+@@ -78,15 +78,6 @@ TEST_F(AssimpAPITest_aiMatrix4x4, aiMatrix4FromMatrix3Test) { |
154 |
+ EXPECT_EQ(result_cpp, result_c); |
155 |
+ } |
156 |
+ |
157 |
+-TEST_F(AssimpAPITest_aiMatrix4x4, aiMatrix4FromScalingQuaternionPositionTest) { |
158 |
+- const aiVector3D s = random_vec3(); |
159 |
+- const aiQuaternion q = random_quat(); |
160 |
+- const aiVector3D t = random_vec3(); |
161 |
+- result_cpp = aiMatrix4x4(s, q, t); |
162 |
+- aiMatrix4FromScalingQuaternionPosition(&result_c, &s, &q, &t); |
163 |
+- EXPECT_EQ(result_cpp, result_c); |
164 |
+-} |
165 |
+- |
166 |
+ TEST_F(AssimpAPITest_aiMatrix4x4, aiMatrix4AddTest) { |
167 |
+ const aiMatrix4x4 temp = random_mat4(); |
168 |
+ result_c = result_cpp = random_mat4(); |
169 |
+@@ -135,12 +126,6 @@ TEST_F(AssimpAPITest_aiMatrix4x4, aiMatrix4InverseTest) { |
170 |
+ EXPECT_EQ(result_cpp, result_c); |
171 |
+ } |
172 |
+ |
173 |
+-TEST_F(AssimpAPITest_aiMatrix4x4, aiMatrix4DeterminantTest) { |
174 |
+- result_c = result_cpp = random_mat4(); |
175 |
+- EXPECT_EQ(result_cpp.Determinant(), |
176 |
+- aiMatrix4Determinant(&result_c)); |
177 |
+-} |
178 |
+- |
179 |
+ TEST_F(AssimpAPITest_aiMatrix4x4, aiMatrix4IsIdentityTest) { |
180 |
+ EXPECT_EQ(result_cpp.IsIdentity(), |
181 |
+ (bool)aiMatrix4IsIdentity(&result_c)); |
182 |
+@@ -228,14 +213,6 @@ TEST_F(AssimpAPITest_aiMatrix4x4, aiMatrix4RotationZTest) { |
183 |
+ EXPECT_EQ(result_cpp, result_c); |
184 |
+ } |
185 |
+ |
186 |
+-TEST_F(AssimpAPITest_aiMatrix4x4, aiMatrix4FromRotationAroundAxisTest) { |
187 |
+- const float angle(RandPI.next()); |
188 |
+- const auto axis = random_unit_vec3(); |
189 |
+- aiMatrix4x4::Rotation(angle, axis, result_cpp); |
190 |
+- aiMatrix4FromRotationAroundAxis(&result_c, &axis, angle); |
191 |
+- EXPECT_EQ(result_cpp, result_c); |
192 |
+-} |
193 |
+- |
194 |
+ TEST_F(AssimpAPITest_aiMatrix4x4, aiMatrix4TranslationTest) { |
195 |
+ const auto axis = random_vec3(); |
196 |
+ aiMatrix4x4::Translation(axis, result_cpp); |
197 |
+--- a/test/unit/AssimpAPITest_aiQuaternion.cpp |
198 |
++++ b/test/unit/AssimpAPITest_aiQuaternion.cpp |
199 |
+@@ -54,19 +54,6 @@ protected: |
200 |
+ aiQuaternion result_c, result_cpp; |
201 |
+ }; |
202 |
+ |
203 |
+-TEST_F(AssimpAPITest_aiQuaternion, aiCreateQuaternionFromMatrixTest) { |
204 |
+- // Use a predetermined transformation matrix |
205 |
+- // to prevent running into division by zero. |
206 |
+- aiMatrix3x3 m, r; |
207 |
+- aiMatrix3x3::Translation(aiVector2D(14,-25), m); |
208 |
+- aiMatrix3x3::RotationZ(Math::aiPi<float>() / 4.0f, r); |
209 |
+- m = m * r; |
210 |
+- |
211 |
+- result_cpp = aiQuaternion(m); |
212 |
+- aiCreateQuaternionFromMatrix(&result_c, &m); |
213 |
+- EXPECT_EQ(result_cpp, result_c); |
214 |
+-} |
215 |
+- |
216 |
+ TEST_F(AssimpAPITest_aiQuaternion, aiQuaternionFromEulerAnglesTest) { |
217 |
+ const float x(RandPI.next()), |
218 |
+ y(RandPI.next()), |
219 |
+--- a/test/unit/AssimpAPITest_aiVector2D.cpp |
220 |
++++ b/test/unit/AssimpAPITest_aiVector2D.cpp |
221 |
+@@ -67,28 +67,6 @@ TEST_F(AssimpAPITest_aiVector2D, aiVector2AreEqualEpsilonTest) { |
222 |
+ (bool)aiVector2AreEqualEpsilon(&result_cpp, &result_c, Epsilon)); |
223 |
+ } |
224 |
+ |
225 |
+-TEST_F(AssimpAPITest_aiVector2D, aiVector2AddTest) { |
226 |
+- result_c = result_cpp = random_vec2(); |
227 |
+- result_cpp += temp; |
228 |
+- aiVector2Add(&result_c, &temp); |
229 |
+- EXPECT_EQ(result_cpp, result_c); |
230 |
+-} |
231 |
+- |
232 |
+-TEST_F(AssimpAPITest_aiVector2D, aiVector2SubtractTest) { |
233 |
+- result_c = result_cpp = random_vec2(); |
234 |
+- result_cpp -= temp; |
235 |
+- aiVector2Subtract(&result_c, &temp); |
236 |
+- EXPECT_EQ(result_cpp, result_c); |
237 |
+-} |
238 |
+- |
239 |
+-TEST_F(AssimpAPITest_aiVector2D, aiVector2ScaleTest) { |
240 |
+- const float FACTOR = RandNonZero.next(); |
241 |
+- result_c = result_cpp = random_vec2(); |
242 |
+- result_cpp *= FACTOR; |
243 |
+- aiVector2Scale(&result_c, FACTOR); |
244 |
+- EXPECT_EQ(result_cpp, result_c); |
245 |
+-} |
246 |
+- |
247 |
+ TEST_F(AssimpAPITest_aiVector2D, aiVector2SymMulTest) { |
248 |
+ result_c = result_cpp = random_vec2(); |
249 |
+ result_cpp = result_cpp.SymMul(temp); |
250 |
+@@ -96,21 +74,6 @@ TEST_F(AssimpAPITest_aiVector2D, aiVector2SymMulTest) { |
251 |
+ EXPECT_EQ(result_cpp, result_c); |
252 |
+ } |
253 |
+ |
254 |
+-TEST_F(AssimpAPITest_aiVector2D, aiVector2DivideByScalarTest) { |
255 |
+- const float DIVISOR = RandNonZero.next(); |
256 |
+- result_c = result_cpp = random_vec2(); |
257 |
+- result_cpp /= DIVISOR; |
258 |
+- aiVector2DivideByScalar(&result_c, DIVISOR); |
259 |
+- EXPECT_EQ(result_cpp, result_c); |
260 |
+-} |
261 |
+- |
262 |
+-TEST_F(AssimpAPITest_aiVector2D, aiVector2DivideByVectorTest) { |
263 |
+- result_c = result_cpp = random_vec2(); |
264 |
+- result_cpp = result_cpp / temp; |
265 |
+- aiVector2DivideByVector(&result_c, &temp); |
266 |
+- EXPECT_EQ(result_cpp, result_c); |
267 |
+-} |
268 |
+- |
269 |
+ TEST_F(AssimpAPITest_aiVector2D, aiVector2LengthTest) { |
270 |
+ result_c = result_cpp = random_vec2(); |
271 |
+ EXPECT_EQ(result_cpp.Length(), aiVector2Length(&result_c)); |
272 |
+-- |
273 |
+2.35.1 |
274 |
+ |