blob: fa797b3a6fdb5d4169420ed6de31caf775b1291a (
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
|
# Copyright 1999-2004 Gentoo Technologies, Inc., 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.2 2004/01/24 22:39:01 liquidx 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"
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
}
|