1 |
commit: 05f6da0ae504cd86e358b848bf1d3f6c57d8b326 |
2 |
Author: Alexey Sokolov <sokolov <AT> google <DOT> com> |
3 |
AuthorDate: Sun Aug 9 21:34:14 2020 +0000 |
4 |
Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Aug 17 21:49:56 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=05f6da0a |
7 |
|
8 |
games-engines/openmw: drop old 0.45.0 |
9 |
|
10 |
Package-Manager: Portage-2.3.103, Repoman-2.3.23 |
11 |
Signed-off-by: Alexey Sokolov <alexey+gentoo <AT> asokolov.org> |
12 |
Closes: https://github.com/gentoo/gentoo/pull/17064 |
13 |
Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org> |
14 |
|
15 |
games-engines/openmw/Manifest | 1 - |
16 |
.../openmw/files/openmw-0.45.0-osg-3.6.5-1.patch | 51 -------- |
17 |
.../openmw/files/openmw-0.45.0-osg-3.6.5-2.patch | 21 ---- |
18 |
games-engines/openmw/openmw-0.45.0.ebuild | 131 --------------------- |
19 |
4 files changed, 204 deletions(-) |
20 |
|
21 |
diff --git a/games-engines/openmw/Manifest b/games-engines/openmw/Manifest |
22 |
index 6f88c3b39a9..08b631916bc 100644 |
23 |
--- a/games-engines/openmw/Manifest |
24 |
+++ b/games-engines/openmw/Manifest |
25 |
@@ -1,3 +1,2 @@ |
26 |
-DIST openmw-0.45.0.tar.gz 4711103 BLAKE2B 85676294b07170dd6845892e9e7b354c5767428584c76ea2e1a64e9f9c72c46c279fdf5043058d37b927cb55e6cf2e2222833129d64954cdcdb3af4eb4b84dc3 SHA512 b968426659457cf486f6756f7ab82cc4cb34a92923c433dd86f711e5d7097f75441ed17daa50d21f15f1847f5aed1f4c3a094a06cfd3f2e9b90aa182742c596f |
27 |
DIST openmw-0.46.0-floattest.patch 43168 BLAKE2B 060b529fd4cd01f0fc723bb5a00a256b9c1ae4413c7b22581467cce75416e01041c3af22f0215ad9b1c475965a988065e0860c01c1e71d97454b022eec4779ea SHA512 0e165417e9ae047231fdc27b62251b33867f3782c1753f81705c886d6d3a433c8bbc3b4653a2555bc644bad11db9769d4bc2abcc84ca3ab23fabb6b80347bc32 |
28 |
DIST openmw-0.46.0.tar.gz 5155004 BLAKE2B 8ad94a7fffe5a0739c56c778efe2ec17ef66c312a7fe5caf015cf3cad2bc17d2abe8cdc3f4134049a32fe55c4f4b3f72678d2d0ce1037fd02f6ac753b9d89b2c SHA512 da384aead300552817c0d0ce03515a5ccc95dcab4e02d4c1dd0d6c5f1b01ee01209bbaea74e2d12021e3465e49b051823bb018de39675c5a22c6892893624486 |
29 |
|
30 |
diff --git a/games-engines/openmw/files/openmw-0.45.0-osg-3.6.5-1.patch b/games-engines/openmw/files/openmw-0.45.0-osg-3.6.5-1.patch |
31 |
deleted file mode 100644 |
32 |
index b47fab28d12..00000000000 |
33 |
--- a/games-engines/openmw/files/openmw-0.45.0-osg-3.6.5-1.patch |
34 |
+++ /dev/null |
35 |
@@ -1,51 +0,0 @@ |
36 |
-From 807f550386a1eac6f7306589a4e4a01e783e65df Mon Sep 17 00:00:00 2001 |
37 |
-From: Alexander Olofsson <ace@×××××××.com> |
38 |
-Date: Thu, 13 Feb 2020 19:15:33 +0100 |
39 |
-Subject: [PATCH] Fix building mwrender/sky with OSG 3.6.5 |
40 |
- |
41 |
-OSG commit aff574b completely replaces the method of doing user-defined |
42 |
-query geometry, removing support for modifying the default geometry. |
43 |
---- |
44 |
- apps/openmw/mwrender/sky.cpp | 14 ++++++++++++-- |
45 |
- 1 file changed, 12 insertions(+), 2 deletions(-) |
46 |
- |
47 |
-diff --git a/apps/openmw/mwrender/sky.cpp b/apps/openmw/mwrender/sky.cpp |
48 |
-index 3996f472c2..e13f5a7b65 100644 |
49 |
---- a/apps/openmw/mwrender/sky.cpp |
50 |
-+++ b/apps/openmw/mwrender/sky.cpp |
51 |
-@@ -558,16 +558,22 @@ class Sun : public CelestialBody |
52 |
- osg::ref_ptr<osg::OcclusionQueryNode> oqn = new osg::OcclusionQueryNode; |
53 |
- oqn->setQueriesEnabled(true); |
54 |
- |
55 |
-+#if OSG_VERSION_GREATER_OR_EQUAL(3, 6, 5) |
56 |
-+ // With OSG 3.6.5, the method of providing user defined query geometry has been completely replaced |
57 |
-+ osg::ref_ptr<osg::QueryGeometry> queryGeom = new osg::QueryGeometry(oqn->getName()); |
58 |
-+#else |
59 |
-+ auto* queryGeom = oqn->getQueryGeometry(); |
60 |
-+#endif |
61 |
-+ |
62 |
- // Make it fast! A DYNAMIC query geometry means we can't break frame until the flare is rendered (which is rendered after all the other geometry, |
63 |
- // so that would be pretty bad). STATIC should be safe, since our node's local bounds are static, thus computeBounds() which modifies the queryGeometry |
64 |
- // is only called once. |
65 |
- // Note the debug geometry setDebugDisplay(true) is always DYNAMIC and that can't be changed, not a big deal. |
66 |
-- oqn->getQueryGeometry()->setDataVariance(osg::Object::STATIC); |
67 |
-+ queryGeom->setDataVariance(osg::Object::STATIC); |
68 |
- |
69 |
- // Set up the query geometry to match the actual sun's rendering shape. osg::OcclusionQueryNode wasn't originally intended to allow this, |
70 |
- // normally it would automatically adjust the query geometry to match the sub graph's bounding box. The below hack is needed to |
71 |
- // circumvent this. |
72 |
-- osg::Geometry* queryGeom = oqn->getQueryGeometry(); |
73 |
- queryGeom->setVertexArray(mGeom->getVertexArray()); |
74 |
- queryGeom->setTexCoordArray(0, mGeom->getTexCoordArray(0), osg::Array::BIND_PER_VERTEX); |
75 |
- queryGeom->removePrimitiveSet(0, oqn->getQueryGeometry()->getNumPrimitiveSets()); |
76 |
-@@ -578,6 +584,10 @@ class Sun : public CelestialBody |
77 |
- // Still need a proper bounding sphere. |
78 |
- oqn->setInitialBound(queryGeom->getBound()); |
79 |
- |
80 |
-+#if OSG_VERSION_GREATER_OR_EQUAL(3, 6, 5) |
81 |
-+ oqn->setQueryGeometry(queryGeom.release()); |
82 |
-+#endif |
83 |
-+ |
84 |
- osg::StateSet* queryStateSet = new osg::StateSet; |
85 |
- if (queryVisible) |
86 |
- { |
87 |
|
88 |
diff --git a/games-engines/openmw/files/openmw-0.45.0-osg-3.6.5-2.patch b/games-engines/openmw/files/openmw-0.45.0-osg-3.6.5-2.patch |
89 |
deleted file mode 100644 |
90 |
index 6b13291911c..00000000000 |
91 |
--- a/games-engines/openmw/files/openmw-0.45.0-osg-3.6.5-2.patch |
92 |
+++ /dev/null |
93 |
@@ -1,21 +0,0 @@ |
94 |
-From 7db58a893a1448b7229de5464696b3cc6eb7663c Mon Sep 17 00:00:00 2001 |
95 |
-From: Alexander Olofsson <ace@×××××××.com> |
96 |
-Date: Thu, 13 Feb 2020 19:32:17 +0100 |
97 |
-Subject: [PATCH] Ensure osg/Version is included |
98 |
- |
99 |
---- |
100 |
- apps/openmw/mwrender/sky.cpp | 1 + |
101 |
- 1 file changed, 1 insertion(+) |
102 |
- |
103 |
-diff --git a/apps/openmw/mwrender/sky.cpp b/apps/openmw/mwrender/sky.cpp |
104 |
-index e13f5a7b65..7cf2af88d0 100644 |
105 |
---- a/apps/openmw/mwrender/sky.cpp |
106 |
-+++ b/apps/openmw/mwrender/sky.cpp |
107 |
-@@ -16,6 +16,7 @@ |
108 |
- #include <osg/BlendFunc> |
109 |
- #include <osg/AlphaFunc> |
110 |
- #include <osg/PolygonOffset> |
111 |
-+#include <osg/Version> |
112 |
- #include <osg/observer_ptr> |
113 |
- |
114 |
- #include <osgParticle/BoxPlacer> |
115 |
|
116 |
diff --git a/games-engines/openmw/openmw-0.45.0.ebuild b/games-engines/openmw/openmw-0.45.0.ebuild |
117 |
deleted file mode 100644 |
118 |
index 60c87d4697f..00000000000 |
119 |
--- a/games-engines/openmw/openmw-0.45.0.ebuild |
120 |
+++ /dev/null |
121 |
@@ -1,131 +0,0 @@ |
122 |
-# Copyright 1999-2020 Gentoo Authors |
123 |
-# Distributed under the terms of the GNU General Public License v2 |
124 |
- |
125 |
-EAPI=7 |
126 |
- |
127 |
-inherit cmake xdg-utils readme.gentoo-r1 |
128 |
- |
129 |
-DESCRIPTION="Open source reimplementation of TES III: Morrowind" |
130 |
-HOMEPAGE="https://openmw.org/" |
131 |
-SRC_URI="https://github.com/OpenMW/openmw/archive/${P}.tar.gz" |
132 |
- |
133 |
-LICENSE="GPL-3 MIT BitstreamVera ZLIB" |
134 |
-SLOT="0" |
135 |
-KEYWORDS="~amd64 ~x86" |
136 |
-IUSE="doc devtools +qt5" |
137 |
- |
138 |
-# FIXME: Unbundle dev-games/openscenegraph-qt in extern/osgQt directory, |
139 |
-# used when BUILD_OPENCS flag is enabled. See bug #676266. |
140 |
- |
141 |
-RDEPEND=" |
142 |
- dev-games/mygui |
143 |
- >=dev-games/openscenegraph-3.5.5:=[ffmpeg,jpeg,png,sdl,svg,truetype,zlib] |
144 |
- dev-libs/boost:=[threads] |
145 |
- dev-libs/tinyxml[stl] |
146 |
- media-libs/libsdl2[joystick,opengl,video] |
147 |
- media-libs/openal |
148 |
- media-video/ffmpeg:= |
149 |
- >=sci-physics/bullet-2.86:= |
150 |
- virtual/opengl |
151 |
- qt5? ( |
152 |
- app-arch/unshield |
153 |
- dev-qt/qtcore:5 |
154 |
- dev-qt/qtgui:5 |
155 |
- dev-qt/qtnetwork:5 |
156 |
- dev-qt/qtopengl:5 |
157 |
- dev-qt/qtwidgets:5 |
158 |
- ) |
159 |
-" |
160 |
- |
161 |
-DEPEND="${RDEPEND}" |
162 |
- |
163 |
-BDEPEND=" |
164 |
- virtual/pkgconfig |
165 |
- doc? ( |
166 |
- app-doc/doxygen[doc] |
167 |
- dev-python/sphinx |
168 |
- ) |
169 |
-" |
170 |
- |
171 |
-PATCHES=( "${FILESDIR}"/${P}-osg-3.6.5-{1,2}.patch ) # bug #709878 |
172 |
- |
173 |
-S="${WORKDIR}/${PN}-${P}" |
174 |
- |
175 |
-src_prepare() { |
176 |
- cmake_src_prepare |
177 |
- |
178 |
- # We don't install license files |
179 |
- sed -i '/LICDIR/d' CMakeLists.txt || die |
180 |
- |
181 |
- # Use the system tinyxml headers |
182 |
- rm -v extern/oics/tiny{str,xml}* || die |
183 |
-} |
184 |
- |
185 |
-src_configure() { |
186 |
- use devtools && ! use qt5 && \ |
187 |
- elog "'qt5' USE flag is disabled, 'openmw-cs' will not be installed" |
188 |
- |
189 |
- local mycmakeargs=( |
190 |
- -DBUILD_BSATOOL=$(usex devtools) |
191 |
- -DBUILD_DOCS=$(usex doc) |
192 |
- -DBUILD_ESMTOOL=$(usex devtools) |
193 |
- -DBUILD_LAUNCHER=$(usex qt5) |
194 |
- -DBUILD_NIFTEST=$(usex devtools) |
195 |
- -DBUILD_OPENCS=$(usex devtools $(usex qt5)) |
196 |
- -DBUILD_WIZARD=$(usex qt5) |
197 |
- -DBUILD_UNITTESTS=OFF |
198 |
- -DGLOBAL_DATA_PATH=/usr/share |
199 |
- -DICONDIR="/usr/share/icons/hicolor/256x256/apps" |
200 |
- -DMORROWIND_DATA_FILES="/usr/share/morrowind-data" |
201 |
- -DUSE_SYSTEM_TINYXML=ON |
202 |
- -DDESIRED_QT_VERSION=5 |
203 |
- ) |
204 |
- |
205 |
- cmake_src_configure |
206 |
-} |
207 |
- |
208 |
-src_compile() { |
209 |
- cmake_src_compile |
210 |
- |
211 |
- if use doc ; then |
212 |
- cmake_src_compile doc |
213 |
- find "${CMAKE_BUILD_DIR}"/docs/Doxygen/html \ |
214 |
- -name '*.md5' -type f -delete || die |
215 |
- HTML_DOCS=( "${CMAKE_BUILD_DIR}"/docs/Doxygen/html/. ) |
216 |
- fi |
217 |
-} |
218 |
- |
219 |
-src_install() { |
220 |
- cmake_src_install |
221 |
- |
222 |
- local DOC_CONTENTS=" |
223 |
- You need the original Morrowind data files. If you haven't |
224 |
- installed them yet, you can install them straight via the |
225 |
- installation wizard which is the officially supported method |
226 |
- (either by using the launcher or by calling 'openmw-wizard' |
227 |
- directly).\n" |
228 |
- |
229 |
- if ! use qt5; then |
230 |
- local DOC_CONTENTS+="\n\n |
231 |
- USE flag 'qt5' is disabled, 'openmw-launcher' and |
232 |
- 'openmw-wizard' are not available. You are on your own for |
233 |
- making the Morrowind data files available and pointing |
234 |
- openmw at them.\n\n |
235 |
- Additionally; you must import the Morrowind.ini file before |
236 |
- running openmw with the Morrowind data files for the first |
237 |
- time. Typically this can be done like so:\n\n |
238 |
- \t mkdir -p ~/.config/openmw\n |
239 |
- \t openmw-iniimporter /path/to/Morrowind.ini ~/.config/openmw/openmw.cfg" |
240 |
- fi |
241 |
- |
242 |
- readme.gentoo_create_doc |
243 |
-} |
244 |
- |
245 |
-pkg_postinst() { |
246 |
- xdg_icon_cache_update |
247 |
- readme.gentoo_print_elog |
248 |
-} |
249 |
- |
250 |
-pkg_postrm() { |
251 |
- xdg_icon_cache_update |
252 |
-} |