Gentoo Archives: gentoo-commits

From: "Richard Freeman (rich0)" <rich0@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in games-rpg/eternal-lands-data: ChangeLog eternal-lands-data-1.9.1_p20110117.ebuild
Date: Mon, 17 Jan 2011 19:58:43
Message-Id: 20110117195833.B0AD620054@flycatcher.gentoo.org
1 rich0 11/01/17 19:58:33
2
3 Modified: ChangeLog
4 Added: eternal-lands-data-1.9.1_p20110117.ebuild
5 Log:
6 Update to sound files.
7
8 (Portage version: 2.1.9.25/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.24 games-rpg/eternal-lands-data/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-rpg/eternal-lands-data/ChangeLog?rev=1.24&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-rpg/eternal-lands-data/ChangeLog?rev=1.24&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-rpg/eternal-lands-data/ChangeLog?r1=1.23&r2=1.24
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/games-rpg/eternal-lands-data/ChangeLog,v
20 retrieving revision 1.23
21 retrieving revision 1.24
22 diff -u -r1.23 -r1.24
23 --- ChangeLog 30 Dec 2010 22:54:38 -0000 1.23
24 +++ ChangeLog 17 Jan 2011 19:58:33 -0000 1.24
25 @@ -1,6 +1,12 @@
26 # ChangeLog for games-rpg/eternal-lands-data
27 -# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/games-rpg/eternal-lands-data/ChangeLog,v 1.23 2010/12/30 22:54:38 rich0 Exp $
29 +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
30 +# $Header: /var/cvsroot/gentoo-x86/games-rpg/eternal-lands-data/ChangeLog,v 1.24 2011/01/17 19:58:33 rich0 Exp $
31 +
32 +*eternal-lands-data-1.9.1_p20110117 (17 Jan 2011)
33 +
34 + 17 Jan 2011; Richard Freeman <rich0@g.o>
35 + +eternal-lands-data-1.9.1_p20110117.ebuild:
36 + Update to sound files.
37
38 *eternal-lands-data-1.9.1 (30 Dec 2010)
39
40
41
42
43 1.1 games-rpg/eternal-lands-data/eternal-lands-data-1.9.1_p20110117.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-rpg/eternal-lands-data/eternal-lands-data-1.9.1_p20110117.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-rpg/eternal-lands-data/eternal-lands-data-1.9.1_p20110117.ebuild?rev=1.1&content-type=text/plain
47
48 Index: eternal-lands-data-1.9.1_p20110117.ebuild
49 ===================================================================
50 # Copyright 1999-2011 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/games-rpg/eternal-lands-data/eternal-lands-data-1.9.1_p20110117.ebuild,v 1.1 2011/01/17 19:58:33 rich0 Exp $
53
54 inherit games
55
56 MUSIC_DATE="20060803"
57
58 MY_PV="${PV//_/}"
59 MY_PV="${MY_PV//./}"
60 MY_PN="${PN%*-data}"
61 DESCRIPTION="An online MMORPG written in C and SDL"
62 HOMEPAGE="http://www.eternal-lands.com"
63 SRC_URI="http://www.eternal-lands.com/el_linux_191.zip
64 music? ( mirror://gentoo/el_music_full-${MUSIC_DATE}.zip )
65 sound? ( http://www.eternal-lands.com/sound/EL_sound_191.zip )"
66 # WARNING: The music file is held at
67 # http://www.eternal-lands.com/page/music.php
68 # We only mirror it so that it is versioned by the date we mirrored it
69 # AND prefixed with el_ so as not cause any conflicts. Maybe oneday they will
70 # version their music, maybe not.
71
72 LICENSE="eternal_lands"
73 SLOT="0"
74 KEYWORDS="~amd64 ~x86 ~x86-fbsd"
75 IUSE="music sound bloodsuckermaps"
76
77 DEPEND="app-arch/unzip
78 !bloodsuckermaps? ( !games-rpg/eternal-lands-bloodsucker )"
79
80 PDEPEND="bloodsuckermaps? ( games-rpg/eternal-lands-bloodsucker )"
81
82 # Maybe one day upstream will do things in a consistent way.
83 S="${WORKDIR}/el_linux"
84
85 src_unpack() {
86 unpack ${A}
87 cd "${S}"
88
89 # Move our music files to the correct directory
90 if use music ; then
91 mkdir music
92 mv ../*.ogg ../*.pll music || die
93 fi
94 }
95
96 src_install() {
97 # These are provided by eternal-lands ebuild
98
99 rm license.txt
100 rm commands.lst
101
102 # don't install maps if using alternate maps
103 if use bloodsuckermaps ; then
104 rm maps/anitora.bmp maps/cave1.bmp maps/cont2map10.bmp
105 rm maps/cont2map11.bmp maps/cont2map12.bmp maps/cont2map13.bmp
106 rm maps/cont2map14.bmp maps/cont2map15.bmp maps/cont2map16.bmp
107 rm maps/cont2map17.bmp maps/cont2map18.bmp maps/cont2map19.bmp
108 rm maps/cont2map1.bmp maps/cont2map20.bmp maps/cont2map21.bmp
109 rm maps/cont2map22.bmp maps/cont2map23.bmp maps/cont2map24.bmp
110 rm maps/cont2map2.bmp maps/cont2map3.bmp maps/cont2map4.bmp
111 rm maps/cont2map5.bmp maps/cont2map6.bmp maps/cont2map7.bmp
112 rm maps/cont2map8.bmp maps/cont2map9.bmp maps/irilion.bmp
113 rm maps/legend.bmp maps/map11.bmp maps/map12.bmp
114 rm maps/map13.bmp maps/map14f.bmp maps/map15f.bmp
115 rm maps/map2.bmp maps/map3.bmp maps/map4f.bmp
116 rm maps/map5nf.bmp maps/map6nf.bmp maps/map7.bmp
117 rm maps/map8.bmp maps/map9f.bmp maps/seridia.bmp
118 rm maps/startmap.bmp
119 fi
120
121 insopts -m 0660
122 insinto "${GAMES_DATADIR}/${MY_PN}"
123 doins -r 2dobjects 3dobjects actor_defs animations maps meshes \
124 particles skeletons shaders textures languages shaders skybox \
125 *.lst 3dobjects.txt *.xml \
126 || die "doins failed"
127
128 if use music ; then
129 doins -r music || die "doins music failed"
130 fi
131
132 # Removed sound from above - need to handle sound support
133
134 cd "${WORKDIR}"
135 if use sound ; then
136 doins -r sound || die "doins sound failed"
137 fi
138
139 prepgamesdirs
140 }
141
142 pkg_postinst() {
143 games_pkg_postinst
144 # Ensure that the files are writable by the game group for auto
145 # updating.
146 chmod -R g+rw "${ROOT}/${GAMES_DATADIR}/${MY_PN}"
147
148 # Make sure new files stay in games group
149 find "${ROOT}/${GAMES_DATADIR}/${MY_PN}" -type d -exec chmod g+sx {} \;
150 }