summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Ospald (hasufell) <julian.ospald@googlemail.com>2012-04-02 21:48:21 +0200
committerJulian Ospald (hasufell) <julian.ospald@googlemail.com>2012-04-02 21:48:21 +0200
commit1625a6f378ee94ae12519a1837d78f6d03a8ec08 (patch)
treebca7fffd43408e4fdf0cb1ccf784506f695a9b35 /games-strategy
parentgames-strategy/openra: properly match upstream versioning, switch to git-base... (diff)
downloadsunrise-1625a6f378ee94ae12519a1837d78f6d03a8ec08.tar.gz
sunrise-1625a6f378ee94ae12519a1837d78f6d03a8ec08.tar.bz2
sunrise-1625a6f378ee94ae12519a1837d78f6d03a8ec08.zip
games-strategy/openra-bin: New Ebuild for bug 372029 thanks to floppym
Diffstat (limited to 'games-strategy')
-rw-r--r--games-strategy/openra-bin/ChangeLog11
-rw-r--r--games-strategy/openra-bin/Manifest7
-rw-r--r--games-strategy/openra-bin/files/openra-cnc.desktop8
-rw-r--r--games-strategy/openra-bin/files/openra-editor.desktop8
-rw-r--r--games-strategy/openra-bin/files/openra-ra.desktop8
-rw-r--r--games-strategy/openra-bin/metadata.xml11
-rw-r--r--games-strategy/openra-bin/openra-bin-20120315.ebuild91
7 files changed, 144 insertions, 0 deletions
diff --git a/games-strategy/openra-bin/ChangeLog b/games-strategy/openra-bin/ChangeLog
new file mode 100644
index 000000000..29b0e8865
--- /dev/null
+++ b/games-strategy/openra-bin/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for games-strategy/openra-bin
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+*openra-bin-20120315 (02 Apr 2012)
+
+ 02 Apr 2012; hasufell <julian.ospald@googlemail.com>
+ +openra-bin-20120315.ebuild, +files/openra-cnc.desktop,
+ +files/openra-editor.desktop, +files/openra-ra.desktop, +metadata.xml:
+ New Ebuild for bug 372029 thanks to floppym
+
diff --git a/games-strategy/openra-bin/Manifest b/games-strategy/openra-bin/Manifest
new file mode 100644
index 000000000..26bef4cf4
--- /dev/null
+++ b/games-strategy/openra-bin/Manifest
@@ -0,0 +1,7 @@
+AUX openra-cnc.desktop 179 RMD160 37515323230b95ea3f9ae55b8583a6b485eb84f4 SHA1 a9df52c1967e00da6790bf987c55caf16b09e4b6 SHA256 6d5d77d5206ce24a40eac150f70ef9561553da5390dcd010ccaac064db31a0ef
+AUX openra-editor.desktop 147 RMD160 1b71e5a6d3c67349c874bd62d2884249fbe6573f SHA1 03c302358840fb2e7988dcae5b5d5d2639c3e65d SHA256 be65ea2c5548662ce0ee5d9863f26fac0c0626dc712bb1c1e6ff6a6af064621d
+AUX openra-ra.desktop 169 RMD160 c625dc42ef786f4fab61f510b495459ecf18f8aa SHA1 264747729e1c83bd24ea4b7cd884c3ea1479ddad SHA256 f6ca60a25bc66619d83a0bf93d990f338299ef42e54a4c3eb237239057b08686
+DIST openra-release.20120315-1-any.pkg.tar.xz 2609992 RMD160 b8e3df8598881f1d6120f085c122d38d8df29ffa SHA1 0b7f3db0cc07ced9df630f228fdf0aa6b464814a SHA256 8b8870569b0d1810fb04d786ce0cffc232bd94083b32c915981e3c2c6e392773
+EBUILD openra-bin-20120315.ebuild 2127 RMD160 3855e32af1b2940c1abe47cae7f0949fe28dc498 SHA1 837d7a3973b5aac1af20c828789146433884abce SHA256 75809a283cd8fe80da015c31a0d31a77a779d7839bb2b7df091f40415763a6f7
+MISC ChangeLog 395 RMD160 596feb93dad4f1ce6bf23212ed2b694aab68c27e SHA1 1b17f30edcd210a7b801f5946ffa6475b392dbdd SHA256 801284a6493d41af2631cdc4f4589a7c6f7288ae915e9e8f42d6ecddb2578fb2
+MISC metadata.xml 277 RMD160 deef251b1089c0d0655fdbf52772c18f013c3786 SHA1 0c0b2d64253140602f55f3a9f253d15bf3feac45 SHA256 3706bb4995873a3063e6224888dee01cde0df6f2522f745b2d38ebcc7db0cd2f
diff --git a/games-strategy/openra-bin/files/openra-cnc.desktop b/games-strategy/openra-bin/files/openra-cnc.desktop
new file mode 100644
index 000000000..09002fd70
--- /dev/null
+++ b/games-strategy/openra-bin/files/openra-cnc.desktop
@@ -0,0 +1,8 @@
+[Desktop Entry]
+Type=Application
+GenericName=OpenRA - Command & Conquer
+Name=OpenRA CNC
+Icon=openra
+Exec=openra Game.Mods=cnc Graphics.Renderer=Gl
+Terminal=false
+Categories=Game;
diff --git a/games-strategy/openra-bin/files/openra-editor.desktop b/games-strategy/openra-bin/files/openra-editor.desktop
new file mode 100644
index 000000000..48aa45a6e
--- /dev/null
+++ b/games-strategy/openra-bin/files/openra-editor.desktop
@@ -0,0 +1,8 @@
+[Desktop Entry]
+Type=Application
+GenericName=OpenRA - Editor
+Name=OpenRA Map Editor
+Icon=openra
+Exec=openra-editor
+Terminal=false
+Categories=Game;
diff --git a/games-strategy/openra-bin/files/openra-ra.desktop b/games-strategy/openra-bin/files/openra-ra.desktop
new file mode 100644
index 000000000..98abf527d
--- /dev/null
+++ b/games-strategy/openra-bin/files/openra-ra.desktop
@@ -0,0 +1,8 @@
+[Desktop Entry]
+Type=Application
+GenericName=OpenRA - Red Alert
+Name=OpenRA RA
+Icon=openra
+Exec=openra Game.Mods=ra Graphics.Renderer=Gl
+Terminal=false
+Categories=Game;
diff --git a/games-strategy/openra-bin/metadata.xml b/games-strategy/openra-bin/metadata.xml
new file mode 100644
index 000000000..f851f113c
--- /dev/null
+++ b/games-strategy/openra-bin/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>maintainer-wanted@gentoo.org</email>
+ </maintainer>
+ <use>
+ <flag name="cg">NVIDIA toolkit plugin</flag>
+ </use>
+</pkgmetadata>
+
diff --git a/games-strategy/openra-bin/openra-bin-20120315.ebuild b/games-strategy/openra-bin/openra-bin-20120315.ebuild
new file mode 100644
index 000000000..a58ef7b83
--- /dev/null
+++ b/games-strategy/openra-bin/openra-bin-20120315.ebuild
@@ -0,0 +1,91 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=3
+
+inherit eutils gnome2-utils games
+
+MY_PN=${PN%-bin}
+
+DESCRIPTION="A Libre/Free RTS engine supporting early Westwood games like Command & Conquer and Red Alert"
+HOMEPAGE="http://open-ra.org/"
+SRC_URI="http://${MY_PN}.res0l.net/assets/downloads/linux/arch/${MY_PN}-release.${PV}-1-any.pkg.tar.xz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="cg"
+
+RDEPEND="dev-dotnet/libgdiplus
+ dev-lang/mono
+ !games-strategy/openra
+ media-libs/freetype:2[X]
+ media-libs/libsdl[X,audio,video]
+ media-libs/openal
+ virtual/jpeg
+ virtual/opengl
+ cg? ( media-gfx/nvidia-cg-toolkit )"
+
+src_prepare() {
+ # register game-version
+ sed \
+ -e "/Version/s/{DEV_VERSION}/release-${PN}/" \
+ -i usr/share/${MY_PN}/mods/{ra,cnc}/mod.yaml || die
+}
+
+src_install() {
+ # docs
+ dodoc usr/share/${MY_PN}/{CHANGELOG,HACKING} || die
+ rm usr/share/${MY_PN}/{CHANGELOG,HACKING} || die
+
+ # data files
+ rm usr/share/${MY_PN}/COPYING || die
+ insinto "${GAMES_DATADIR}"
+ doins -r usr/share/${MY_PN} || die
+
+ # icons
+ insinto /usr/share/icons
+ doins -r usr/share/icons/* || die
+
+ # wrappers scripts
+ games_make_wrapper ${MY_PN} "mono ./OpenRA.Game.exe" \
+ "${GAMES_DATADIR}/${MY_PN}"
+ games_make_wrapper ${MY_PN}-editor "mono ./OpenRA.Editor.exe" \
+ "${GAMES_DATADIR}/${MY_PN}"
+
+ # .desktop files
+ domenu "${FILESDIR}"/${MY_PN}-{cnc,editor,ra}.desktop || die
+
+ if use cg ; then
+ # set default renderer to cg
+ sed \
+ -e '/Renderer/s/Gl/Cg/' \
+ -i "${D}"/usr/share/applications/${MY_PN}-{cnc,ra}.desktop \
+ || die "setting default renderer in desktop file failed"
+ fi
+
+ # file permissions
+ prepgamesdirs
+}
+
+pkg_preinst() {
+ games_pkg_preinst
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+ gnome2_icon_cache_update
+
+ if use cg ; then
+ elog "If you have problems starting the game consider switching"
+ elog "back to Graphics.Renderer=Gl in openra*.desktop or pass that"
+ elog "argument on the command line:"
+ elog "openra Game.Mods=... Graphics.Renderer=Gl"
+ fi
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}