/[gentoo-x86]/games-strategy/lightyears/lightyears-1.4.ebuild
Gentoo

Contents of /games-strategy/lightyears/lightyears-1.4.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Sat Jan 21 16:11:10 2012 UTC (2 years, 2 months ago) by phajdan.jr
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +2 -2 lines
x86 stable wrt bug #398607

(Portage version: 2.1.10.41/cvs/Linux i686)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/games-strategy/lightyears/lightyears-1.4.ebuild,v 1.2 2012/01/17 22:42:24 ago Exp $
4
5 EAPI=3
6 PYTHON_DEPEND="2"
7 inherit eutils python games
8
9 DESCRIPTION="a single-player game with a science-fiction theme"
10 HOMEPAGE="http://www.jwhitham.org.uk/20kly/"
11 SRC_URI="http://www.jwhitham.org.uk/20kly/${P}.tar.bz2"
12
13 LICENSE="GPL-2"
14 SLOT="0"
15 KEYWORDS="amd64 x86"
16 IUSE=""
17
18 DEPEND="dev-python/pygame"
19
20 src_prepare() {
21 epatch "${FILESDIR}/${P}"-gentoo.patch
22 sed -i \
23 -e "s:@GENTOO_LIBDIR@:$(games_get_libdir)/${PN}:" \
24 -e "s:@GENTOO_DATADIR@:${GAMES_DATADIR}/${PN}:" \
25 ${PN} || die "Changing library path failed"
26 python_convert_shebangs -r 2 .
27 }
28
29 src_install() {
30 dogamesbin ${PN} || die "dogamesbin failed"
31
32 insinto "$(games_get_libdir)/${PN}"
33 doins code/*.py || die "doins code failed"
34
35 dodoc README.txt
36
37 insinto "${GAMES_DATADIR}/${PN}"
38 doins -r audio data manual || die "doins data failed"
39
40 newicon data/32.png ${PN}.png
41 make_desktop_entry ${PN} "Light Years Into Space"
42 prepgamesdirs
43 }
44
45 pkg_setup() {
46 python_set_active_version 2
47 games_pkg_setup
48 }
49
50 pkg_postinst() {
51 python_mod_optimize "$(games_get_libdir)/${PN}"
52 games_pkg_postinst
53 }
54
55 pkg_postrm() {
56 python_mod_cleanup "$(games_get_libdir)/${PN}"
57 }

  ViewVC Help
Powered by ViewVC 1.1.20