summaryrefslogtreecommitdiff
blob: a2d0a06d431c3c358a33e9668b46fb0983c9d856 (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
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-cpp/cppcsp2/cppcsp2-2.0.3.ebuild,v 1.1 2008/01/20 09:56:50 dev-zero Exp $

DESCRIPTION="C++CSP2 provides easy concurrency for C++"
HOMEPAGE="http://www.cs.kent.ac.uk/projects/ofa/c++csp/"
SRC_URI="http://www.cs.kent.ac.uk/projects/ofa/c++csp/${P}.tar.gz"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="~x86 ~amd64"
IUSE="doc"

DEPEND="doc? ( app-doc/doxygen )"
RDEPEND=""

src_compile() {
	econf || die "econf failed"
	emake || die "emake failed"

	if use doc ; then
		emake docs || die "emake docs failed"
	fi
}

src_install() {
	emake DESTDIR="${D}" install || die "emake install failed"

	dodoc AUTHORS ChangeLog NEWS README

	use doc && dohtml docs/html/*
}