blob: 1e83499d818277b8d66ee371c71399f2471cb024 (
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
79
80
81
82
83
84
85
86
87
88
89
90
|
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-im/amsn/amsn-0.90.ebuild,v 1.6 2004/03/04 14:56:06 tester Exp $
S="${WORKDIR}/msn"
DESCRIPTION="Alvaro's Messenger client for MSN"
SRC_URI="mirror://sourceforge/${PN}/${P/./_}.tar.gz"
HOMEPAGE="http://amsn.sourceforge.net"
IUSE="gnome kde imlib imagemagick xmms"
SLOT="0"
LICENSE="GPL-2"
KEYWORDS="x86 ~alpha ~sparc"
DEPEND=">=dev-lang/tcl-8.3.3
>=dev-lang/tk-8.3.3
dev-tcltk/tls
imlib? ( media-libs/imlib )
imagemagick? ( media-gfx/imagemagick )
xmms? ( media-plugins/xmms-infopipe )"
src_unpack() {
unpack ${A}
echo 'Categories=Application;Network;' >> ${S}/amsn.desktop
}
src_compile() {
if [ -n "`use imlib`" ]
then
einfo "Compiling the freedesktop notification plugin"
cd ${S}/plugins/traydock
econf || die
make || die
fi
}
src_install() {
dodir /usr/share/amsn/
cp -a ${S}/* ${D}/usr/share/amsn/
# Remove all CVS extra stuff
find ${D} -type d -name CVS -exec rm -rf {} \;
if [ -n "`use gnome`" ]
then
dodir /usr/share/applications
cp ${D}/usr/share/amsn/amsn.desktop ${D}/usr/share/applications
einfo "Installing GNOME Icons in /usr/share/pixmaps"
dodir /usr/share/pixmaps
cp -a ${S}/icons/32x32/* ${D}/usr/share/pixmaps/
fi
if [ -n "`use kde`" ]
then
dodir /usr/share/applnk/Internet
cp ${D}/usr/share/amsn/amsn.desktop ${D}/usr/share/applnk/Internet/
einfo "Installing KDE Icons in default theme"
dodir ${KDEDIR}/share/icons/default.kde
cp -a ${S}/icons/* ${D}/${KDEDIR}/share/icons/default.kde
fi
if [ -n "`use imlib`" ]
then
einfo "Installing the freedesktop notification plugin"
dodir /usr/lib/amsn/plugins/traydock
mv ${D}/usr/share/amsn/plugins/traydock/libtray.so ${D}/usr/lib/amsn/plugins/traydock
rm -rf ${D}/usr/share/amsn/plugins/traydock
ln -s /usr/lib/amsn/plugins/traydock ${D}/usr/share/amsn/plugins/traydock
else
rm -rf ${D}/usr/share/amsn/plugins/traydock
fi
dodir /usr/bin/
ln -s /usr/share/amsn/amsn ${D}/usr/bin/amsn
dodoc TODO README FAQ
}
pkg_postinst() {
if [ -n "`use xmms`" ]
then
einfo "For XMMS use in amsn, make sure the xmms-infopipe plugin is enabled."
fi
}
|