/[gentoo-x86]/games-arcade/pydance/pydance-1.0.3.ebuild
Gentoo

Contents of /games-arcade/pydance/pydance-1.0.3.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.9 - (show annotations) (download)
Wed Jan 30 22:50:26 2013 UTC (7 years, 6 months ago) by mr_bones_
Branch: MAIN
CVS Tags: HEAD
Changes since 1.8: +1 -1 lines
FILE REMOVED
old

(Portage version: 2.1.11.31/cvs/Linux x86_64, unsigned Manifest commit)

1 # Copyright 1999-2010 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/games-arcade/pydance/pydance-1.0.3.ebuild,v 1.8 2010/02/08 21:57:42 ulm Exp $
4
5 EAPI=2
6 inherit eutils games
7
8 DESCRIPTION="a DDR clone for linux written in Python"
9 HOMEPAGE="http://www.icculus.org/pyddr/"
10 SRC_URI="http://www.icculus.org/pyddr/${P}.tar.gz"
11
12 LICENSE="MIT"
13 SLOT="0"
14 KEYWORDS="~amd64 ppc x86"
15 IUSE=""
16
17 DEPEND="dev-python/pygame
18 media-libs/libvorbis
19 media-libs/sdl-mixer"
20 PDEPEND="games-arcade/pydance-songs"
21
22 src_prepare() {
23 sed -i \
24 -e "s:1\.0\.1:1.0.2:" \
25 -e "s:/etc/:${GAMES_SYSCONFDIR}/:" \
26 pydance.py constants.py docs/man/pydance.6 \
27 || die "sed failed"
28 # http://bugs.debian.org/cgi-bin/bugreport.cgi/bugreport.cgi?bug=375651
29 epatch "${FILESDIR}/${P}-debian.patch"
30 }
31
32 src_install() {
33 local dir=${GAMES_DATADIR}/${PN}
34
35 insinto "${dir}"
36 doins *.py || die "doins failed"
37 cp -R CREDITS {sound,images,utils,themes} "${D}${dir}/" || die "cp failed"
38
39 insinto "${GAMES_SYSCONFDIR}"
40 newins pydance.posix.cfg pydance.cfg
41
42 games_make_wrapper pydance "python ./pydance.py" "${dir}"
43
44 dodoc BUGS CREDITS ChangeLog HACKING README TODO
45 dohtml -r docs/manual.html docs/images
46 doman docs/man/*
47 prepgamesdirs
48 }
49
50 pkg_postinst() {
51 games_pkg_postinst
52 echo
53 elog "If you want to use a DDR pad with pyDance,"
54 elog "all you need to do is emerge the games-arcade/ddrmat kernel module."
55 echo
56 }

  ViewVC Help
Powered by ViewVC 1.1.20