aboutsummaryrefslogtreecommitdiff
path: root/dev-libs/libstrophe/libstrophe-9999.ebuild
blob: 0f0abad12789c51ce66a826913ee7632b4387d56 (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
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

EAPI=6

inherit autotools git-r3

DESCRIPTION="A simple, lightweight C library for writing XMPP clients"
HOMEPAGE="http://strophe.im/libstrophe/"
EGIT_REPO_URI="https://github.com/strophe/libstrophe.git git://github.com/strophe/libstrophe.git"

LICENSE="MIT GPL-3"
SLOT="0"
KEYWORDS=""
IUSE="doc xml"

RDEPEND="xml? ( dev-libs/libxml2 )
		!xml? ( dev-libs/expat )
		dev-libs/openssl:0"
DEPEND="${RDEPEND}
		doc? ( app-doc/doxygen )"

S="${WORKDIR}/${P}"

src_prepare() {
		default
		eautoreconf
}

src_configure() {
		if use xml; then
			# defaults to expat otherwise
			econf $(use_with xml libxml2)
		else
			econf
		fi
}
src_compile() {
		emake
		use doc && doxygen
}

src_install() {
		emake DESTDIR="${D}" install
		dodoc LICENSE.txt README.markdown
		use doc && dodoc -r docs/html
}