diff options
author | Jack Todaro <solpeth@posteo.org> | 2020-07-08 08:52:54 +1000 |
---|---|---|
committer | Joonas Niilola <juippis@gentoo.org> | 2020-07-24 11:28:14 +0300 |
commit | 627f6941b49871ed6a853d03a30a522e3ebabcf7 (patch) | |
tree | 04d3c858af77e8cae62c2b3d0df7c43bdb72e8dc /games-fps | |
parent | dev-libs/jansson: fix building with docs (diff) | |
download | gentoo-627f6941b49871ed6a853d03a30a522e3ebabcf7.tar.gz gentoo-627f6941b49871ed6a853d03a30a522e3ebabcf7.tar.bz2 gentoo-627f6941b49871ed6a853d03a30a522e3ebabcf7.zip |
games-fps/redeclipse: bump up to 2.0.0
Package-Manager: Portage-2.3.103, Repoman-2.3.23
Signed-off-by: Jack Todaro <solpeth@posteo.org>
Closes: https://github.com/gentoo/gentoo/pull/16633
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'games-fps')
-rw-r--r-- | games-fps/redeclipse/Manifest | 1 | ||||
-rw-r--r-- | games-fps/redeclipse/redeclipse-2.0.0.ebuild | 81 |
2 files changed, 82 insertions, 0 deletions
diff --git a/games-fps/redeclipse/Manifest b/games-fps/redeclipse/Manifest index f2590781789b..a4c91aa7a866 100644 --- a/games-fps/redeclipse/Manifest +++ b/games-fps/redeclipse/Manifest @@ -1 +1,2 @@ DIST redeclipse_1.6.0_nix.tar.bz2 898467399 BLAKE2B 85b4d02ea95cc44d902f6512ec5ce512583353107deb690ec24608d9b96fd4a6b7fd720250413a192cf7229b2f66294ddeb81230e5ace06abdcd4f6f3dc8d92f SHA512 e944aed8155b5e89e8df000516d4a019a63d38d7ad9c3982b2e111f8a20bc848a98e30c1b60f4fdaf006c2ff9e2cb04647c07778eb2562eaf7db733dbce11233 +DIST redeclipse_2.0.0_nix.tar.bz2 948705751 BLAKE2B 00cb03320f80433db1cc5bb9b895cdc829453e64e32d0e481eeac6c5dec9332b2e763f511bee4e9917b334d3f383c2c2a2605dfbd07cc73ffeb3f8efb90278fc SHA512 179a8177ddafefb09de38629c7cc15e8843cd49ad3580093c9f4243dd0d2d2fe095e8df770c2a8f3996d4e273822d6bc955acca73f8191266adb95a34beaf6dd diff --git a/games-fps/redeclipse/redeclipse-2.0.0.ebuild b/games-fps/redeclipse/redeclipse-2.0.0.ebuild new file mode 100644 index 000000000000..8af7b5e88911 --- /dev/null +++ b/games-fps/redeclipse/redeclipse-2.0.0.ebuild @@ -0,0 +1,81 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +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/${PN}/base/releases/download/v${PV}/${PN}_${PV}_nix.tar.bz2" +# According to doc/license.txt file +LICENSE="ZLIB CC-BY-SA-4.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 +} |