summaryrefslogtreecommitdiff
blob: c78a217d8e4f482f8ccd9869cdf49e9707d9d0bf (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
# Copyright 2008-2012 Funtoo Technologies
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=4

inherit base

DESCRIPTION="A C++ protocol library for Thousand Parsec game clients"
HOMEPAGE="http://www.thousandparsec.net/tp/"
SRC_URI="
	${HOMEPAGE}/downloads/${PN}/${P}.tar.gz
"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE="doc gnutls"

RDEPEND="
	dev-libs/boost
	gnutls? ( >=net-libs/gnutls-1.2.10 )
"
DEPEND="${RDEPEND}
	doc? ( app-doc/doxygen )
"

PATCHES=(
	"${FILESDIR}/${P}-stdint.patch"
)

DOCS="AUTHORS ChangeLog README"

src_configure() {
	econf \
		$(use_enable gnutls) \
		|| die "econf failed"
}

src_compile() {
	base_src_compile

	if use doc; then
		make doc || ewarn "make doc failed".
	fi
}

src_install() {
	base_src_install

	if use doc; then
		insinto /usr/share/doc/${PF}
		dohtml -r docs/html/*
	fi
}