summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Ospald <hasufell@gentoo.org>2012-05-04 00:20:14 +0000
committerJulian Ospald <hasufell@gentoo.org>2012-05-04 00:20:14 +0000
commitccfb1f5906d99be6ca4f026f818ba5709e4bfefa (patch)
tree56300dd928ed0319e024b47d8d4aa55f0d9f5c91 /games-strategy/openra
parentFix build failure with >=glib-2.31 (bug #413843, thanks to Piotr Mitas and An... (diff)
downloadgentoo-2-ccfb1f5906d99be6ca4f026f818ba5709e4bfefa.tar.gz
gentoo-2-ccfb1f5906d99be6ca4f026f818ba5709e4bfefa.tar.bz2
gentoo-2-ccfb1f5906d99be6ca4f026f818ba5709e4bfefa.zip
initial commit wrt #372029 with help from diamond
(Portage version: 2.2.0_alpha101/cvs/Linux x86_64)
Diffstat (limited to 'games-strategy/openra')
-rw-r--r--games-strategy/openra/ChangeLog10
-rw-r--r--games-strategy/openra/Manifest4
-rw-r--r--games-strategy/openra/metadata.xml22
-rw-r--r--games-strategy/openra/openra-20120504.ebuild82
4 files changed, 118 insertions, 0 deletions
diff --git a/games-strategy/openra/ChangeLog b/games-strategy/openra/ChangeLog
new file mode 100644
index 000000000000..88f2ac94e5da
--- /dev/null
+++ b/games-strategy/openra/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for games-strategy/openra
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/games-strategy/openra/ChangeLog,v 1.1 2012/05/04 00:20:14 hasufell Exp $
+
+*openra-20120504 (04 May 2012)
+
+ 04 May 2012; Julian Ospald <hasufell@gentoo.org> +openra-20120504.ebuild,
+ +metadata.xml:
+ initial commit wrt #372029 with help from diamond
+
diff --git a/games-strategy/openra/Manifest b/games-strategy/openra/Manifest
new file mode 100644
index 000000000000..7c73c709460a
--- /dev/null
+++ b/games-strategy/openra/Manifest
@@ -0,0 +1,4 @@
+DIST openra-20120504.tar.xz 6655756 RMD160 3d334e5ba4dd5e63a6b30c5dc2202f48ea99ca3b SHA1 0e29c3c4eff6b2422b4a449662b5a8d5e0b2faba SHA256 3d210d237d5f9f7cec5f0584cbe6919c946873dd8d3ed14f18f61907d413e75e
+EBUILD openra-20120504.ebuild 1839 RMD160 dc62950d8db7999d960bd0e3b26acdc60beea07f SHA1 328c77125840f175babb328896e066b90a2cd7b6 SHA256 b71bf7ffe1330b2eda8802ce9fdd793ed8d97a2846894c437b72d504ea8e6df3
+MISC ChangeLog 300 RMD160 6e597ee619c274bba59f4eb4585f89afb2fa11ea SHA1 6b6dd5f099f596475113d957925dea584b8b9afb SHA256 f58a1ff82286041097d964b2c57e16a1061a3e7850777af165d250a58f3cae51
+MISC metadata.xml 704 RMD160 3a1ba4408c9b262f8a197a55899adba5c660f483 SHA1 faa6823554688d7fa821e6477e7248a6b57667e2 SHA256 ffa6beb55a8b860f6e487cd8cb6bcba42a1af4b582358b210c803d299e616555
diff --git a/games-strategy/openra/metadata.xml b/games-strategy/openra/metadata.xml
new file mode 100644
index 000000000000..29e9448c1814
--- /dev/null
+++ b/games-strategy/openra/metadata.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>games</herd>
+ <maintainer>
+ <email>hasufell@gentoo.org</email>
+ <name>Julian Ospald</name>
+ <description>Maintainer, assign bugs to him</description>
+ </maintainer>
+ <maintainer>
+ <email>diamond@hi-net.ru</email>
+ <description>Proxy maintainer. CC him on bugs</description>
+ </maintainer>
+ <upstream>
+ <changelog>http://openra.res0l.net/news/</changelog>
+ <doc lang="en">https://github.com/OpenRA/OpenRA/wiki</doc>
+ <bugs-to>https://github.com/OpenRA/OpenRA/issues</bugs-to>
+ </upstream>
+ <use>
+ <flag name="cg">NVIDIA toolkit plugin</flag>
+ </use>
+</pkgmetadata>
diff --git a/games-strategy/openra/openra-20120504.ebuild b/games-strategy/openra/openra-20120504.ebuild
new file mode 100644
index 000000000000..8988c65eb98b
--- /dev/null
+++ b/games-strategy/openra/openra-20120504.ebuild
@@ -0,0 +1,82 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-strategy/openra/openra-20120504.ebuild,v 1.1 2012/05/04 00:20:14 hasufell Exp $
+
+EAPI=3
+
+inherit eutils mono gnome2-utils games
+
+DESCRIPTION="A free RTS engine supporting games like Command & Conquer and Red Alert"
+HOMEPAGE="http://open-ra.org/"
+SRC_URI="http://dev.gentoo.org/~hasufell/distfiles/${P}.tar.xz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="cg"
+
+DEPEND="dev-dotnet/libgdiplus
+ dev-lang/mono
+ media-libs/freetype:2[X]
+ media-libs/libsdl[X,opengl,video]
+ media-libs/openal
+ virtual/jpeg
+ virtual/opengl
+ cg? ( >=media-gfx/nvidia-cg-toolkit-2.1.0017 )"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-makefile.patch
+
+ # register game-version
+ sed \
+ -e "/Version/s/{DEV_VERSION}/release-${PV}/" \
+ -i mods/{ra,cnc}/mod.yaml || die
+}
+
+src_install() {
+ emake \
+ datadir="${GAMES_DATADIR}" \
+ bindir="${GAMES_BINDIR}" \
+ libdir="$(games_get_libdir)/${PN}" \
+ DESTDIR="${D}" \
+ install
+
+ # icons
+ insinto /usr/share/icons/
+ doins -r packaging/linux/hicolor
+
+ # desktop entries
+ local myrenderer=$(usex cg Cg Gl)
+ make_desktop_entry "${PN} Game.Mods=cnc Graphics.Renderer=${myrenderer}" \
+ "OpenRA CNC" ${PN}
+ make_desktop_entry "${PN} Game.Mods=ra Graphics.Renderer=${myrenderer}" \
+ "OpenRA RA" ${PN}
+ make_desktop_entry "${PN}-editor" "OpenRA Map Editor" ${PN}
+
+ dodoc "${FILESDIR}"/README.gentoo README HACKING CHANGELOG
+
+ # 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 manually"
+ elog "run:"
+ elog "${PN} Game.Mods=\$mod Graphics.Renderer=Gl"
+ fi
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}