summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Seifert <soap@gentoo.org>2016-01-15 20:06:39 +0100
committerDavid Seifert <soap@gentoo.org>2016-01-15 20:07:04 +0100
commita26d9e8be2395a047a923d2c65aaf041e81e01eb (patch)
tree173e7521e240936efa87fae018cfb67afba8917d /dev-lang/cilk
parentdev-libs/qcustomplot: version bump (diff)
downloadgentoo-a26d9e8be2395a047a923d2c65aaf041e81e01eb.tar.gz
gentoo-a26d9e8be2395a047a923d2c65aaf041e81e01eb.tar.bz2
gentoo-a26d9e8be2395a047a923d2c65aaf041e81e01eb.zip
dev-lang/cilk: add -std=gnu89 to CFLAGS to restore pre-GCC5 semantics
Gentoo-Bug: 571060 Also bump ebuild to EAPI=6. Package-Manager: portage-2.2.26
Diffstat (limited to 'dev-lang/cilk')
-rw-r--r--dev-lang/cilk/cilk-5.4.6-r2.ebuild45
1 files changed, 45 insertions, 0 deletions
diff --git a/dev-lang/cilk/cilk-5.4.6-r2.ebuild b/dev-lang/cilk/cilk-5.4.6-r2.ebuild
new file mode 100644
index 000000000000..594ccdf4181e
--- /dev/null
+++ b/dev-lang/cilk/cilk-5.4.6-r2.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+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
+}