commit:     d4a0ea433e160e9e85a1cfa4e3c74d7ca9e40650
Author:     Azamat H. Hackimov <azamat.hackimov <AT> gmail <DOT> com>
AuthorDate: Sun Jan 28 16:15:50 2018 +0000
Commit:     Azamat H. Hackimov <winterheart <AT> gentoo <DOT> ru>
CommitDate: Sun Jan 28 16:15:50 2018 +0000
URL:        https://gitweb.gentoo.org/proj/gamerlay.git/commit/?id=d4a0ea43

games-fps/gzdoom: new package

Package-Manager: Portage-2.3.19, Repoman-2.3.6
Manifest-Sign-Key: A018DE8C

 games-fps/gzdoom/gzdoom-3.2.5.ebuild | 53 ++++++++++++++++++++++++++++++++++++
 games-fps/gzdoom/metadata.xml        | 11 ++++++++
 2 files changed, 64 insertions(+)

diff --git a/games-fps/gzdoom/gzdoom-3.2.5.ebuild 
b/games-fps/gzdoom/gzdoom-3.2.5.ebuild
new file mode 100644
index 0000000..bd2ffcc
--- /dev/null
+++ b/games-fps/gzdoom/gzdoom-3.2.5.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit cmake-utils
+
+DESCRIPTION="A modder-friendly OpenGL source port based on the DOOM engine"
+HOMEPAGE="https://zdoom.org/";
+SRC_URI="https://zdoom.org/files/gzdoom/src/${PN}-g${PV}.zip";
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="gtk kde openal"
+
+RDEPEND="
+       app-arch/bzip2
+       kde? ( kde-apps/kdialog )
+       media-libs/game-music-emu
+       openal? (
+               media-libs/libsndfile
+               media-libs/openal
+               media-sound/mpg123
+       )
+       >=media-libs/libsdl2-2.0.2[opengl]
+       media-sound/fluidsynth
+       sys-libs/zlib
+       virtual/jpeg:0
+       virtual/opengl
+       gtk? ( x11-libs/gtk+:* )
+"
+DEPEND="${RDEPEND}
+       app-arch/unzip
+       virtual/pkgconfig
+"
+
+S="${WORKDIR}/${PN}-g${PV}"
+
+src_prepare() {
+       default
+       sed -i -e "s:\(\/usr\/share\/doom\):\1-data:g" \
+               src/gameconfigfile.cpp || die
+       cmake-utils_src_prepare
+}
+
+src_configure() {
+       mycmakeargs=(
+               -DNO_GTK=$(usex !gtk)
+               -DNO_OPENAL=$(usex !openal)
+       )
+       cmake-utils_src_configure
+}

diff --git a/games-fps/gzdoom/metadata.xml b/games-fps/gzdoom/metadata.xml
new file mode 100644
index 0000000..96b1109
--- /dev/null
+++ b/games-fps/gzdoom/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+<maintainer type="person">
+<email>[email protected]</email>
+<name>Azamat H. Hackimov</name>
+</maintainer>
+<longdescription lang="en">
+A modder-friendly OpenGL source port based on the DOOM engine
+</longdescription>
+</pkgmetadata>

Reply via email to