summaryrefslogtreecommitdiff
blob: 0f93f3431d89032dfd72a915e7bf0013cb5f79ef (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
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-cdr/cdemu/cdemu-0.7.ebuild,v 1.5 2005/05/16 02:26:09 vapier Exp $

inherit flag-o-matic python

DESCRIPTION="mount bin/cue cd images"
HOMEPAGE="http://cdemu.org/"
SRC_URI="mirror://sourceforge/cdemu/${P}.tar.bz2"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="hppa ppc x86 amd64"
IUSE=""

DEPEND="virtual/linux-sources"
RDEPEND="dev-lang/python"

src_compile() {
	if [ "${KV:0:3}" == "2.6" ] && [[ `KV_to_int ${KV}` -lt `KV_to_int 2.6.6` ]] ; then
		emake KERN_DIR=/usr/src/linux BUILD_GHETTO=yes || die
	else
		env -u ARCH emake KERN_DIR=/usr/src/linux || die
	fi
}

src_install() {
	make install DESTDIR=${D} || die
	dodoc AUTHORS ChangeLog README TODO
}

pkg_postinst() {
	[ "${ROOT}" == "/" ] && depmod -a
}