forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Red Eclipse is first-person ego-shooter, built as a total conversion of Cube Engine 2. Closes: https://bugs.gentoo.org/363413 Closes: gentoo#6943 Package-Manager: Portage-2.3.19, Repoman-2.3.6
- Loading branch information
1 parent
f9aff1e
commit bdc2582
Showing
3 changed files
with
99 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
DIST redeclipse_1.6.0_nix.tar.bz2 898467399 BLAKE2B 85b4d02ea95cc44d902f6512ec5ce512583353107deb690ec24608d9b96fd4a6b7fd720250413a192cf7229b2f66294ddeb81230e5ace06abdcd4f6f3dc8d92f SHA512 e944aed8155b5e89e8df000516d4a019a63d38d7ad9c3982b2e111f8a20bc848a98e30c1b60f4fdaf006c2ff9e2cb04647c07778eb2562eaf7db733dbce11233 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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>[email protected]</email> | ||
<name>Rob Levitsky</name> | ||
</maintainer> | ||
<maintainer type="project"> | ||
<email>[email protected]</email> | ||
<name>Gentoo Games Project</name> | ||
</maintainer> | ||
<maintainer type="project"> | ||
<email>[email protected]</email> | ||
<name>Proxy Maintainers</name> | ||
</maintainer> | ||
<use> | ||
<flag name="dedicated">Install only as a dedicated game server</flag> | ||
</use> | ||
</pkgmetadata> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
} |