blob: d0d1a60b22df38e57479a222cbf75d4970d551bf (
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
|
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit autotools flag-o-matic
DESCRIPTION="Language for multithreaded parallel programming based on ANSI C"
HOMEPAGE="http://supertech.csail.mit.edu/cilk"
SRC_URI="http://supertech.csail.mit.edu/${PN}/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
IUSE="doc examples static-libs"
PATCHES=(
"${FILESDIR}/${P}-autotools.patch"
)
src_prepare() {
# fix #571060 by restoring pre-GCC5 inline semantics
append-cflags -std=gnu89
append-cppflags -D_XOPEN_SOURCE=600 -D_POSIX_C_SOURCE=200809L
replace-flags -O[2-9] -O1
default
eautoreconf
}
src_configure() {
econf \
--with-perfctr=no \
$(use_enable static-libs static)
}
src_install() {
emake DESTDIR="${D}" install
dodoc NEWS README THANKS
use doc && dodoc doc/manual.pdf
if use examples; then
insinto /usr/share/doc/${PF}
doins -r examples
fi
}
|