summaryrefslogtreecommitdiff
blob: 50766b4d7e718f7d104ca1408763591b7a40bf74 (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
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=6

inherit autotools

DESCRIPTION="eXtensible Markup Language parser library designed for Jabber applications"
HOMEPAGE="https://github.com/meduketto/iksemel"
SRC_URI="https://${PN}.googlecode.com/files/${P}.tar.gz"

LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="amd64 ppc ~ppc64 x86"
IUSE="ssl static-libs"

RDEPEND="ssl? ( net-libs/gnutls:= )"
DEPEND="${RDEPEND}
	ssl? ( virtual/pkgconfig )"

PATCHES=(
	"${FILESDIR}"/${PN}-1.3-gnutls-2.8.patch
	"${FILESDIR}"/${PN}-1.4-gnutls-3.4.patch
	"${FILESDIR}"/${PN}-1.4-ikstack.patch
)

src_prepare() {
	default
	eautoreconf
}

src_configure() {
	econf \
		$(use_with ssl gnutls) \
		$(use_enable static-libs static)
}

src_install() {
	default
	dodoc HACKING

	# package installs .pc files
	find "${D}" -name '*.la' -delete || die
}