# Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: /home/cvsroot/gentoo-x86/app-cdr/cdrdao/cdrdao-1.1.8.ebuild,v 1.2 2004/02/23 16:18:11 pylon Exp $ inherit flag-o-matic eutils DESCRIPTION="Burn CDs in disk-at-once mode -- with optional GUI frontend" HOMEPAGE="http://cdrdao.sourceforge.net/" SRC_URI="mirror://sourceforge/cdrdao/${P}.tar.gz" #RESTRICT="nomirror" # Why is this here? RESTRICT="nostrip" DEBUG="yes" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86 ~ppc ~sparc" IUSE="gnome oggvorbis" RDEPEND="gnome? ( >=dev-cpp/gtkmm-2.0 >=dev-cpp/libgnomeuimm-2.0 ) >=media-sound/lame-3.90" DEPEND=">=dev-util/pccts-1.33.24-r1 ${RDEPEND}" src_unpack() { unpack ${A} cd ${S} # Only way to disable gcdmaster currently ... use gnome || \ sed -i -e 's:^en_xdao=yes:en_xdao=no:g' configure (cd scsilib/include && sed -e 's;HAVE_SCANSTACK;NO_FRIGGING_SCANSTACK;g' xmconfig.h >xmconfig.h.new && mv xmconfig.h.new xmconfig.h) (cd scsilib/include && sed -e 's;HAVE_SCANSTACK;NO_FRIGGING_SCANSTACK;g' mconfig.h >mconfig.h.new && mv mconfig.h.new mconfig.h) } src_compile() { # -funroll-loops do not work filter-flags "-funroll-loops" ./configure --build="${CHOST}"\ --host="${CHOST}" \ --prefix=/usr --enable-debug=full \ `use_with gnome gnome` || die "configure failed" emake || die } src_install() { einstall cd ${S} # Desktop Icon if [ -n "`use gnome`" ] then insinto /usr/share/pixmaps doins xdao/stock/gcdmaster.png insinto /usr/share/gnome/apps/Applications doins ${FILESDIR}/gcdmaster.desktop fi # Documentation dodoc AUTHORS COPYING CREDITS ChangeLog NEWS README* }