1 |
commit: 586bd49181ad3b91291ac4d9bdd05f70b7dc2dce |
2 |
Author: Bernd Waibel <waebbl-gentoo <AT> posteo <DOT> net> |
3 |
AuthorDate: Sun Jul 24 14:33:40 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Aug 23 05:10:55 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=586bd491 |
7 |
|
8 |
media-libs/assimp: fix version mismatch in pkg-config and cmake files |
9 |
|
10 |
Closes: https://bugs.gentoo.org/859862 |
11 |
Bug: https://github.com/assimp/assimp/issues/4655 |
12 |
Signed-off-by: Bernd Waibel <waebbl-gentoo <AT> posteo.net> |
13 |
Closes: https://github.com/gentoo/gentoo/pull/26566 |
14 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
15 |
|
16 |
media-libs/assimp/assimp-5.2.4-r1.ebuild | 67 ++++++++++++++++++++++ |
17 |
.../assimp/files/assimp-5.2.4-update-version.patch | 34 +++++++++++ |
18 |
2 files changed, 101 insertions(+) |
19 |
|
20 |
diff --git a/media-libs/assimp/assimp-5.2.4-r1.ebuild b/media-libs/assimp/assimp-5.2.4-r1.ebuild |
21 |
new file mode 100644 |
22 |
index 000000000000..a6b0a428bfd5 |
23 |
--- /dev/null |
24 |
+++ b/media-libs/assimp/assimp-5.2.4-r1.ebuild |
25 |
@@ -0,0 +1,67 @@ |
26 |
+# Copyright 1999-2022 Gentoo Authors |
27 |
+# Distributed under the terms of the GNU General Public License v2 |
28 |
+ |
29 |
+EAPI=8 |
30 |
+ |
31 |
+inherit cmake |
32 |
+ |
33 |
+DESCRIPTION="Importer library to import assets from 3D files" |
34 |
+HOMEPAGE="https://github.com/assimp/assimp" |
35 |
+SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
36 |
+ |
37 |
+LICENSE="BSD" |
38 |
+SLOT="0/5.2.4" |
39 |
+KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86" |
40 |
+IUSE="samples test" |
41 |
+ |
42 |
+RESTRICT="!test? ( test )" |
43 |
+ |
44 |
+RDEPEND=" |
45 |
+ dev-libs/boost:= |
46 |
+ sys-libs/zlib[minizip] |
47 |
+ samples? ( |
48 |
+ media-libs/freeglut |
49 |
+ virtual/opengl |
50 |
+ x11-libs/libX11 |
51 |
+ ) |
52 |
+" |
53 |
+DEPEND="${RDEPEND}" |
54 |
+ |
55 |
+PATCHES=( |
56 |
+ "${FILESDIR}"/${PN}-5.2.2-fix-usage-of-incompatible-minizip-data-structure.patch |
57 |
+ "${FILESDIR}"/${PN}-5.2.2-disable-failing-tests.patch |
58 |
+ "${FILESDIR}"/${P}-update-version.patch |
59 |
+) |
60 |
+ |
61 |
+DOCS=( CodeConventions.md Readme.md ) |
62 |
+ |
63 |
+src_prepare() { |
64 |
+ if use x86 ; then |
65 |
+ eapply "${FILESDIR}"/${P}-drop-failing-tests-for-abi_x86_32.patch |
66 |
+ fi |
67 |
+ |
68 |
+ cmake_src_prepare |
69 |
+} |
70 |
+ |
71 |
+src_configure() { |
72 |
+ local mycmakeargs=( |
73 |
+ -DASSIMP_ASAN=OFF |
74 |
+ -DASSIMP_BUILD_DOCS=OFF |
75 |
+ -DASSIMP_BUILD_SAMPLES=$(usex samples) |
76 |
+ -DASSIMP_BUILD_TESTS=$(usex test) |
77 |
+ -DASSIMP_INJECT_DEBUG_POSTFIX=OFF |
78 |
+ -DASSIMP_IGNORE_GIT_HASH=ON |
79 |
+ -DASSIMP_UBSAN=OFF |
80 |
+ -DASSIMP_WARNINGS_AS_ERRORS=OFF |
81 |
+ ) |
82 |
+ |
83 |
+ if use samples; then |
84 |
+ mycmakeargs+=( -DOpenGL_GL_PREFERENCE="GLVND" ) |
85 |
+ fi |
86 |
+ |
87 |
+ cmake_src_configure |
88 |
+} |
89 |
+ |
90 |
+src_test() { |
91 |
+ "${BUILD_DIR}/bin/unit" || die |
92 |
+} |
93 |
|
94 |
diff --git a/media-libs/assimp/files/assimp-5.2.4-update-version.patch b/media-libs/assimp/files/assimp-5.2.4-update-version.patch |
95 |
new file mode 100644 |
96 |
index 000000000000..cc70165bc2e0 |
97 |
--- /dev/null |
98 |
+++ b/media-libs/assimp/files/assimp-5.2.4-update-version.patch |
99 |
@@ -0,0 +1,34 @@ |
100 |
+https://github.com/assimp/assimp/issues/4655 |
101 |
+https://github.com/assimp/assimp/pull/4656 |
102 |
+ |
103 |
+From 304b0f61d7c9ef7e2e5ca2eed185b32a2951aa90 Mon Sep 17 00:00:00 2001 |
104 |
+From: Bernd Waibel <waebbl-gentoo@××××××.net> |
105 |
+Date: Sat, 30 Jul 2022 09:39:12 +0200 |
106 |
+Subject: [PATCH] update version |
107 |
+ |
108 |
+Signed-off-by: Bernd Waibel <waebbl-gentoo@××××××.net> |
109 |
+--- a/CMakeLists.txt |
110 |
++++ b/CMakeLists.txt |
111 |
+@@ -56,7 +56,7 @@ IF(ASSIMP_HUNTER_ENABLED) |
112 |
+ add_definitions(-DASSIMP_USE_HUNTER) |
113 |
+ ENDIF() |
114 |
+ |
115 |
+-PROJECT(Assimp VERSION 5.2.0) |
116 |
++PROJECT(Assimp VERSION 5.2.4) |
117 |
+ |
118 |
+ # All supported options ############################################### |
119 |
+ |
120 |
+--- a/test/unit/utVersion.cpp |
121 |
++++ b/test/unit/utVersion.cpp |
122 |
+@@ -61,7 +61,7 @@ TEST_F( utVersion, aiGetVersionMajorTest ) { |
123 |
+ } |
124 |
+ |
125 |
+ TEST_F( utVersion, aiGetVersionPatchTest ) { |
126 |
+- EXPECT_EQ(aiGetVersionPatch(), 0U ); |
127 |
++ EXPECT_EQ(aiGetVersionPatch(), 4U ); |
128 |
+ } |
129 |
+ |
130 |
+ TEST_F( utVersion, aiGetCompileFlagsTest ) { |
131 |
+-- |
132 |
+2.35.1 |
133 |
+ |