commit:     bb14430918c8efadda0508faef1a10423e5150c1
Author:     Azamat H. Hackimov <azamat.hackimov <AT> gmail <DOT> com>
AuthorDate: Mon Jul 12 20:13:46 2021 +0000
Commit:     Azamat H. Hackimov <winterheart <AT> gentoo <DOT> ru>
CommitDate: Mon Jul 12 20:45:59 2021 +0000
URL:        https://gitweb.gentoo.org/proj/gamerlay.git/commit/?id=bb144309

games-fps/dhewm3: update to 1.5.1

Migrage to cmake.eclass

Package-Manager: Portage-3.0.20, Repoman-3.0.2
Signed-off-by: Azamat H. Hackimov <azamat.hackimov <AT> gmail.com>

 games-fps/dhewm3/dhewm3-1.5.1.ebuild | 51 ++++++++++++++++++++++++++++++++++++
 1 file changed, 51 insertions(+)

diff --git a/games-fps/dhewm3/dhewm3-1.5.1.ebuild 
b/games-fps/dhewm3/dhewm3-1.5.1.ebuild
new file mode 100644
index 0000000..91f55cb
--- /dev/null
+++ b/games-fps/dhewm3/dhewm3-1.5.1.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit cmake
+
+DESCRIPTION="A Doom 3 GPL source modification."
+HOMEPAGE="https://github.com/dhewm/dhewm3";
+SRC_URI="https://github.com/dhewm/dhewm3/releases/download/${PV}/${P}-src.tar.xz";
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="dedicated"
+
+DEPEND="
+       virtual/jpeg:0
+       media-libs/libogg
+       media-libs/libsdl2
+       media-libs/libvorbis
+       media-libs/openal
+       net-misc/curl
+       sys-libs/zlib:=
+"
+RDEPEND="${DEPEND}"
+
+CMAKE_USE_DIR="${S}/neo"
+
+DATADIR=/usr/share/dhewm3
+DOCS="README.md"
+
+# TODO: patch for common games-dir with roe and doom3-data
+
+src_configure() {
+       mycmakeargs=(
+               -DDEDICATED=ON
+               -DSDL2=ON
+               -DCORE=$(usex dedicated OFF ON)
+               -DBASE=$(usex dedicated OFF ON)
+               -DD3XP=$(usex dedicated OFF ON)
+       )
+       cmake_src_configure
+}
+
+pkg_postinst() {
+       elog "You need to copy *.pk4 from either your installation media or 
your hard drive to"
+       elog "/usr/share/dhewm3/base before running the game,"
+       elog "or 'emerge games-fps/doom3-data' to install from CD."
+       echo
+}

Reply via email to