# Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: $ DESCRIPTION="frontend to cdrecord and mkisofs" HOMEPAGE="http://cdw.sourceforge.net" MY_P="cdw-0.2.0-pre1" SRC_URI="mirror://sourceforge/cdw/${MY_P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" IUSE="gtk oggvorbis mpeg nls" DEPEND="sys-libs/ncurses nls? ( sys-devel/gettext ) gtk? ( x11-libs/gtk+ ) oggvorbis? ( media-sound/vorbis-tools ) mpeg? ( media-sound/lame )" S=${WORKDIR}/${MY_P} src_compile() { if [ `use gtk` ] ; then EXTRA_ECONF="--enable-gui" fi if [ `use oggvorbis` ] ; then EXTRA_ECONF="${EXTRA_ECONF} --with-oggenc=/usr/bin/oggenc" fi if [ `use mpeg` ] ; then EXTRA_ECONF="${EXTRA_ECONF} --with-lame=/usr/bin/lame" fi # configure is bad, next line will be removed if the error is corrected ebegin "Regenerating ./configure" automake -a ; aclocal ; autoconf eend $? econf `use_enable nls` || die make || die } src_install() { make DESTDIR=${D} install || die } pkg_postinst() { ln -s /usr/share/cdw /usr/local/share/cdw } pkg_prerm() { rm /usr/local/share/cdw }