* [gentoo-commits] repo/gentoo:master commit in: dev-lang/cilk/
@ 2016-01-15 19:07 David Seifert
0 siblings, 0 replies; only message in thread
From: David Seifert @ 2016-01-15 19:07 UTC (permalink / raw
To: gentoo-commits
commit: a26d9e8be2395a047a923d2c65aaf041e81e01eb
Author: David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Fri Jan 15 19:06:39 2016 +0000
Commit: David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Fri Jan 15 19:07:04 2016 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a26d9e8b
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
dev-lang/cilk/cilk-5.4.6-r2.ebuild | 45 ++++++++++++++++++++++++++++++++++++++
1 file changed, 45 insertions(+)
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 0000000..594ccdf
--- /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
+}
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2016-01-15 19:07 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-15 19:07 [gentoo-commits] repo/gentoo:master commit in: dev-lang/cilk/ David Seifert
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox