blob: 631cf342687db1c8336e38c04dbcbfd7f53552e6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
# Copyright 1999-2004 Gentoo Foundation, 2002-2003 Mike Frysinger
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-cdr/cdemu/cdemu-0.5.3.ebuild,v 1.4 2004/06/25 03:20:31 agriffis Exp $
inherit gcc python
MY_P=${PN}_${PV}
DESCRIPTION="mount bin/cue cd images"
HOMEPAGE="http://robert.private.outertech.com/virtualcd/"
SRC_URI="http://robert.private.outertech.com/virtualcd/${MY_P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
IUSE=""
KEYWORDS="x86 ppc"
DEPEND="virtual/kernel"
RDEPEND="dev-lang/python"
S=${WORKDIR}/${MY_P}
pkg_setup() {
if [ "${KV:0:3}" != "2.4" ] ; then
die "This package only works with 2.4.x kernels"
else
true
fi
}
src_compile() {
$(gcc-getCC) -c cdemu.c -o cdemu.o \
${CFLAGS} -D__KERNEL__ -DMODULE -Wall \
-I/usr/src/linux/include \
|| die "could not make kernel module"
}
src_install() {
dobin cdemu
python_version
insinto /usr/lib/python${PYVER}/site-packages
doins libcdemu.py
insinto /lib/modules/${KV}/kernel/fs/cdemu
doins cdemu.o
dodoc AUTHORS ChangeLog README TODO
}
|