/[gentoo-x86]/games-arcade/pyddr/pyddr-0.7.0.ebuild
Gentoo

Contents of /games-arcade/pyddr/pyddr-0.7.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Fri Sep 26 19:56:26 2003 UTC (10 years, 10 months ago) by vapier
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
now called pydance

1 # Copyright 1999-2003 Gentoo Technologies, Inc.
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /home/cvsroot/gentoo-x86/games-arcade/pyddr/pyddr-0.7.0.ebuild,v 1.2 2003/09/10 19:37:29 vapier Exp $
4
5 DESCRIPTION="Dance Dance Revolution! You need this game more than Frozen Bubble"
6 HOMEPAGE="http://www.icculus.org/pyddr/"
7 SRC_URI="http://www.icculus.org/pyddr/${P}.tar.gz"
8
9 SLOT="0"
10 LICENSE="X11"
11 KEYWORDS="x86"
12 IUSE=""
13
14 RDEPEND="games-arcade/pyddr-songs
15 dev-python/pygame
16 media-libs/libvorbis
17 media-libs/sdl-mixer"
18
19 src_compile() {
20 echo "#!/bin/bash" > pyddr
21 echo "cd /usr/share/games/pyddr" >> pyddr
22 echo "python pyddr.py" >> pyddr
23 }
24
25 src_install() {
26 insinto /usr/share/games/pyddr
27 doins *.py
28
29 cp -R {sound,images,utils,themes} ${D}/usr/share/games/pyddr
30
31 fowners root.games /usr/share/games/pyddr/*
32
33 # kernel module for dance mat
34 chown root.root -R ddrmat
35 chmod -R 755 ddrmat
36 mv ddrmat ${D}/usr/share/pyddr
37
38 insinto /etc
39 newins pyddr.posix.cfg pyddr.cfg
40
41 into /usr
42 dobin pyddr
43
44 dodoc CREDITS ChangeLog INSTALL LICENSE README *.txt
45 dohtml docs/README.html
46 doman docs/man/*
47 }
48
49
50 pkg_postinst() {
51 einfo
52 einfo "Execute \"ebuild /var/db/pkg/app-games/${P}/${P}.ebuild config\""
53 einfo "to install the ddrmat kernel module, which allows you to use the"
54 einfo "the DDR mat with pyDDR"
55 }
56
57 pkg_config() {
58 ebegin "Compiling kernel module"
59 gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes \
60 -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing \
61 -fno-common -pipe -mpreferred-stack-boundary=2 -falign-functions=4 \
62 -DMODULE -DMODVERSIONS -include \
63 /usr/src/linux/include/linux/modversions.h \
64 -c -o /usr/share/pyddr/ddrmat/ddrmat.o \
65 /usr/share/pyddr/ddrmat/ddrmat.c &>/dev/null
66 eend $?
67
68 ebegin "Installing kernel module"
69 cp /usr/share/pyddr/ddrmat/ddrmat.o \
70 /lib/modules/${KV}/kernel/drivers/char/joystick
71 eend $?
72
73 ebegin "Calculating modules dependencies"
74 depmod -ae
75 eend $?
76
77 ebegin "Loading the ddrmat module"
78 modprobe ddrmat gc=0,7
79 eend $?
80 }

  ViewVC Help
Powered by ViewVC 1.1.20