diff options
author | Julian Ospald <hasufell@gentoo.org> | 2012-05-04 00:20:14 +0000 |
---|---|---|
committer | Julian Ospald <hasufell@gentoo.org> | 2012-05-04 00:20:14 +0000 |
commit | 138d6fad3e1a8c423ad59dcf8c3f26720933fe0a (patch) | |
tree | 3961328a574d40f81ba47c33d05a5c7bfb5d3975 /games-strategy/openra | |
parent | Fix build failure with >=glib-2.31 (bug #413843, thanks to Piotr Mitas and An... (diff) | |
download | historical-138d6fad3e1a8c423ad59dcf8c3f26720933fe0a.tar.gz historical-138d6fad3e1a8c423ad59dcf8c3f26720933fe0a.tar.bz2 historical-138d6fad3e1a8c423ad59dcf8c3f26720933fe0a.zip |
initial commit wrt #372029 with help from diamond
Package-Manager: portage-2.2.0_alpha101/cvs/Linux x86_64
Diffstat (limited to 'games-strategy/openra')
-rw-r--r-- | games-strategy/openra/ChangeLog | 10 | ||||
-rw-r--r-- | games-strategy/openra/Manifest | 18 | ||||
-rw-r--r-- | games-strategy/openra/metadata.xml | 22 | ||||
-rw-r--r-- | games-strategy/openra/openra-20120504.ebuild | 82 |
4 files changed, 132 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..5f22eaebfbbe --- /dev/null +++ b/games-strategy/openra/Manifest @@ -0,0 +1,18 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + +DIST openra-20120504.tar.xz 6655756 RMD160 3d334e5ba4dd5e63a6b30c5dc2202f48ea99ca3b SHA1 0e29c3c4eff6b2422b4a449662b5a8d5e0b2faba SHA256 3d210d237d5f9f7cec5f0584cbe6919c946873dd8d3ed14f18f61907d413e75e +EBUILD openra-20120504.ebuild 1947 RMD160 64298ce21a9d2c5e47e3d1615704a5bd6232fa36 SHA1 571f00332478754a04d2c8309b141a5726d1fb31 SHA256 a23df3079e0dd829a2d7d29e449fd956ca746351c1b50010adadcce9c58742da +MISC ChangeLog 395 RMD160 a0b5c7dbb9dd72d982046755fa449e6564cff024 SHA1 b770d47e5504bfa2754ced2b3f97bea8869f3bb4 SHA256 81115f0ec3859844ff4fdd96b72ee368ba8b27ef33b3972b528b97c7e5938b74 +MISC metadata.xml 704 RMD160 3a1ba4408c9b262f8a197a55899adba5c660f483 SHA1 faa6823554688d7fa821e6477e7248a6b57667e2 SHA256 ffa6beb55a8b860f6e487cd8cb6bcba42a1af4b582358b210c803d299e616555 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.19 (GNU/Linux) + +iQEcBAEBAgAGBQJPoyC8AAoJEFpvPKfnPDWz+rYH/iAr32F9XLM78UKV7R3jXxwE +uAAlL1/p6XxfwWFCh7baGY4wJF7Gl7U1ujtY8UlNRNuzzDqi0iBmImB5y4mxf8Zs +fNA0fWUN+W9E5OEqs7kjLtYBTJi56PCg0spXsdgROfRG4hVBkeI2Gv58GnOVrhnm +C2thspAOCYeFPEYbWZq5j1nLsA7T5THdCyO3mCGyGSDBE4bX18Tzj1kwikOS35JA +27eCzB3LDAd5BznHW+hl2zvkVdHXSyBloMdU6o6ZGj6r0wPlrBIIJgvgsrU/Jx9x +CcT8scNviQww+E9hOYKG6P7tSMiCBtuOD6SF8pxC5MVOTeOlawiHspSXEEjUqyQ= +=Y3QB +-----END PGP SIGNATURE----- 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 +} |