From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- dev-lang/cilk/Manifest | 7 +++ dev-lang/cilk/cilk-5.4.6-r1.ebuild | 35 +++++++++++ dev-lang/cilk/cilk-5.4.6-r2.ebuild | 44 ++++++++++++++ dev-lang/cilk/files/cilk-5.4.6-autotools.patch | 81 ++++++++++++++++++++++++++ dev-lang/cilk/metadata.xml | 19 ++++++ 5 files changed, 186 insertions(+) create mode 100644 dev-lang/cilk/Manifest create mode 100644 dev-lang/cilk/cilk-5.4.6-r1.ebuild create mode 100644 dev-lang/cilk/cilk-5.4.6-r2.ebuild create mode 100644 dev-lang/cilk/files/cilk-5.4.6-autotools.patch create mode 100644 dev-lang/cilk/metadata.xml (limited to 'dev-lang/cilk') diff --git a/dev-lang/cilk/Manifest b/dev-lang/cilk/Manifest new file mode 100644 index 000000000000..ad4bf2a54e85 --- /dev/null +++ b/dev-lang/cilk/Manifest @@ -0,0 +1,7 @@ +AUX cilk-5.4.6-autotools.patch 3379 SHA256 b84f9483fafcde6d4be1ec8f364262cdd4e3251cbc6e457250de329bc879c49f SHA512 a69181b04c8ebd5010164d8796e615cd63837be45409438d20d009eb69492cfe5750f1a21754cdadb15cf9ca4645edc65db46092741e6227df4f41fef5110943 WHIRLPOOL e5434e9ab59f732146873db19d68666ec6c2a877fe419c331350cf8b8e782208f377df23accc981b12d84a9af0591c8d5b051c7667578ea673b5a3822717565a +DIST cilk-5.4.6.tar.gz 1270768 SHA256 0bee5386fabc87c97d716331b1b492eb8f18c8a8398c566afa3663f27139c9f6 SHA512 1ad082c5e1f42a4f15130673d1d43a0b5dedd80ca0e3182765065be8dccce72b26087243ca3405460dcc90332a84c3c5b1decf5a4650505fb738e7e085998e0e WHIRLPOOL 168138300c33c99a8906ad4c4755b57b7fc360bf5042a63b029a7c58cb7572674c9e8a67fe488ac9573461ea5a0cda69cb3d796abca375a4ecd0fcd7cb9bac4b +EBUILD cilk-5.4.6-r1.ebuild 873 SHA256 4afef69e9a4014289bd6afdd7cbf7353bac29a0877a0624b2adea77c85a9e517 SHA512 9c5414928164016e8f7b2cd3f87513313de62ac2c8d3988b52571bdded22b63bfaec8d18ab46d39cbf5c3ea0226bc35eab2da7b7525f0007ca081c07dc95993c WHIRLPOOL 7aa9f6326ba774041ed017ed74da76337ac1627bbd50a258cf8fcf584e1b8c4de9ffe7b4021dd13434ad25f9736e8d2965570dcba78ba70b340aaa5a4f7dbf3e +EBUILD cilk-5.4.6-r2.ebuild 970 SHA256 0527137f4d849f465141bf31738861e86840a8d164ccffc9c8874ab2201080f1 SHA512 853142dc8f3e07718e059d618b7b87b112220d3c47f7536c257ae958f9717cef79b7c9a5818684434d358c56b9a7e82df38ae5604c727a9dd08276cbb4b2fc60 WHIRLPOOL 16706d10d7f4fc8469a451f3f6a66420543e5312b569ca94f018ccb85291b7536e723237bcace77e7e8e5da9a18de66f43d4ddce22d567ec0d2671a4f024c7d4 +MISC ChangeLog 2704 SHA256 95b96777be66ce14d7452268761dbc6e063a8d84bb5176b6cd8169de30f0a013 SHA512 f98fa4ce52a2b20a8523e1722def5bcc384ed57fb46990bc13dedcbe589fc4a436616e6a731f07615f2b75bed18a53cf21a9be271f2494dcddeec23d3dc194fc WHIRLPOOL eed1d19917f0d84598db798679e983e515e76fef37383f62fe6332174f4ff6471bee5063460afefc22aab839de847481daee34ce6457fdf65e0cfc24052cdd6c +MISC ChangeLog-2015 1234 SHA256 0866f1ce3a8e0547fd5ef3c3b5a79e725ce190725c630ec02bdab4162ad1897b SHA512 bfc24c50f334fc3783614d03591f428264cc5d3e47adb4fe33eef99f379345b91b4a58b5d7c9a9e92f1e228cbbd2caa62d22dcdeb8f9d9727e373c8be2aa4852 WHIRLPOOL 11173cd39718d36412ce37ce93a7bb13b2de4b428a5e978481ab6075923b7b58dc46777088203168c82c0c498e393f48a3a25b103259a9c6fdb90ab52b9aa133 +MISC metadata.xml 868 SHA256 441a71d7c82dc4ecb1dace7804da5fa1e4e8ba684b5360a2391ce370db0e94cb SHA512 a287f9ee4a019c1b242444e2ed8ea7d59fc0b44d002f925e332b28e70efe0478f00899e32f79226b98889db60bcad31b86512a291b1d5543859e05711ffbf7c9 WHIRLPOOL 3f54a53192fce214dd12e36aa10aea94a0acad6ac5446ca53305346750994ddf221ab12b4aa579f5e8a0a462ac1546939da635f77bf00cee0cf55bd4607745b2 diff --git a/dev-lang/cilk/cilk-5.4.6-r1.ebuild b/dev-lang/cilk/cilk-5.4.6-r1.ebuild new file mode 100644 index 000000000000..80297e33e8b2 --- /dev/null +++ b/dev-lang/cilk/cilk-5.4.6-r1.ebuild @@ -0,0 +1,35 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit flag-o-matic autotools eutils + +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" + +src_prepare() { + epatch "${FILESDIR}"/${P}-autotools.patch + eautoreconf +} + +src_configure() { + append-cppflags -D_XOPEN_SOURCE=600 -D_POSIX_C_SOURCE=200809L + replace-flags -O[2-9] -O1 + 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 +} 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..d0d1a60b22df --- /dev/null +++ b/dev-lang/cilk/cilk-5.4.6-r2.ebuild @@ -0,0 +1,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 +} diff --git a/dev-lang/cilk/files/cilk-5.4.6-autotools.patch b/dev-lang/cilk/files/cilk-5.4.6-autotools.patch new file mode 100644 index 000000000000..9f2d62b90410 --- /dev/null +++ b/dev-lang/cilk/files/cilk-5.4.6-autotools.patch @@ -0,0 +1,81 @@ +diff -Nur cilk-5.4.6.orig/cilk2c/Makefile.am cilk-5.4.6/cilk2c/Makefile.am +--- cilk-5.4.6.orig/cilk2c/Makefile.am 2012-11-12 21:18:50.374020109 -0800 ++++ cilk-5.4.6/cilk2c/Makefile.am 2012-11-12 21:19:09.667111443 -0800 +@@ -1,4 +1,6 @@ +-pkglib_PROGRAMS = cilk2c ++pkglibexec_PROGRAMS = cilk2c ++ ++BUILT_SOURCES = ANSI-C.c ANSI-C.h + + cilk2c_SOURCES = analyze.c ast.c complex-types.c constexpr.c \ + container.c conversions.c dataflow.c elide.c initializer.c list.c \ +diff -Nur cilk-5.4.6.orig/configure.ac cilk-5.4.6/configure.ac +--- cilk-5.4.6.orig/configure.ac 2012-11-12 21:18:50.371020111 -0800 ++++ cilk-5.4.6/configure.ac 2012-11-12 21:19:09.668111459 -0800 +@@ -1,8 +1,8 @@ + dnl Process this file with autoconf to produce a configure script. + AC_INIT + AC_CONFIG_SRCDIR([config.h.in]) +-AM_CONFIG_HEADER([config.h runtime/cilk-sysdep.h]) +-AC_PREREQ(2.53) ++AC_CONFIG_HEADERS([config.h runtime/cilk-sysdep.h]) ++AC_PREREQ(2.68) + AM_INIT_AUTOMAKE(cilk, 5.4.6) + AC_CANONICAL_HOST + +@@ -20,7 +20,7 @@ + + dnl Checks for required programs. + if test "$GCC" != "yes"; then +- AC_ERROR("I cannot find gcc. gcc is required for Cilk to work.") ++ AC_MSG_ERROR("I cannot find gcc. gcc is required for Cilk to work.") + fi + + dnl Checks for libraries. +diff -Nur cilk-5.4.6.orig/examples/Makefile.am cilk-5.4.6/examples/Makefile.am +--- cilk-5.4.6.orig/examples/Makefile.am 2012-11-12 21:18:50.370020112 -0800 ++++ cilk-5.4.6/examples/Makefile.am 2012-11-12 21:20:06.347380163 -0800 +@@ -5,13 +5,13 @@ + NPROC = 4 + PROGFLAGS = --nproc $(NPROC) --yield + +-CILKFLAGS=@CFLAGS@ ++CILKFLAGS=-O2 + CILKCOMPILE = $(CILK) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CILKFLAGS) $(CILKFLAGS) + CILKLD = $(CILK) + CILKLINK = $(CILKLD) $(AM_CILKFLAGS) $(CILKFLAGS) $(PERFCTR_LIBS) $(LDFLAGS) -o $@ + LINK=$(CILKLINK) + +-noinst_PROGRAMS=hello fib fib-serial testall ck magic knapsack queens \ ++check_PROGRAMS=hello fib fib-serial testall ck magic knapsack queens \ + cilksort fft test-locks bucket cholesky game nfib kalah matmul lu plu \ + heat test-errno strassen rectmul spacemul \ + test-void-func \ +@@ -58,7 +58,7 @@ + EXTRA_DIST = knapsack-example1.input knapsack-example2.input \ + knapsack-example3.input + +-check: hello testall fft fib lu matmul cilksort heat test-locks test-errno ++check-local: hello testall fft fib lu matmul cilksort heat test-locks test-errno + @echo "Runnig Cilk tests. This will take a while." + ./hello $(PROGFLAGS) + ./test-void-func $(PROGFLAGS) +diff -Nur cilk-5.4.6.orig/runtime/Makefile.am cilk-5.4.6/runtime/Makefile.am +--- cilk-5.4.6.orig/runtime/Makefile.am 2012-11-12 21:18:50.375020110 -0800 ++++ cilk-5.4.6/runtime/Makefile.am 2012-11-12 21:19:09.668111459 -0800 +@@ -1,5 +1,5 @@ + lib_LTLIBRARIES = libcilk.la libcilk.g.la libcilk.p.la libcilk.g.p.la +-pkglib_LIBRARIES = libcilkrt0.a libcilkrt0g.a libcilkrt0p.a libcilkrt0gp.a ++lib_LIBRARIES = libcilkrt0.a libcilkrt0g.a libcilkrt0p.a libcilkrt0gp.a + + CILK_HFILES = cilk-cilk2c.h cilk.h cilk-lib.h cilk-lib.cilkh \ + gcc-builtin.h cilk-cilk2c-pre.h +@@ -8,7 +8,7 @@ + cmdline.c internal-malloc.c timing.c invoke-main.c malloc.c debug.c \ + workers.c mutex.c + +-pkginclude_HEADERS = $(CILK_HFILES) cilk-conf.h cilk-sysdep.h ++include_HEADERS = $(CILK_HFILES) cilk-conf.h cilk-sysdep.h + + CILK_SRC = cilk-internal.h $(CILK_CFILES) $(CILK_HFILES) + COMMON_LINK_FLAGS = -version-info 1:3:0 @PTHREAD_LIBS@ diff --git a/dev-lang/cilk/metadata.xml b/dev-lang/cilk/metadata.xml new file mode 100644 index 000000000000..f57da6f6b282 --- /dev/null +++ b/dev-lang/cilk/metadata.xml @@ -0,0 +1,19 @@ + + + + + sci@gentoo.org + Gentoo Science Project + + + Cilk is a language for multithreaded parallel programming based on + ANSI C. Cilk is especially effective for exploiting dynamic, highly + asynchronous parallelism, which can be difficult to write in data-parallel or + message-passing style. Cilk provides an effective platform for + programming dense and sparse numerical algorithms, such as matrix + factorization and N-body simulations. Cilk is algorithmic, in that + the runtime system employs a scheduler that allows the performance + of programs to be estimated accurately based on abstract complexity + measures. + + -- cgit v1.2.3