# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

DESCRIPTION="cd ripping bash script"
HOMEPAGE="http://www.mbayer.de/dekagen/"
SRC_URI="ftp://ftp.ibiblio.org/pub/linux/apps/sound/convert/${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~ppc"
IUSE="encode ogg"

DEPEND="virtual/libc
	>=dev-util/dialog-0.6
	virtual/cdrtools
	virtual/eject
	encode? (
		|| (
			media-sound/bladeenc
			media-sound/lame
			media-sound/notlame
	 	)
	)
	ogg? ( media-sound/vorbis-tools ) "

RDEPEND="${DEPEND}
	|| (
		app-shells/bash
		app-shells/ksh
		app-shells/sash
	) "

src_install() {

	dodir /usr/local/man/man1
	dodir /usr/bin
	dodir /usr/share/dekagen

	exeinto /usr/share/dekagen
	doexe dekagen || die
	
	# no docs to install
	doman dekagen.1.gz
	ln -sf /usr/share/dekagen/dekagen ${D}/usr/bin/dekagen

	dodoc README CHANGES COPYING CREDITS

}