diff options
author | BlackNoxis <steven.darklight@gmail.com> | 2014-02-15 23:24:26 +0200 |
---|---|---|
committer | BlackNoxis <steven.darklight@gmail.com> | 2014-02-15 23:24:26 +0200 |
commit | 7224c1253228e5c29c78cb3f0f26ce34770f2356 (patch) | |
tree | 1684924656132935256e034f35f92abee6623265 /games-fps/redeclipse |
Added ebuilds for kogaion desktop
Diffstat (limited to 'games-fps/redeclipse')
-rw-r--r-- | games-fps/redeclipse/Manifest | 4 | ||||
-rw-r--r-- | games-fps/redeclipse/redeclipse-1.1.ebuild | 69 | ||||
-rw-r--r-- | games-fps/redeclipse/redeclipse-1.3.1.ebuild | 65 |
3 files changed, 138 insertions, 0 deletions
diff --git a/games-fps/redeclipse/Manifest b/games-fps/redeclipse/Manifest new file mode 100644 index 00000000..0fd42be3 --- /dev/null +++ b/games-fps/redeclipse/Manifest @@ -0,0 +1,4 @@ +DIST redeclipse_1.1_linux_bsd.tar.bz2 454066621 SHA256 cc7f7e9da51b0e5f0df1a7a3f041586ef82683b3bd2d428f2e9c7075f302a32a SHA512 1e0c8a8766fba41aa3a502f2751ee2d086d42a41e9071b56201db06428e18476d69a6e6841557c0f3d13f4b2f5e41caa8168a40ea512ba8afdbe6601b6754821 WHIRLPOOL 86c512f5dc57ba935f6829dfbcecb934fe9ef08d234727e8c9e92db333576dc730e5d024a0976a8b18a7c1b52c2b98dc504509cab7a6f21606b79ccc6ce76517 +DIST redeclipse_1.3.1_all.tar.bz2 521736979 SHA256 edee35cab03edaf17fb0aae1cd427035eb28b9729fee10551f7e03c56b921ae3 SHA512 4849f77265c1dcc969c47d466d8f0917ad45d8ccceb3d4dad5b22a61ddab0cb2caf306042946cfaf970de8d35df85366dedacc17f74c2031e371fa3522afe404 WHIRLPOOL cc9aaa9f10bc1a35364f960896e5b7dfddf28bc92219df50d579841d9964334c0d44705fadfe6b3663ec451d613ac7fa132744aa2ecd2b45c0606b2d6b4bde4d +EBUILD redeclipse-1.1.ebuild 1577 SHA256 a021dc223a2948ee693e5fa301bdca223ed29fbba42f5287ce21ce316b2de062 SHA512 d9c80829350791045e263a18f5c0576fa3c6ffc864b7cf376520651fbc0d972da3fee452ca80b4882e3010becda0aa9da17a13c15f6b7e2f384888519bbfed22 WHIRLPOOL c04077ada446deeffded688aa1532210ad9fec72c8aab3f39416aba0f6692689ba95479dc625631e00de098676ac2f2ca1e37cbe35979e3dfd98bd00517f84f1 +EBUILD redeclipse-1.3.1.ebuild 1461 SHA256 1b6632c1c3e5905877c36c4c71cbdd023ed438ecbde2acc2854a1d5235695f0a SHA512 c3534a8510d18bb50cfc210faa63d295a3499ee613dc092152ea03feba1dd1cf837802cd3ab8071855848b2b69b85d800af3aa988db53a279e723d3a4a3736ca WHIRLPOOL 4ceb226cd39da13d0ba8a3dd0013d2f4e655e127413190ab527f5ab346bd83ec225a8ec5f8fe4569e50012fbffbe36d05d5767c2c0c7ad642356e699b606728f diff --git a/games-fps/redeclipse/redeclipse-1.1.ebuild b/games-fps/redeclipse/redeclipse-1.1.ebuild new file mode 100644 index 00000000..f3d0d8ef --- /dev/null +++ b/games-fps/redeclipse/redeclipse-1.1.ebuild @@ -0,0 +1,69 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=3 + +inherit eutils games + +DESCRIPTION="First-person ego-shooter, built as a total conversion of Cube Engine 2" +HOMEPAGE="http://www.redeclipse.net/" +SRC_URI="mirror://sourceforge/${PN}/${PN}_${PV}_linux_bsd.tar.bz2" + +# According to license.txt file +LICENSE="as-is ZLIB CCPL-Attribution-ShareAlike-3.0" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="dedicated" + +DEPEND="!dedicated? ( + media-libs/libsdl[opengl] + media-libs/sdl-image[jpeg,png] + media-libs/sdl-mixer[mp3,vorbis] + virtual/opengl + x11-libs/libX11 + ) + net-libs/enet:1.3 + sys-libs/zlib +" +RDEPEND="${DEPEND}" + +S="${WORKDIR}"/${PN} + +src_prepare() { + # Respect GAMES_DATADIR + sed -i -e "s:\(addpackagedir(\"\)data:\1${GAMES_DATADIR}/${PN}/data:" \ + src/engine/server.cpp || die "sed failed" + + # Unbundle enet + sed -i \ + -e "s:\(client\)\: libenet:\1\::" \ + -e "s:\(server\)\: libenet:\1\::" \ + src/Makefile || die "sed failed" + + # Remove strip + sed -i "/STRIP=strip/d" src/Makefile || die "sed failed" +} + +src_compile() { + cd src + if ! use dedicated ; then + emake CXXFLAGS="${CXXFLAGS}" client server || die "Make failed" + else + emake CXXFLAGS="${CXXFLAGS}" server + fi +} + +src_install() { + newgamesbin src/reserver ${PN}-server || die + dodoc readme.txt + if ! use dedicated ; then + newgamesbin src/reclient ${PN} || die + insinto "${GAMES_DATADIR}"/${PN} + doins -r data + newicon src/site/bits/favicon.png ${PN}.png || die + make_desktop_entry ${PN} "Red Eclipse" ${PN} + fi + + prepgamesdirs +} diff --git a/games-fps/redeclipse/redeclipse-1.3.1.ebuild b/games-fps/redeclipse/redeclipse-1.3.1.ebuild new file mode 100644 index 00000000..dfab85be --- /dev/null +++ b/games-fps/redeclipse/redeclipse-1.3.1.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=3 + +inherit eutils games + +DESCRIPTION="First-person ego-shooter, built as a total conversion of Cube Engine 2" +HOMEPAGE="http://www.redeclipse.net/" +SRC_URI="mirror://sourceforge/${PN}/${PN}_${PV}_all.tar.bz2" + +LICENSE="as-is ZLIB CCPL-Attribution-ShareAlike-3.0" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="dedicated" + +DEPEND="!dedicated? ( + media-libs/libsdl[opengl] + media-libs/sdl-image[jpeg,png] + media-libs/sdl-mixer[mp3,vorbis] + virtual/opengl + x11-libs/libX11 + ) + net-libs/enet:1.3 + sys-libs/zlib +" +RDEPEND="${DEPEND}" + +S="${WORKDIR}"/${P} + +src_prepare() { + cd "${S}" || die + sed -i -e "s:\(addpackagedir(\"\)data:\1${GAMES_DATADIR}/${PN}/data:" \ + src/engine/server.cpp || die "Sed failed" + + sed -i \ + -e "s:\(client\)\: libenet:\1\::" \ + -e "s:\(server\)\: libenet:\1\::" \ + src/Makefile || die "Sed failed" + + sed -i "/STRIP=strip/d" src/Makefile || die "Sed failed" +} + +src_compile() { + cd src || die + if ! use dedicated ; then + emake CXXFLAGS="${CXXFLAGS}" client server || die + else + emake CXXFLAGS="${CXXFLAGS}" server || die + fi +} + +src_install() { + newgamesbin src/reserver ${PN}-server || die + dodir "${GAMES_DATADIR}"/${PN}/ || die + insinto "${GAMES_DATADIR}"/${PN}/ || die + doins -r "${S}"/data || die + + dodoc readme.txt + if ! use dedicated ; then + newgamesbin src/reclient "${PN}" || die + fi + prepgamesdirs +} |