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-20131223-r1.ebuild openra-20131223.ebuild
Date: Tue, 24 Dec 2013 21:46:25
Message-Id: 20131224214619.40FA02004C@flycatcher.gentoo.org
1 hasufell 13/12/24 21:46:19
2
3 Modified: ChangeLog
4 Added: openra-20131223-r1.ebuild
5 Removed: openra-20131223.ebuild
6 Log:
7 revbump, rm obsolete cg useflag, fix sdl2 support
8
9 (Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key E73C35B3)
10
11 Revision Changes Path
12 1.25 games-strategy/openra/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-strategy/openra/ChangeLog?rev=1.25&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-strategy/openra/ChangeLog?rev=1.25&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-strategy/openra/ChangeLog?r1=1.24&r2=1.25
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/games-strategy/openra/ChangeLog,v
21 retrieving revision 1.24
22 retrieving revision 1.25
23 diff -u -r1.24 -r1.25
24 --- ChangeLog 22 Dec 2013 22:37:14 -0000 1.24
25 +++ ChangeLog 24 Dec 2013 21:46:19 -0000 1.25
26 @@ -1,6 +1,12 @@
27 # ChangeLog for games-strategy/openra
28 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/games-strategy/openra/ChangeLog,v 1.24 2013/12/22 22:37:14 hasufell Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/games-strategy/openra/ChangeLog,v 1.25 2013/12/24 21:46:19 hasufell Exp $
31 +
32 +*openra-20131223-r1 (24 Dec 2013)
33 +
34 + 24 Dec 2013; Julian Ospald <hasufell@g.o> -openra-20131223.ebuild,
35 + +openra-20131223-r1.ebuild, +files/openra-20131223-sdl2.patch:
36 + revbump, rm obsolete cg useflag, fix sdl2 support
37
38 *openra-20131223 (22 Dec 2013)
39
40
41
42
43 1.1 games-strategy/openra/openra-20131223-r1.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-strategy/openra/openra-20131223-r1.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-strategy/openra/openra-20131223-r1.ebuild?rev=1.1&content-type=text/plain
47
48 Index: openra-20131223-r1.ebuild
49 ===================================================================
50 # Copyright 1999-2013 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/games-strategy/openra/openra-20131223-r1.ebuild,v 1.1 2013/12/24 21:46:19 hasufell Exp $
53
54 EAPI=5
55
56 inherit eutils mono-env gnome2-utils vcs-snapshot games
57
58 DESCRIPTION="A free RTS engine supporting games like Command & Conquer and Red Alert"
59 HOMEPAGE="http://open-ra.org/"
60 SRC_URI="https://github.com/OpenRA/OpenRA/tarball/release-${PV} -> ${P}.tar.gz"
61
62 LICENSE="GPL-3"
63 SLOT="0"
64 KEYWORDS="~amd64 ~x86"
65 IUSE="tools"
66
67 DEPEND="dev-dotnet/libgdiplus
68 dev-lang/mono
69 media-libs/freetype:2[X]
70 || (
71 media-libs/libsdl[X,opengl,video]
72 media-libs/libsdl2[X,opengl,video]
73 )
74 media-libs/openal
75 virtual/jpeg
76 virtual/opengl"
77 RDEPEND="${DEPEND}"
78
79 pkg_setup() {
80 mono-env_pkg_setup
81 games_pkg_setup
82 }
83
84 src_unpack() {
85 vcs-snapshot_src_unpack
86 }
87
88 src_prepare() {
89 epatch "${FILESDIR}"/${P}-sdl2.patch
90 # register game-version
91 sed \
92 -e "/Version/s/{DEV_VERSION}/release-${PV}/" \
93 -i mods/{ra,cnc,d2k}/mod.yaml || die
94 }
95
96 src_compile() {
97 emake $(usex tools "all" "")
98 }
99
100 src_install() {
101 emake \
102 bindir="${GAMES_BINDIR}" \
103 libexecdir="$(games_get_libdir)" \
104 DESTDIR="${D}" \
105 $(usex tools "install-all" "install")
106
107 # icons
108 insinto /usr/share/icons/
109 doins -r packaging/linux/hicolor
110
111 # desktop entries
112 make_desktop_entry "${PN} Game.Mods=cnc" "OpenRA CNC" ${PN}
113 make_desktop_entry "${PN} Game.Mods=ra" "OpenRA RA" ${PN}
114 make_desktop_entry "${PN} Game.Mods=d2k" "OpenRA Dune2k" ${PN}
115 make_desktop_entry "${PN}-editor" "OpenRA Map Editor" ${PN}
116
117 dodoc "${FILESDIR}"/README.gentoo README.md CHANGELOG
118
119 # file permissions
120 prepgamesdirs
121 }
122
123 pkg_preinst() {
124 games_pkg_preinst
125 gnome2_icon_savelist
126 }
127
128 pkg_postinst() {
129 games_pkg_postinst
130 gnome2_icon_cache_update
131
132 elog "optional dependencies:"
133 elog " media-gfx/nvidia-cg-toolkit (fallback renderer if OpenGL fails)"
134 elog
135 elog "you might also want to emerge media-libs/libsdl2 specifically,"
136 elog "because ${PN} supports both sdl1.2 and sdl2, but the ebuild only"
137 elog "pulls in one of them, prefering sdl1.2."
138 }
139
140 pkg_postrm() {
141 gnome2_icon_cache_update
142 }