/[gentoo-x86]/games-rpg/eternal-lands/eternal-lands-1.9.3-r1.ebuild
Gentoo

Diff of /games-rpg/eternal-lands/eternal-lands-1.9.3-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.2 Revision 1.3
1# Copyright 1999-2012 Gentoo Foundation 1# Copyright 1999-2012 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/games-rpg/eternal-lands/eternal-lands-1.9.3-r1.ebuild,v 1.2 2012/06/24 11:58:25 rich0 Exp $ 3# $Header: /var/cvsroot/gentoo-x86/games-rpg/eternal-lands/eternal-lands-1.9.3-r1.ebuild,v 1.3 2012/06/24 13:11:45 rich0 Exp $
4 4
5EAPI=2 5EAPI=2
6inherit eutils flag-o-matic games 6inherit eutils flag-o-matic gnome2-utils games
7 7
8DESCRIPTION="An online MMORPG written in C and SDL" 8DESCRIPTION="An online MMORPG written in C and SDL"
9HOMEPAGE="http://www.eternal-lands.com" 9HOMEPAGE="http://www.eternal-lands.com"
10SRC_URI="mirror://gentoo/elc_1.9.3-20120213.tar.bz2 10SRC_URI="mirror://gentoo/elc_1.9.3-20120213.tar.bz2
11 http://dev.gentoo.org/~rich0/distfiles/eternal-lands.png" 11 http://dev.gentoo.org/~rich0/distfiles/eternal-lands.png"
116 mv ./docs/html/ ../client || die "Failed to move documentation directory" 116 mv ./docs/html/ ../client || die "Failed to move documentation directory"
117 fi 117 fi
118} 118}
119 119
120src_install() { 120src_install() {
121 newicon "${DISTDIR}/eternal-lands.png" ${PN}.png 121 newicon -s 64 "${DISTDIR}/eternal-lands.png" ${PN}.png
122 122
123 newgamesbin el.x86.linux.bin el \ 123 newgamesbin el.x86.linux.bin el \
124 || die "newgamesbin failed" 124 || die "newgamesbin failed"
125 make_desktop_entry el "Eternal Lands" \ 125 make_desktop_entry el "Eternal Lands" \
126 || die "make_desktop_entry failed" 126 || die "make_desktop_entry failed"
135 fi 135 fi
136 136
137 prepgamesdirs 137 prepgamesdirs
138} 138}
139 139
140pkg_preinst() {
141 games_pkg_preinst
142 gnome2_icon_savelist
143}
144
140pkg_postinst() { 145pkg_postinst() {
141 games_pkg_postinst 146 games_pkg_postinst
147 gnome2_icon_cache_update
142 elog "Auto Update is now enabled in Eternal Lands" 148 elog "Auto Update is now enabled in Eternal Lands"
143 elog "If an update occurs then the client will suddenly exit" 149 elog "If an update occurs then the client will suddenly exit"
144 elog "Updates only happen when the game first loads" 150 elog "Updates only happen when the game first loads"
145 elog "Please don't report this behaviour as a bug" 151 elog "Please don't report this behaviour as a bug"
146 152
148 # updating. 154 # updating.
149 chmod -R g+rw "${ROOT}/${GAMES_DATADIR}/${PN}" 155 chmod -R g+rw "${ROOT}/${GAMES_DATADIR}/${PN}"
150 156
151 # Make sure new files stay in games group 157 # Make sure new files stay in games group
152 find "${ROOT}/${GAMES_DATADIR}/${PN}" -type d -exec chmod g+sx {} \; 158 find "${ROOT}/${GAMES_DATADIR}/${PN}" -type d -exec chmod g+sx {} \;
159}
153 160
161pkg_postrm() {
162 gnome2_icon_cache_update
154} 163}

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

  ViewVC Help
Powered by ViewVC 1.1.20