summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJack Todaro <solpeth@posteo.org>2020-07-08 08:52:54 +1000
committerJoonas Niilola <juippis@gentoo.org>2020-07-24 11:28:14 +0300
commit627f6941b49871ed6a853d03a30a522e3ebabcf7 (patch)
tree04d3c858af77e8cae62c2b3d0df7c43bdb72e8dc /games-fps/redeclipse/redeclipse-2.0.0.ebuild
parentdev-libs/jansson: fix building with docs (diff)
downloadgentoo-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/redeclipse/redeclipse-2.0.0.ebuild')
-rw-r--r--games-fps/redeclipse/redeclipse-2.0.0.ebuild81
1 files changed, 81 insertions, 0 deletions
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
+}