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

Contents of /games-arcade/pyddr/pyddr-0.6.5.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, 11 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.6.5.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
21 echo "#!/bin/bash" > pyddr
22 echo "cd /usr/share/games/pyddr" >> pyddr
23 echo "python pyddr.py" >> pyddr
24 }
25
26 src_install() {
27 insinto /usr/share/games/pyddr
28 doins *.py
29
30 cp -R {sound,images,utils,themes} ${D}/usr/share/games/pyddr
31
32 fowners root.games /usr/share/games/pyddr/*
33
34 # kernel module for dance mat
35 chown root.root -R ddrmat
36 chmod -R 755 ddrmat
37 mv ddrmat ${D}/usr/share/pyddr
38
39 insinto /etc
40 newins pyddr.posix.cfg pyddr.cfg
41
42 into /usr
43 dobin pyddr
44
45 dodoc CREDITS ChangeLog INSTALL LICENSE README *.txt
46 dohtml docs/README.html
47 doman docs/man/*
48 }
49
50
51 pkg_postinst() {
52 einfo
53 einfo "Execute \"ebuild /var/db/pkg/app-games/${P}/${P}.ebuild config\""
54 einfo "to install the ddrmat kernel module, which allows you to use the"
55 einfo "the DDR mat with pyDDR"
56 }
57
58 pkg_config() {
59 ebegin "Compiling kernel module"
60 gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes \
61 -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing \
62 -fno-common -pipe -mpreferred-stack-boundary=2 -falign-functions=4 \
63 -DMODULE -DMODVERSIONS -include \
64 /usr/src/linux/include/linux/modversions.h \
65 -c -o /usr/share/pyddr/ddrmat/ddrmat.o \
66 /usr/share/pyddr/ddrmat/ddrmat.c &>/dev/null
67 eend $?
68
69 ebegin "Installing kernel module"
70 cp /usr/share/pyddr/ddrmat/ddrmat.o \
71 /lib/modules/${KV}/kernel/drivers/char/joystick
72 eend $?
73
74 ebegin "Calculating modules dependencies"
75 depmod -ae
76 eend $?
77
78 ebegin "Loading the ddrmat module"
79 modprobe ddrmat gc=0,7
80 eend $?
81 }

  ViewVC Help
Powered by ViewVC 1.1.20