1 # Copyright 1999-2016 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
5 inherit autotools flag-o-matic
7 DESCRIPTION="Language for multithreaded parallel programming based on ANSI C"
8 HOMEPAGE="http://supertech.csail.mit.edu/cilk"
9 SRC_URI="http://supertech.csail.mit.edu/${PN}/${P}.tar.gz"
13 KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
14 IUSE="doc examples static-libs"
17 "${FILESDIR}/${P}-autotools.patch"
21 # fix #571060 by restoring pre-GCC5 inline semantics
22 append-cflags -std=gnu89
23 append-cppflags -D_XOPEN_SOURCE=600 -D_POSIX_C_SOURCE=200809L
24 replace-flags -O[2-9] -O1
33 $(use_enable static-libs static)
37 emake DESTDIR="${D}" install
38 dodoc NEWS README THANKS
39 use doc && dodoc doc/manual.pdf
41 insinto /usr/share/doc/${PF}