blob: 2a41fb0b003c28aa04fb0bb7071f0c6e5797ded1 (
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
|
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-libs/loudmouth/loudmouth-1.4.3-r2.ebuild,v 1.4 2011/12/11 09:02:14 phajdan.jr Exp $
EAPI="4"
GNOME_TARBALL_SUFFIX="bz2"
GNOME2_LA_PUNT="yes"
inherit autotools eutils gnome2
DESCRIPTION="Lightweight C Jabber library"
HOMEPAGE="https://github.com/engineyard/loudmouth"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~sparc x86 ~ppc-macos"
IUSE="asyncns debug doc ssl static-libs test"
# Automagic libidn dependency
RDEPEND=">=dev-libs/glib-2.4
net-dns/libidn
ssl? ( >=net-libs/gnutls-1.4.0 )
asyncns? ( net-libs/libasyncns )"
# FIXME:
# openssl dropped because of bug #216705
DEPEND="${RDEPEND}
test? ( dev-libs/check )
dev-util/pkgconfig
doc? ( >=dev-util/gtk-doc-1 )
>=dev-util/gtk-doc-am-1"
DOCS="AUTHORS ChangeLog NEWS README"
pkg_setup() {
G2CONF="${G2CONF} $(use_enable debug) $(use_enable static-libs static)"
if use ssl; then
G2CONF="${G2CONF} --with-ssl=gnutls"
else
G2CONF="${G2CONF} --with-ssl=no"
fi
if use asyncns; then
G2CONF="${G2CONF} --with-asyncns=system"
else
G2CONF="${G2CONF} --without-asyncns"
fi
}
src_prepare() {
gnome2_src_prepare
# Use system libasyncns, bug #236844
epatch "${FILESDIR}/${P}-asyncns-system.patch"
# Fix detection of gnutls-2.8, bug #272027
epatch "${FILESDIR}/${P}-gnutls28.patch"
# Fix digest auth with SRV (or similar)
# Upstream: http://loudmouth.lighthouseapp.com/projects/17276-libloudmouth/tickets/44-md5-digest-uri-not-set-correctly-when-using-srv
epatch "${FILESDIR}/${P}-fix-sasl-md5-digest-uri.patch"
# Drop stanzas when failing to convert them to LmMessages
# From debian..
epatch "${FILESDIR}/${P}-drop-stanzas-on-fail.patch"
# Don't check for sync dns problems when using asyncns [#33]
# From debian..
epatch "${FILESDIR}/${P}-async-fix.patch"
# Don't append id tag in opening headers [#30]
epatch "${FILESDIR}/${P}-id-tag-in-opening-headers.patch"
# Silence chdir, from engineyard git
epatch "${FILESDIR}/${P}-silence-chdir.patch"
# Don't free connection internals before connection is closed [#34]
epatch "${FILESDIR}/${P}-free-before-closed.patch"
# Check for invalid utf8, bug #389127
# Upstream: http://loudmouth.lighthouseapp.com/projects/17276/tickets/61
epatch "${FILESDIR}/${P}-invalid-unicode.patch"
eautoreconf
}
|