summaryrefslogtreecommitdiff
blob: d3cb9201f7935804a4d0a2bed650cc1ee5e25743 (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
69
70
71
72
73
74
75
76
77
78
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-im/psi/psi-0.8.7.ebuild,v 1.6 2003/02/13 14:12:35 vapier Exp $
inherit kde-functions

IUSE="ssl"

S=${WORKDIR}/${P}
QV="1.0"
SRC_URI="mirror://sourceforge/psi/${P}.tar.bz2
	mirror://sourceforge/psi/qssl-${QV}.tar.bz2"
DESCRIPTION="QT 3.x Jabber Client, with Licq-like interface"
HOMEPAGE="http://psi.affinix.com"

SLOT="0"
LICENSE="GPL-2"
KEYWORDS="x86 ppc"

need-qt 3

newdepend "ssl? ( >=dev-libs/openssl-0.9.6c )"

src_unpack() {

	unpack ${P}.tar.bz2
	unpack qssl-${QV}.tar.bz2
	cd ${S}/src
	patch -p0 < ${FILESDIR}/gen2-branding-0.8.7.patch

}

src_compile() {
	
	./configure --prefix=/usr || die
	make || die
	mv src/psi psi

        if [ "`use ssl`" ]; then
                cd ${WORKDIR}/qssl-${QV}
                qmake qssl.pro
                make
        fi	


}

src_install() {

	export PREFIX=${D}/usr
	export BINDIR=$PREFIX/bin
	export LIBDIR=$PREFIX/share/psi

	dodir /usr/share/psi
	echo [Installing Psi]

	mkdir -p $BINDIR
	mkdir -p $LIBDIR

	echo Copying program to $BINDIR
	cp ./psi $BINDIR

	echo Copying additional files to $LIBDIR
	cp -r ./image $LIBDIR
	cp -r ./iconsets $LIBDIR
	cp -r ./sound $LIBDIR
	cp -r ./certs $LIBDIR

	dodoc README COPYING 



	if [ "`use ssl`" ]; then
		cd ${WORKDIR}/qssl-${QV}
		cp libqssl.so ${D}/usr/share/psi
		cd ${S}
	fi

}