# Copyright 1999-2002 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/net-misc/d4x/d4x-2.4_beta.ebuild,v 1.1 2002/10/19 13:32:11 azarah Exp $ IUSE="nls esd gnome oss" S="${WORKDIR}/${P/_}" DESCRIPTION="GTK based download manager for X." SRC_URI="http://www.krasu.ru/soft/chuchelo/files/${P/_}.tar.gz" HOMEPAGE="http://www.krasu.ru/soft/chuchelo/" # Currently seems to be pretty borked KEYWORDS="-x86 -ppc -sparc -sparc64 -alpha" SLOT="0" LICENSE="nt" DEPEND=">=x11-libs/gtk+-2.0 >=dev-libs/glib-2.0 esd? ( >=media-sound/esound-0.2.7 )" src_unpack() { unpack ${A} # Use our own $CXXFLAGS cd ${S} cp configure configure.orig sed -e "s:CXXFLAGS=\"-O2\":CXXFLAGS=\"${CXXFLAGS}\":g" \ configure.orig >configure } src_compile() { myconf="" use nls \ && myconf="${myconf} --enable-nls" \ || myconf="${myconf} --disable-nls" use esd \ && myconf="${myconf} --enable-esd" \ || myconf="${myconf} --disable-esd" use oss \ && myconf="${myconf} --enable-oss" \ || myconf="${myconf} --disable-oss" econf --enable-release \ ${myconf} || die emake || die } src_install () { dodir /usr/bin dodir /usr/share/d4x einstall || die insinto /usr/share/pixmaps doins *.png *.xpm if [ -n "`use gnome`" ] then insinto /usr/share/gnome/apps/Internet newins nt.desktop d4x.desktop fi rm -rf ${D}/usr/share/d4x/{FAQ*,INSTALL*,README*,LICENSE,NAMES,TROUBLES} dodoc AUTHORS COPYING ChangeLog* NEWS PLANS TODO \ DOC/{FAQ*,LICENSE,NAMES,README*,TROUBLES,THANKS} }