1 |
commit: a824605ace1f6e1179a5ea38bf1c9adf18bb7deb |
2 |
Author: James Le Cuirot <chewi <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jul 28 22:24:50 2019 +0000 |
4 |
Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jul 28 22:24:50 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a824605a |
7 |
|
8 |
games-engines/openmw: Bump to 0.45.0, EAPI 7, fix dependencies |
9 |
|
10 |
Package-Manager: Portage-2.3.69, Repoman-2.3.13 |
11 |
Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org> |
12 |
|
13 |
games-engines/openmw/Manifest | 1 + |
14 |
games-engines/openmw/openmw-0.45.0.ebuild | 129 ++++++++++++++++++++++++++++++ |
15 |
2 files changed, 130 insertions(+) |
16 |
|
17 |
diff --git a/games-engines/openmw/Manifest b/games-engines/openmw/Manifest |
18 |
index 664a8f7a5c7..8f8101ca1bc 100644 |
19 |
--- a/games-engines/openmw/Manifest |
20 |
+++ b/games-engines/openmw/Manifest |
21 |
@@ -1 +1,2 @@ |
22 |
DIST openmw-0.44.0.tar.gz 4976422 BLAKE2B 9dec8412aa68ac35ba51926c7e5c5a64ce717ea6677162e0b35439a59c482375b7729bd462fa6e8da2e9b463c1121cdca0a5b42f553095da82a83cefb11986ce SHA512 1b178891274361b7821ac1d3d66976ed5d443545531499d98f7ed30823f3891172cc5dcb3f7382ba0f561774a92b9ad8805e0c9582b78d2f010e4ed661219017 |
23 |
+DIST openmw-0.45.0.tar.gz 4711103 BLAKE2B 85676294b07170dd6845892e9e7b354c5767428584c76ea2e1a64e9f9c72c46c279fdf5043058d37b927cb55e6cf2e2222833129d64954cdcdb3af4eb4b84dc3 SHA512 b968426659457cf486f6756f7ab82cc4cb34a92923c433dd86f711e5d7097f75441ed17daa50d21f15f1847f5aed1f4c3a094a06cfd3f2e9b90aa182742c596f |
24 |
|
25 |
diff --git a/games-engines/openmw/openmw-0.45.0.ebuild b/games-engines/openmw/openmw-0.45.0.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..6a6f448a3fc |
28 |
--- /dev/null |
29 |
+++ b/games-engines/openmw/openmw-0.45.0.ebuild |
30 |
@@ -0,0 +1,129 @@ |
31 |
+# Copyright 1999-2019 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=7 |
35 |
+ |
36 |
+inherit cmake-utils xdg-utils readme.gentoo-r1 |
37 |
+ |
38 |
+DESCRIPTION="Open source reimplementation of TES III: Morrowind" |
39 |
+HOMEPAGE="https://openmw.org/" |
40 |
+SRC_URI="https://github.com/OpenMW/openmw/archive/${P}.tar.gz" |
41 |
+ |
42 |
+LICENSE="GPL-3 MIT BitstreamVera ZLIB" |
43 |
+SLOT="0" |
44 |
+KEYWORDS="~amd64 ~x86" |
45 |
+IUSE="doc devtools +qt5" |
46 |
+ |
47 |
+# FIXME: Unbundle dev-games/openscenegraph-qt in extern/osgQt directory, |
48 |
+# used when BUILD_OPENCS flag is enabled. See bug #676266. |
49 |
+ |
50 |
+RDEPEND=" |
51 |
+ dev-games/mygui |
52 |
+ >=dev-games/openscenegraph-3.5.5:=[ffmpeg,jpeg,png,sdl,svg,truetype,zlib] |
53 |
+ dev-libs/boost:=[threads] |
54 |
+ dev-libs/tinyxml[stl] |
55 |
+ media-libs/libsdl2[joystick,opengl,video] |
56 |
+ media-libs/openal |
57 |
+ media-video/ffmpeg:= |
58 |
+ >=sci-physics/bullet-2.86:= |
59 |
+ virtual/opengl |
60 |
+ qt5? ( |
61 |
+ app-arch/unshield |
62 |
+ dev-qt/qtcore:5= |
63 |
+ dev-qt/qtgui:5= |
64 |
+ dev-qt/qtnetwork:5= |
65 |
+ dev-qt/qtopengl:5= |
66 |
+ dev-qt/qtwidgets:5= |
67 |
+ ) |
68 |
+" |
69 |
+ |
70 |
+DEPEND="${RDEPEND}" |
71 |
+ |
72 |
+BDEPEND=" |
73 |
+ virtual/pkgconfig |
74 |
+ doc? ( |
75 |
+ app-doc/doxygen[doc] |
76 |
+ dev-python/sphinx |
77 |
+ ) |
78 |
+" |
79 |
+ |
80 |
+S="${WORKDIR}/${PN}-${P}" |
81 |
+ |
82 |
+src_prepare() { |
83 |
+ cmake-utils_src_prepare |
84 |
+ |
85 |
+ # We don't install license files |
86 |
+ sed -i '/LICDIR/d' CMakeLists.txt || die |
87 |
+ |
88 |
+ # Use the system tinyxml headers |
89 |
+ rm -v extern/oics/tiny{str,xml}* || die |
90 |
+} |
91 |
+ |
92 |
+src_configure() { |
93 |
+ use devtools && ! use qt5 && \ |
94 |
+ elog "'qt5' USE flag is disabled, 'openmw-cs' will not be installed" |
95 |
+ |
96 |
+ local mycmakeargs=( |
97 |
+ -DBUILD_BSATOOL=$(usex devtools) |
98 |
+ -DBUILD_DOCS=$(usex doc) |
99 |
+ -DBUILD_ESMTOOL=$(usex devtools) |
100 |
+ -DBUILD_LAUNCHER=$(usex qt5) |
101 |
+ -DBUILD_NIFTEST=$(usex devtools) |
102 |
+ -DBUILD_OPENCS=$(usex devtools $(usex qt5)) |
103 |
+ -DBUILD_WIZARD=$(usex qt5) |
104 |
+ -DBUILD_UNITTESTS=OFF |
105 |
+ -DGLOBAL_DATA_PATH=/usr/share |
106 |
+ -DICONDIR="/usr/share/icons/hicolor/256x256/apps" |
107 |
+ -DMORROWIND_DATA_FILES="/usr/share/morrowind-data" |
108 |
+ -DUSE_SYSTEM_TINYXML=ON |
109 |
+ -DDESIRED_QT_VERSION=5 |
110 |
+ ) |
111 |
+ |
112 |
+ cmake-utils_src_configure |
113 |
+} |
114 |
+ |
115 |
+src_compile() { |
116 |
+ cmake-utils_src_compile |
117 |
+ |
118 |
+ if use doc ; then |
119 |
+ cmake-utils_src_compile doc |
120 |
+ find "${CMAKE_BUILD_DIR}"/docs/Doxygen/html \ |
121 |
+ -name '*.md5' -type f -delete || die |
122 |
+ HTML_DOCS=( "${CMAKE_BUILD_DIR}"/docs/Doxygen/html/. ) |
123 |
+ fi |
124 |
+} |
125 |
+ |
126 |
+src_install() { |
127 |
+ cmake-utils_src_install |
128 |
+ |
129 |
+ local DOC_CONTENTS=" |
130 |
+ You need the original Morrowind data files. If you haven't |
131 |
+ installed them yet, you can install them straight via the |
132 |
+ installation wizard which is the officially supported method |
133 |
+ (either by using the launcher or by calling 'openmw-wizard' |
134 |
+ directly).\n" |
135 |
+ |
136 |
+ if ! use qt5; then |
137 |
+ local DOC_CONTENTS+="\n\n |
138 |
+ USE flag 'qt5' is disabled, 'openmw-launcher' and |
139 |
+ 'openmw-wizard' are not available. You are on your own for |
140 |
+ making the Morrowind data files available and pointing |
141 |
+ openmw at them.\n\n |
142 |
+ Additionally; you must import the Morrowind.ini file before |
143 |
+ running openmw with the Morrowind data files for the first |
144 |
+ time. Typically this can be done like so:\n\n |
145 |
+ \t mkdir -p ~/.config/openmw\n |
146 |
+ \t openmw-iniimporter /path/to/Morrowind.ini ~/.config/openmw/openmw.cfg" |
147 |
+ fi |
148 |
+ |
149 |
+ readme.gentoo_create_doc |
150 |
+} |
151 |
+ |
152 |
+pkg_postinst() { |
153 |
+ xdg_icon_cache_update |
154 |
+ readme.gentoo_print_elog |
155 |
+} |
156 |
+ |
157 |
+pkg_postrm() { |
158 |
+ xdg_icon_cache_update |
159 |
+} |