summaryrefslogtreecommitdiff
path: root/dev-cpp/threadpool/threadpool-0.2.5-r1.ebuild
blob: 882c070453721d6080de53b0c187a2dc20173c65 (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
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=6

DESCRIPTION="A cross-platform C++ thread pool library (built on top of Boost)"
HOMEPAGE="http://threadpool.sourceforge.net/"
MY_PV=${PV//./_}
MY_P=${PN}-${MY_PV}
SRC_URI_BASE="mirror://sourceforge/threadpool/threadpool/${PV}%20%28Stable%29"
SRC_URI="${SRC_URI_BASE}/${MY_P}-src.zip
		doc? ( ${SRC_URI_BASE}/${MY_P}-doc.zip )"

LICENSE="Boost-1.0"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="doc"

DEPEND=""
RDEPEND="dev-libs/boost"

S="${WORKDIR}/${MY_P}-src/${PN}"

DOCS=( README TODO CHANGE_LOG )
PATCHES=( "${FILESDIR}/${P}-memleak.patch" )

src_compile() {
	# Do nothing
	# The makefile just builds the documentation again
	# Not even any install targets
	return
}

src_install() {
	doheader -r boost

	use doc && HTML_DOCS+=( "${WORKDIR}"/"${MY_P}"-doc/. )
	einstalldocs
}