# Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/app-cdr/cdemu/cdemu-0.6_beta.ebuild,v 1.6 2004/06/21 14:09:59 vapier Exp $ inherit gcc 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="x86 ppc" IUSE="" DEPEND="virtual/kernel" RDEPEND="dev-lang/python" src_compile() { if [ "${KV:0:3}" == "2.6" ] ; then emake KERN_DIR=/usr/src/linux BUILD_GHETTO=yes || die else 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 }