# Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: /home/cvsroot/gentoo-x86/net-irc/kvirc/kvirc-3.0.0.ebuild,v 1.5 2004/03/17 16:45:52 caleb Exp $ inherit kde-base MYP=${P//_/-} MYPV=${PV//_/-} S=${WORKDIR}/${MYP} DESCRIPTION="An advanced IRC Client" HOMEPAGE="http://www.kvirc.net/" SRC_URI="ftp://ftp.kvirc.net/pub/kvirc/3.0.0/source/kvirc-3.0.0.tar.bz2" LICENSE="kvirc" SLOT="3" KEYWORDS="x86 ~amd64" IUSE="kde ipv6 ssl" DEPEND="esd? ( media-sound/esound ) ssl? ( dev-libs/openssl ) oss? ( media-libs/audiofile ) >=x11-libs/qt-3 kde? ( >=kde-base/kdelibs-3 )" [ `use debug` ] && myconf="$myconf --with-debug-symbols" [ "$ARCH" == "x86" ] && myconf="$myconf --with-ix86-asm" #use ipv6 && myconf="$myconf --with-ipv6-support" \ use ipv6 || myconf="$myconf --without-ipv6-support" #use kde && myconf="$myconf --with-kde-support --with-arts-support" \ use kde || myconf="$myconf --without-kde-support --without-arts-support" use oss && myconf="$myconf --with-af--support" \ || myconf="$myconf --without-af-support" #use ssl && myconf="$myconf --with-ssl-support" \ use ssl || myconf="$myconf --without-ssl-support" # use aa even when kde support is disabled; remove the splash screen # to speed up the startup. myconf="$myconf --with-aa-fonts --without-splash-screen" src_compile() { # always install into /usr regardless of kde support kvirc # doesn't have a kde-like installed file structure anyway myconf="$myconf --prefix=/usr" # make sure we disable kde support as the configure script # can auto-enable it when it isn't wanted use kde || export KDEDIR="" need-automake 1.5 need-autoconf 2.5 ./configure $myconf make || die } src_install() { make install DESTDIR=${D} || die make docs DESTDIR=${D} || die dodoc ChangeLog INSTALL README TODO }