blob: 8ec6ae22510e8419bbe92d81ffbdcb67e3ed4ecf (
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
|
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-im/amsn/amsn-0.97.2-r1.ebuild,v 1.5 2011/02/26 19:38:07 signals Exp $
inherit autotools eutils fdo-mime gnome2-utils
MY_P=${P/_rc/RC}
S="${WORKDIR}/${MY_P}"
DESCRIPTION="Alvaro's Messenger client for MSN"
SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.bz2"
HOMEPAGE="http://www.amsn-project.net"
# The tests are interactive
RESTRICT="test"
SLOT="0"
LICENSE="GPL-2"
KEYWORDS="alpha amd64 ~hppa ppc -sparc x86"
IUSE="debug static"
DEPEND=">=dev-lang/tcl-8.4
>=dev-lang/tk-8.4
>=dev-tcltk/tls-1.4.1
virtual/jpeg
media-libs/libpng
>=dev-tcltk/snack-2.2.10"
RDEPEND="${DEPEND}"
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}/${PN}-0.97_rc1-nostrip.patch"
epatch "${FILESDIR}/amsn-0.97.2-http-fix.patch"
epatch "${FILESDIR}/amsn-0.97.2-TkCximage.patch"
eautoconf
}
src_compile() {
econf \
$(use_enable debug) \
$(use_enable static) \
|| die "configure script failed"
emake || die "Compilation failed"
}
src_install() {
make DESTDIR="${D}" install || die
dodoc AGREEMENT TODO README FAQ CREDITS
domenu amsn.desktop
sed -i -e s:.png:: "${D}/usr/share/applications/amsn.desktop"
cd desktop-icons
for i in *; do
if [ -e ${i}/msn.png ]; then
insinto /usr/share/icons/hicolor/${i}/apps
doins ${i}/msn.png
fi
done
}
pkg_postinst() {
fdo-mime_desktop_database_update
gnome2_icon_cache_update
ewarn "You might have to remove ~/.amsn prior to running as user if amsn hangs on start-up."
}
pkg_postrm() {
fdo-mime_desktop_database_update
gnome2_icon_cache_update
}
|