blob: 1aa5534edf2ab58c0de548badafe6286afa1057e (
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=4
EGIT_REPO_URI="git://github.com/strophe/libstrophe.git"
inherit autotools eutils git-2
DESCRIPTION="A simple, lightweight C library for writing XMPP clients"
HOMEPAGE="http://strophe.im/libstrophe/"
LICENSE="MIT GPL-3"
SLOT="0"
KEYWORDS=""
IUSE="doc xml"
RDEPEND="xml? ( dev-libs/libxml2 )
!xml? ( dev-libs/expat )
dev-libs/openssl"
DEPEND="${RDEPEND}
doc? ( app-doc/doxygen )"
S="${WORKDIR}/${P/-/_}"
src_prepare() {
eautoreconf
}
src_configure() {
use xml && econf $(use_with xml libxml2)
# workaround for building with expat support
use xml || econf
}
src_compile() {
emake
if use doc; then
doxygen || die
fi
}
src_install() {
einstall
dodoc LICENSE.txt README.markdown
use doc && dohtml -r docs/html/*
}
|