Gentoo Archives: gentoo-commits

From: "Julian Ospald (hasufell)" <hasufell@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in games-strategy/openra: ChangeLog openra-20120630.ebuild openra-20120504.ebuild
Date: Sun, 01 Jul 2012 00:43:06
Message-Id: 20120701004256.E7F6F2004B@flycatcher.gentoo.org
1 hasufell 12/07/01 00:42:56
2
3 Modified: ChangeLog
4 Added: openra-20120630.ebuild
5 Removed: openra-20120504.ebuild
6 Log:
7 version bump, remove old
8
9 (Portage version: 2.2.0_alpha114/cvs/Linux x86_64)
10
11 Revision Changes Path
12 1.6 games-strategy/openra/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-strategy/openra/ChangeLog?rev=1.6&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-strategy/openra/ChangeLog?rev=1.6&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-strategy/openra/ChangeLog?r1=1.5&r2=1.6
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/games-strategy/openra/ChangeLog,v
21 retrieving revision 1.5
22 retrieving revision 1.6
23 diff -u -r1.5 -r1.6
24 --- ChangeLog 2 Jun 2012 15:56:16 -0000 1.5
25 +++ ChangeLog 1 Jul 2012 00:42:56 -0000 1.6
26 @@ -1,6 +1,13 @@
27 # ChangeLog for games-strategy/openra
28 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/games-strategy/openra/ChangeLog,v 1.5 2012/06/02 15:56:16 hasufell Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/games-strategy/openra/ChangeLog,v 1.6 2012/07/01 00:42:56 hasufell Exp $
31 +
32 +*openra-20120630 (01 Jul 2012)
33 +
34 + 01 Jul 2012; Julian Ospald <hasufell@g.o> -openra-20120504.ebuild,
35 + -files/openra-20120504-makefile.patch, +openra-20120630.ebuild,
36 + +files/openra-20120630-sound.patch:
37 + version bump, remove old
38
39 02 Jun 2012; Julian Ospald <hasufell@g.o> openra-20120504.ebuild:
40 bump to EAPI=4
41
42
43
44 1.1 games-strategy/openra/openra-20120630.ebuild
45
46 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-strategy/openra/openra-20120630.ebuild?rev=1.1&view=markup
47 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-strategy/openra/openra-20120630.ebuild?rev=1.1&content-type=text/plain
48
49 Index: openra-20120630.ebuild
50 ===================================================================
51 # Copyright 1999-2012 Gentoo Foundation
52 # Distributed under the terms of the GNU General Public License v2
53 # $Header: /var/cvsroot/gentoo-x86/games-strategy/openra/openra-20120630.ebuild,v 1.1 2012/07/01 00:42:56 hasufell Exp $
54
55 EAPI=4
56
57 inherit eutils mono gnome2-utils vcs-snapshot games
58
59 DESCRIPTION="A free RTS engine supporting games like Command & Conquer and Red Alert"
60 HOMEPAGE="http://open-ra.org/"
61 SRC_URI="http://github.com/OpenRA/OpenRA/tarball/master -> ${P}.tar.gz"
62
63 LICENSE="GPL-3"
64 SLOT="0"
65 KEYWORDS="~amd64 ~x86"
66 IUSE="cg"
67
68 DEPEND="dev-dotnet/libgdiplus
69 dev-lang/mono
70 media-libs/freetype:2[X]
71 media-libs/libsdl[X,opengl,video]
72 media-libs/openal
73 virtual/jpeg
74 virtual/opengl
75 cg? ( >=media-gfx/nvidia-cg-toolkit-2.1.0017 )"
76 RDEPEND="${DEPEND}"
77
78 src_unpack() {
79 vcs-snapshot_src_unpack
80 }
81
82 src_prepare() {
83 epatch "${FILESDIR}"/${P}-sound.patch
84
85 # register game-version
86 sed \
87 -e "/Version/s/{DEV_VERSION}/release-${PV}/" \
88 -i mods/{ra,cnc}/mod.yaml || die
89 }
90
91 src_install() {
92 emake \
93 datadir="${GAMES_DATADIR}" \
94 bindir="${GAMES_BINDIR}" \
95 libdir="$(games_get_libdir)/${PN}" \
96 DESTDIR="${D}" \
97 install
98
99 # icons
100 insinto /usr/share/icons/
101 doins -r packaging/linux/hicolor
102
103 # desktop entries
104 local myrenderer=$(usex cg Cg Gl)
105 make_desktop_entry "${PN} Game.Mods=cnc Graphics.Renderer=${myrenderer}" \
106 "OpenRA CNC" ${PN}
107 make_desktop_entry "${PN} Game.Mods=ra Graphics.Renderer=${myrenderer}" \
108 "OpenRA RA" ${PN}
109 make_desktop_entry "${PN}-editor" "OpenRA Map Editor" ${PN}
110
111 dodoc "${FILESDIR}"/README.gentoo README HACKING CHANGELOG
112
113 # file permissions
114 prepgamesdirs
115 }
116
117 pkg_preinst() {
118 games_pkg_preinst
119 gnome2_icon_savelist
120 }
121
122 pkg_postinst() {
123 games_pkg_postinst
124 gnome2_icon_cache_update
125
126 local myrenderer=$(usex cg Gl Cg)
127
128 elog "If you have problems starting the game consider switching"
129 elog "to Graphics.Renderer=${myrenderer} in openra*.desktop or manually"
130 elog "run:"
131 elog "${PN} Game.Mods=\$mod Graphics.Renderer=${myrenderer}"
132 }
133
134 pkg_postrm() {
135 gnome2_icon_cache_update
136 }