1 |
commit: bb14430918c8efadda0508faef1a10423e5150c1 |
2 |
Author: Azamat H. Hackimov <azamat.hackimov <AT> gmail <DOT> com> |
3 |
AuthorDate: Mon Jul 12 20:13:46 2021 +0000 |
4 |
Commit: Azamat H. Hackimov <winterheart <AT> gentoo <DOT> ru> |
5 |
CommitDate: Mon Jul 12 20:45:59 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/gamerlay.git/commit/?id=bb144309 |
7 |
|
8 |
games-fps/dhewm3: update to 1.5.1 |
9 |
|
10 |
Migrage to cmake.eclass |
11 |
|
12 |
Package-Manager: Portage-3.0.20, Repoman-3.0.2 |
13 |
Signed-off-by: Azamat H. Hackimov <azamat.hackimov <AT> gmail.com> |
14 |
|
15 |
games-fps/dhewm3/dhewm3-1.5.1.ebuild | 51 ++++++++++++++++++++++++++++++++++++ |
16 |
1 file changed, 51 insertions(+) |
17 |
|
18 |
diff --git a/games-fps/dhewm3/dhewm3-1.5.1.ebuild b/games-fps/dhewm3/dhewm3-1.5.1.ebuild |
19 |
new file mode 100644 |
20 |
index 0000000..91f55cb |
21 |
--- /dev/null |
22 |
+++ b/games-fps/dhewm3/dhewm3-1.5.1.ebuild |
23 |
@@ -0,0 +1,51 @@ |
24 |
+# Copyright 1999-2021 Gentoo Authors |
25 |
+# Distributed under the terms of the GNU General Public License v2 |
26 |
+ |
27 |
+EAPI=7 |
28 |
+ |
29 |
+inherit cmake |
30 |
+ |
31 |
+DESCRIPTION="A Doom 3 GPL source modification." |
32 |
+HOMEPAGE="https://github.com/dhewm/dhewm3" |
33 |
+SRC_URI="https://github.com/dhewm/dhewm3/releases/download/${PV}/${P}-src.tar.xz" |
34 |
+ |
35 |
+LICENSE="GPL-3" |
36 |
+SLOT="0" |
37 |
+KEYWORDS="~amd64" |
38 |
+IUSE="dedicated" |
39 |
+ |
40 |
+DEPEND=" |
41 |
+ virtual/jpeg:0 |
42 |
+ media-libs/libogg |
43 |
+ media-libs/libsdl2 |
44 |
+ media-libs/libvorbis |
45 |
+ media-libs/openal |
46 |
+ net-misc/curl |
47 |
+ sys-libs/zlib:= |
48 |
+" |
49 |
+RDEPEND="${DEPEND}" |
50 |
+ |
51 |
+CMAKE_USE_DIR="${S}/neo" |
52 |
+ |
53 |
+DATADIR=/usr/share/dhewm3 |
54 |
+DOCS="README.md" |
55 |
+ |
56 |
+# TODO: patch for common games-dir with roe and doom3-data |
57 |
+ |
58 |
+src_configure() { |
59 |
+ mycmakeargs=( |
60 |
+ -DDEDICATED=ON |
61 |
+ -DSDL2=ON |
62 |
+ -DCORE=$(usex dedicated OFF ON) |
63 |
+ -DBASE=$(usex dedicated OFF ON) |
64 |
+ -DD3XP=$(usex dedicated OFF ON) |
65 |
+ ) |
66 |
+ cmake_src_configure |
67 |
+} |
68 |
+ |
69 |
+pkg_postinst() { |
70 |
+ elog "You need to copy *.pk4 from either your installation media or your hard drive to" |
71 |
+ elog "/usr/share/dhewm3/base before running the game," |
72 |
+ elog "or 'emerge games-fps/doom3-data' to install from CD." |
73 |
+ echo |
74 |
+} |