/[gentoo-x86]/games-strategy/openra/openra-20140608.ebuild
Gentoo

Contents of /games-strategy/openra/openra-20140608.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Mon Jun 9 15:10:10 2014 UTC (3 years, 8 months ago) by hasufell
Branch: MAIN
CVS Tags: HEAD
version bump

(Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key BDEED020)

1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/games-strategy/openra/openra-20131223-r1.ebuild,v 1.3 2014/03/04 19:55:40 ago Exp $
4
5 EAPI=5
6
7 inherit eutils mono-env gnome2-utils vcs-snapshot games
8
9 DESCRIPTION="A free RTS engine supporting games like Command & Conquer and Red Alert"
10 HOMEPAGE="http://open-ra.org/"
11 SRC_URI="https://github.com/OpenRA/OpenRA/tarball/release-${PV} -> ${P}.tar.gz"
12
13 LICENSE="GPL-3"
14 SLOT="0"
15 KEYWORDS="~amd64 ~x86"
16 IUSE="tools"
17
18 QA_PREBUILT="$(games_get_libdir)/openra/liblua*"
19
20 DEPEND="dev-dotnet/libgdiplus
21 dev-lang/mono
22 media-libs/freetype:2[X]
23 media-libs/libsdl2[X,opengl,video]
24 media-libs/openal
25 virtual/jpeg
26 virtual/opengl"
27 RDEPEND="${DEPEND}"
28
29 pkg_setup() {
30 mono-env_pkg_setup
31 games_pkg_setup
32 }
33
34 src_unpack() {
35 vcs-snapshot_src_unpack
36 }
37
38 src_configure() { :; }
39
40 src_prepare() {
41 # register game-version
42 sed \
43 -e "/Version/s/{DEV_VERSION}/release-${PV}/" \
44 -i mods/{ra,cnc,d2k}/mod.yaml || die
45 }
46
47 src_compile() {
48 emake $(usex tools "all" "")
49 emake native-dependencies
50 emake docs
51 }
52
53 src_install() {
54 emake \
55 datadir="/usr/share" \
56 bindir="${GAMES_BINDIR}" \
57 libdir="$(games_get_libdir)" \
58 DESTDIR="${D}" \
59 $(usex tools "install-all" "install") install-linux-scripts
60
61 exeinto "$(games_get_libdir)/openra"
62 doexe Eluant.dll.config liblua$(usex amd64 "64" "32")*
63
64 # icons
65 insinto /usr/share/icons/
66 doins -r packaging/linux/hicolor
67
68 # desktop entries
69 make_desktop_entry "${PN} Game.Mods=cnc" "OpenRA CNC" ${PN}
70 make_desktop_entry "${PN} Game.Mods=ra" "OpenRA RA" ${PN}
71 make_desktop_entry "${PN} Game.Mods=d2k" "OpenRA Dune2k" ${PN}
72 make_desktop_entry "${PN}-editor" "OpenRA Map Editor" ${PN}
73
74 dodoc "${FILESDIR}"/README.gentoo README.md CONTRIBUTING.md AUTHORS \
75 DOCUMENTATION.md Lua-API.md
76
77 # file permissions
78 prepgamesdirs
79 }
80
81 pkg_preinst() {
82 games_pkg_preinst
83 gnome2_icon_savelist
84 }
85
86 pkg_postinst() {
87 games_pkg_postinst
88 gnome2_icon_cache_update
89
90 elog "optional dependencies:"
91 elog " media-gfx/nvidia-cg-toolkit (fallback renderer if OpenGL fails)"
92 }
93
94 pkg_postrm() {
95 gnome2_icon_cache_update
96 }

  ViewVC Help
Powered by ViewVC 1.1.20