blob: 235ce50d6bddf8e32091700cc19f48f1b8e9a828 (
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
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-im/ymessenger/ymessenger-1.0.6.1.ebuild,v 1.4 2005/09/07 08:11:53 swegener Exp $
inherit rpm eutils
IUSE=""
MY_P=${PN}-${PV%.*}-${PV#*.*.*.*}
S=${WORKDIR}
DESCRIPTION="Yahoo's instant messenger client"
HOMEPAGE="http://public.yahoo.com/~mmk/index.html"
SRC_URI="http://public.yahoo.com/~mmk/rh9.${MY_P}.i386.rpm"
RDEPEND="virtual/x11
media-libs/gdk-pixbuf
dev-libs/openssl
amd64? ( app-emulation/emul-linux-x86-xlibs
>=app-emulation/emul-linux-x86-gtklibs-2.2 )"
SLOT="0"
LICENSE="yahoo"
KEYWORDS="-* ~amd64 ~x86"
src_install () {
cd ${S}/opt/ymessenger/bin
exeinto /opt/ymessenger/bin
doexe ymessenger.bin ymessenger
insinto /usr/share/icons/hicolor/48x48/apps
newins yahoo_gnome.png yahoo.png
sed -e 's:Icon=.*:Icon=yahoo:' -i ymessenger.desktop
domenu ymessenger.desktop
exeinto /opt/ymessenger/lib
doexe ${S}/opt/ymessenger/lib/libgtkhtml.so.0
cat >${T}/ymessenger.gentoo <<EOF
#!/bin/sh
LD_LIBRARY_PATH=/opt/ymessenger/lib:\$LD_LIBRARY_PATH
export LD_LIBRARY_PATH
exec /opt/ymessenger/bin/ymessenger.bin $@
EOF
exeinto /usr/bin
newexe ${T}/ymessenger.gentoo ymessenger
}
pkg_postinst() {
einfo ""
einfo "If you are upgrading from an older version of ymessenger,"
einfo "please unmerge the previous version."
einfo "-=AND=-"
einfo "mv ~/.ymessenger/preferences ~/.ymessenger/preferences.old"
einfo ""
}
|