summaryrefslogtreecommitdiff
blob: e65f5ad541bc5c87c311ed12454fd9d2c556d268 (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
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-im/ayttm/ayttm-0.6.3.ebuild,v 1.3 2012/03/18 13:17:27 ssuominen Exp $

EAPI=4
inherit autotools eutils multilib

DESCRIPTION="A multi-protocol instant messaging client"
HOMEPAGE="http://ayttm.sourceforge.net/"
SRC_URI="mirror://sourceforge/ayttm/${PV}/${P}.tar.bz2"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="crypt icq irc jabber lj msn nls oscar smtp webcam xscreensaver yahoo"

CDEPEND="app-text/enchant
	dev-libs/glib:2
	dev-libs/openssl
	virtual/libiconv
	x11-libs/gdk-pixbuf
	x11-libs/gtk+:2
	x11-libs/libX11
	x11-libs/libXpm
	x11-libs/pango
	crypt? ( app-crypt/gpgme )
	webcam? ( media-libs/jasper )
	xscreensaver? ( x11-libs/libXScrnSaver )
	yahoo? ( net-libs/libyahoo2 )"
RDEPEND="${CDEPEND}
	webcam? ( media-tv/xawtv )"
DEPEND="${CDEPEND}
	sys-devel/bison
	sys-devel/flex
	nls? ( sys-devel/gettext )"

src_prepare() {
	epatch "${FILESDIR}"/${P}-opt-xscreensaver.patch \
		"${FILESDIR}"/${P}-opt-webcam.patch
	eautoreconf
}

src_configure() {
	econf \
		$(use_enable crypt aycryption) \
		--disable-esd \
		$(use_enable icq) \
		$(use_enable irc) \
		$(use_enable jabber) \
		$(use_enable lj) \
		$(use_enable msn) \
		$(use_enable nls) \
		$(use_enable oscar) \
		$(use_enable smtp) \
		$(use_enable webcam) \
		$(use_enable xscreensaver) \
		$(use_enable yahoo) \
		--disable-arts \
		--enable-posix-dlopen \
		--disable-static
}

src_install() {
	emake DESTDIR="${D}" install
	dodoc AUTHORS ChangeLog README README.LINUX TODO
	rm -f "${D}"/usr/$(get_libdir)/${PN}/*.la
}