diff options
author | Julian Ospald <hasufell@gentoo.org> | 2013-05-13 19:40:10 +0000 |
---|---|---|
committer | Julian Ospald <hasufell@gentoo.org> | 2013-05-13 19:40:10 +0000 |
commit | 8ba5dd7a2a8f1553be39a946b9014613036be3d1 (patch) | |
tree | 2b0f1ab40089a8f58284fa402fe3c4962272bba1 /games-strategy/openra | |
parent | fix deps wrt #469656 thanks to Peter Wilmott (diff) | |
download | gentoo-2-8ba5dd7a2a8f1553be39a946b9014613036be3d1.tar.gz gentoo-2-8ba5dd7a2a8f1553be39a946b9014613036be3d1.tar.bz2 gentoo-2-8ba5dd7a2a8f1553be39a946b9014613036be3d1.zip |
version bump
(Portage version: 2.2.0_alpha174/cvs/Linux x86_64, signed Manifest commit with key E73C35B3)
Diffstat (limited to 'games-strategy/openra')
-rw-r--r-- | games-strategy/openra/ChangeLog | 7 | ||||
-rw-r--r-- | games-strategy/openra/openra-20130514.ebuild | 86 |
2 files changed, 92 insertions, 1 deletions
diff --git a/games-strategy/openra/ChangeLog b/games-strategy/openra/ChangeLog index 2f0b7e1b8a0a..de5628219038 100644 --- a/games-strategy/openra/ChangeLog +++ b/games-strategy/openra/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for games-strategy/openra # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/games-strategy/openra/ChangeLog,v 1.12 2013/03/17 17:35:03 hwoarang Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-strategy/openra/ChangeLog,v 1.13 2013/05/13 19:40:10 hasufell Exp $ + +*openra-20130514 (13 May 2013) + + 13 May 2013; Julian Ospald <hasufell@gentoo.org> +openra-20130514.ebuild: + version bump 17 Mar 2013; Markos Chandras <hwoarang@gentoo.org> metadata.xml: Add proxy-maintainers to metadata.xml diff --git a/games-strategy/openra/openra-20130514.ebuild b/games-strategy/openra/openra-20130514.ebuild new file mode 100644 index 000000000000..9e6fb0e47922 --- /dev/null +++ b/games-strategy/openra/openra-20130514.ebuild @@ -0,0 +1,86 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/games-strategy/openra/openra-20130514.ebuild,v 1.1 2013/05/13 19:40:10 hasufell Exp $ + +EAPI=5 + +inherit eutils mono gnome2-utils vcs-snapshot games + +DESCRIPTION="A free RTS engine supporting games like Command & Conquer and Red Alert" +HOMEPAGE="http://open-ra.org/" +SRC_URI="https://github.com/OpenRA/OpenRA/tarball/release-${PV} -> ${P}.tar.gz" + +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_unpack() { + vcs-snapshot_src_unpack +} + +src_prepare() { + # register game-version + sed \ + -e "/Version/s/{DEV_VERSION}/release-${PV}/" \ + -i mods/{ra,cnc,d2k}/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} Game.Mods=d2k Graphics.Renderer=${myrenderer}" \ + "OpenRA Dune2k" ${PN} + make_desktop_entry "${PN}-editor" "OpenRA Map Editor" ${PN} + + dodoc "${FILESDIR}"/README.gentoo README.md 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 "to Graphics.Renderer=Cg in openra*.desktop or manually" + elog "run:" + elog "${PN} Game.Mods=\$mod Graphics.Renderer=Cg" + fi +} + +pkg_postrm() { + gnome2_icon_cache_update +} |