summaryrefslogtreecommitdiff
blob: aa95f72e5e1fc926260c01eed7244d5f5c0d4c76 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# Copyright 1999-2000 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# $Header: /var/cvsroot/gentoo-x86/net-irc/kvirc/kvirc-3.0.0_beta1.ebuild,v 1.5 2002/07/27 13:55:29 danarmak Exp $
inherit kde-base

MYP=${P//_/-}
MYPV=${PV//_/-}
S=${WORKDIR}/${MYP}
DESCRIPTION="An advanced IRC Client"
SRC_URI="ftp://ftp.kvirc.net/kvirc/${MYPV}/source/${MYP}.tar.gz"
HOMEPAGE="http://www.kvirc.net"

SLOT="3"
LICENSE="kvirc"
KEYWORDS="x86"

use kde && need-kde 3 || need-qt 3

newdepend "esd? ( media-sound/esound )"
#	   ssl? ( dev-libs/openssl )"
use kde || newdepend "arts? ( kde-base/arts )"

[ -n "$DEBUG" ]		&& myconf="$myconf --with-debug-symbols"
[ "$ARCH" == "x86" ]	&& myconf="$myconf --with-ix86-asm"
use ipv6		&& myconf="$myconf --with-ipv6-support" \
			|| myconf="$myconf --without-ipv6-support"
# arts support without kde support isn't liked by the configure script
# possibly it could be made to work but i didn't want to spend time on it
use kde			&& myconf="$myconf --with-kde-support --with-arts-support" \
			|| myconf="$myconf --without-kde-support --without-arts-support" 
use esd			&& myconf="$myconf --with-esd-support" \
			|| myconf="$myconf --without-esd-support" 
# no use flag as yet, and a hard dep is rather pointless
#use audiofile		&& myconf="$myconf --with-arts-support" \
#			|| myconf="$myconf --without-arts-support" 
# doesn't compile
#use ssl			&& myconf="$myconf --with-ssl-support" \
#			|| myconf="$myconf --without-ssl-support" 

# use aa even when kde support is disabled
myconf="$myconf --with-aa-fonts"

src_compile() {

    use kde && kde_src_compile myconf

    # always install into /usr regardless of kde support
    # kvirc doesn't have a kde-like installed file structure anyway
    myconf="$myconf --prefix=/usr -v"
    
    # make sure we disable kde support as the configure script can auto-enable
    # it when it isn't wanted
    use kde || export KDEDIR=""
    
    kde_src_compile configure make    

}

src_install () {
    
    make install DESTDIR=${D} || die
    make docs DESTDIR=${D} || die

    dodoc ChangeLog INSTALL README TODO
    
}