commit: bdc2582b5f4a0c0aab4ba150e1cc08879c8c7b9d Author: Rob Levitsky <kitsunenokenja <AT> protonmail <DOT> ch> AuthorDate: Wed Jan 24 00:33:43 2018 +0000 Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org> CommitDate: Sat Jan 27 21:06:55 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bdc2582b
games-fps/redeclipse: new package. Red Eclipse is first-person ego-shooter, built as a total conversion of Cube Engine 2. Closes: https://bugs.gentoo.org/363413 Closes: https://github.com/gentoo/gentoo/pull/6943 Package-Manager: Portage-2.3.19, Repoman-2.3.6 games-fps/redeclipse/Manifest | 1 + games-fps/redeclipse/metadata.xml | 19 +++++++ games-fps/redeclipse/redeclipse-1.6.0.ebuild | 79 ++++++++++++++++++++++++++++ 3 files changed, 99 insertions(+) diff --git a/games-fps/redeclipse/Manifest b/games-fps/redeclipse/Manifest new file mode 100644 index 00000000000..f2590781789 --- /dev/null +++ b/games-fps/redeclipse/Manifest @@ -0,0 +1 @@ +DIST redeclipse_1.6.0_nix.tar.bz2 898467399 BLAKE2B 85b4d02ea95cc44d902f6512ec5ce512583353107deb690ec24608d9b96fd4a6b7fd720250413a192cf7229b2f66294ddeb81230e5ace06abdcd4f6f3dc8d92f SHA512 e944aed8155b5e89e8df000516d4a019a63d38d7ad9c3982b2e111f8a20bc848a98e30c1b60f4fdaf006c2ff9e2cb04647c07778eb2562eaf7db733dbce11233 diff --git a/games-fps/redeclipse/metadata.xml b/games-fps/redeclipse/metadata.xml new file mode 100644 index 00000000000..82f11922de5 --- /dev/null +++ b/games-fps/redeclipse/metadata.xml @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>kitsunenoke...@protonmail.ch</email> + <name>Rob Levitsky</name> + </maintainer> + <maintainer type="project"> + <email>ga...@gentoo.org</email> + <name>Gentoo Games Project</name> + </maintainer> + <maintainer type="project"> + <email>proxy-ma...@gentoo.org</email> + <name>Proxy Maintainers</name> + </maintainer> + <use> + <flag name="dedicated">Install only as a dedicated game server</flag> + </use> +</pkgmetadata> diff --git a/games-fps/redeclipse/redeclipse-1.6.0.ebuild b/games-fps/redeclipse/redeclipse-1.6.0.ebuild new file mode 100644 index 00000000000..173ab9a6b75 --- /dev/null +++ b/games-fps/redeclipse/redeclipse-1.6.0.ebuild @@ -0,0 +1,79 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit desktop + +DESCRIPTION="First-person ego-shooter, built as a total conversion of Cube Engine 2" +HOMEPAGE="http://www.redeclipse.net/" +SRC_URI="https://github.com/red-eclipse/base/releases/download/v${PV}/${PN}_${PV}_nix.tar.bz2" + +# According to doc/license.txt file +LICENSE="HPND ZLIB CC-BY-SA-3.0" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="dedicated" + +DEPEND="!dedicated? ( + media-libs/freetype:2 + media-libs/libsdl:0[opengl] + media-libs/sdl2-image:0[jpeg,png] + media-libs/sdl2-mixer:0[mp3,vorbis] + virtual/opengl + x11-libs/libX11 + ) + >=net-libs/enet-1.3.9 + sys-libs/zlib" +RDEPEND="${DEPEND}" + +src_prepare() { + sed -e "s:@APPNAME@:${PN}:" \ + src/install/nix/redeclipse.desktop.am \ + > src/install/nix/redeclipse.desktop || die + + if ! use dedicated; then + sed -e "s:@LIBEXECDIR@:/usr/libexec:g" \ + -e "s:@DATADIR@:/usr/share:g" \ + -e "s:@DOCDIR@:/usr/share/doc/${PF}:" \ + -e "s:@CAPPNAME@:${PN^^}:g" \ + -e "s:@APPNAME@:${PN}:g" \ + doc/man/redeclipse.6.am \ + > doc/man/redeclipse.6 || die + fi + + sed -e "s:@LIBEXECDIR@:/usr/libexec:g" \ + -e "s:@DATADIR@:/usr/share:g" \ + -e "s:@DOCDIR@:/usr/share/doc/${PF}:" \ + -e "s:@CAPPNAME@:${PN^^}:g" \ + -e "s:@APPNAME@:${PN}:g" \ + doc/man/redeclipse-server.6.am \ + > doc/man/redeclipse-server.6 || die + + default +} + +src_compile() { + if ! use dedicated; then + emake CXXFLAGS="${CXXFLAGS}" STRIP= -C src client server + else + emake CXXFLAGS="${CXXFLAGS}" STRIP= -C src server + fi +} + +src_install() { + insinto /usr/share/redeclipse + doins -r config data + + dobin src/redeclipse_server_linux + + if ! use dedicated; then + dobin src/redeclipse_linux + newicon "src/install/nix/${PN}_x128.png" "${PN}.png" + make_desktop_entry "src/install/nix/${PN}.desktop" + doman doc/man/redeclipse.6 + fi + + doman doc/man/redeclipse-server.6 + dodoc readme.txt doc/examples/servinit.cfg +}