diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
commit | 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch) | |
tree | 7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /games-fps/redeclipse | |
parent | 30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'games-fps/redeclipse')
-rw-r--r-- | games-fps/redeclipse/Manifest | 4 | ||||
-rw-r--r-- | games-fps/redeclipse/files/redeclipse | 10 | ||||
-rw-r--r-- | games-fps/redeclipse/metadata.xml | 19 | ||||
-rw-r--r-- | games-fps/redeclipse/redeclipse-1.6.0-r2.ebuild | 82 |
4 files changed, 115 insertions, 0 deletions
diff --git a/games-fps/redeclipse/Manifest b/games-fps/redeclipse/Manifest new file mode 100644 index 000000000000..8238f6d4a88e --- /dev/null +++ b/games-fps/redeclipse/Manifest @@ -0,0 +1,4 @@ +AUX redeclipse 400 BLAKE2B e2f26d4883194948f32a68e1c7ebe0967b41f8cd7678aa282d1647beeefdd44952af9588ece5f7dddd2e4b6ea2ef51faac614eb88f435e382518ca82c01838de SHA512 da4deee6f5ffbc54bfeb501b3a3b4377a0cd04a2dca4284e51113d5073c9f267fb7d1a2b7b59095a200eeff17abff66d60de9b28106259aa0b2ce5b726912768 +DIST redeclipse_1.6.0_nix.tar.bz2 898467399 BLAKE2B 85b4d02ea95cc44d902f6512ec5ce512583353107deb690ec24608d9b96fd4a6b7fd720250413a192cf7229b2f66294ddeb81230e5ace06abdcd4f6f3dc8d92f SHA512 e944aed8155b5e89e8df000516d4a019a63d38d7ad9c3982b2e111f8a20bc848a98e30c1b60f4fdaf006c2ff9e2cb04647c07778eb2562eaf7db733dbce11233 +EBUILD redeclipse-1.6.0-r2.ebuild 2014 BLAKE2B 57d781179e4f91ca1fa637251978af63deeecab6a09b959bfc001ae32f39fa26bf1aab184d53e9ca87e01de3c8738626602fd4f5c0e0c5f6003d6367af6fc897 SHA512 e460594124b265f6c1db43411488d7b8453127ca7cba35a132065f56c3b21055e8a8f0cc5b9d1e290b53cc41ab2697564b2b63c8e972045cd177b68f844270a6 +MISC metadata.xml 574 BLAKE2B 6a74f40eb547d6ebcc8ca987609c22ebf171cde9286351e2f459f8eb95e8545399dcce6107540c249bdfc0a431f3282a50ae8a1fbe6239cb1b372755dd638c36 SHA512 1f78ab3ec83d4c8887f2f15addf8935f0026a8494340b346ae4c694fd7bf753962830274c572036490d514b2683df8164f9943b6714cff8cebaba896d70d549d diff --git a/games-fps/redeclipse/files/redeclipse b/games-fps/redeclipse/files/redeclipse new file mode 100644 index 000000000000..9f2c62fead05 --- /dev/null +++ b/games-fps/redeclipse/files/redeclipse @@ -0,0 +1,10 @@ +#!/bin/sh + +# It is necessary to run the binary from the root of the data directory +# for the binary to properly locate its assets and load properly. +# Upstream's original install procedure is doing the same thing. + +SERVER=/usr/bin/redeclipse_server_linux +CLIENT=/usr/bin/redeclipse_linux +cd /usr/share/redeclipse || exit 1 +[ "${0##*/}" = "redeclipse_server" ] && exec "${SERVER}" || exec "${CLIENT}" diff --git a/games-fps/redeclipse/metadata.xml b/games-fps/redeclipse/metadata.xml new file mode 100644 index 000000000000..82f11922de55 --- /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>kitsunenokenja@protonmail.ch</email> + <name>Rob Levitsky</name> + </maintainer> + <maintainer type="project"> + <email>games@gentoo.org</email> + <name>Gentoo Games Project</name> + </maintainer> + <maintainer type="project"> + <email>proxy-maint@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-r2.ebuild b/games-fps/redeclipse/redeclipse-1.6.0-r2.ebuild new file mode 100644 index 000000000000..a752c8763624 --- /dev/null +++ b/games-fps/redeclipse/redeclipse-1.6.0-r2.ebuild @@ -0,0 +1,82 @@ +# 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="https://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" + domenu "src/install/nix/${PN}.desktop" + doman doc/man/redeclipse.6 + fi + + doman doc/man/redeclipse-server.6 + dodoc readme.txt doc/examples/servinit.cfg + + dobin "${FILESDIR}/redeclipse" + dosym redeclipse /usr/bin/redeclipse_server +} |