summaryrefslogtreecommitdiff
path: root/dev-libs/libdynd
diff options
context:
space:
mode:
Diffstat (limited to 'dev-libs/libdynd')
-rw-r--r--dev-libs/libdynd/Manifest10
-rw-r--r--dev-libs/libdynd/files/libdynd-0.6.0-dont-install-test.patch15
-rw-r--r--dev-libs/libdynd/libdynd-0.6.5.ebuild66
-rw-r--r--dev-libs/libdynd/libdynd-0.6.6.ebuild66
-rw-r--r--dev-libs/libdynd/libdynd-0.7.2.ebuild78
-rw-r--r--dev-libs/libdynd/metadata.xml25
6 files changed, 260 insertions, 0 deletions
diff --git a/dev-libs/libdynd/Manifest b/dev-libs/libdynd/Manifest
new file mode 100644
index 000000000000..5c278c55ff16
--- /dev/null
+++ b/dev-libs/libdynd/Manifest
@@ -0,0 +1,10 @@
+AUX libdynd-0.6.0-dont-install-test.patch 494 SHA256 b171e6dbff8c0b43984a511567d62e18b3e3d9ed848fe643a77088d951075e52 SHA512 345c2315e04775d2a2169f910b521a3e781b602a2495256d3ca022b47e0a49be621b4c2d11b8ef1f21d6c7f8055d5ebc4bf82f3b2581b6fe7f0eca1624a668f7 WHIRLPOOL b2dd7a6c00608e881073c5913adaf1e3ae788a608596ca79ea089080ac52dda8ad61b1274abf422017c7a5ea07cd350e41a73000e33bab305b0af2bb3b33dd79
+DIST libdynd-0.6.5.tar.gz 1238404 SHA256 bf2e5c88995f0da880c3d7552c2541138c0f07eb6555f0ee10c77d805f8b3f65 SHA512 ebf64b94b38300e4e471f975a51e4b014879937e855af5d72a3f759af4445fa9024e42962ab1284ebe7b2ae2ddf51ea418d106c9894e1841f0984622afbef115 WHIRLPOOL 9222608edd8382ec2f8dbd7dd85eb0392d79a527d94f959f011430b2d15bbf405ccf06954e20679e26e93cd7c356b70f7490280e097cfc833ac015612a5cfe77
+DIST libdynd-0.6.6.tar.gz 1261349 SHA256 0e05eedd6b230f122a6c92fb6306be3017b0a5c460af5eace0074640455ef17e SHA512 efeb52a5b5dd3154ca293f388d5b967ff983450253435572b919f7c4a1445ad3cb416def4c736f908fdb3b06cddebae881a58420e528f1ca145973a997af7a28 WHIRLPOOL 8479f280a883f07382280b8fb94a3c21e8ef9975b67fe31bed83a40b9ad7e5b939c48ac76c638492faeb91143e449471c0d316078066c4d9752e4b238f3cd822
+DIST libdynd-0.7.2.tar.gz 1342364 SHA256 be764817ca6e72dd65a32698b0a7f64df111b732c3230b5b8a8bfc72a3b0c750 SHA512 134195ba5839e05af07dd9ad0b8e749a83345511acd2a22a029a4d9a2c0fc77a8a1f36722bce20653d28189b7883afe7feb651c7d32ff921ef257a8a9aa4bd7f WHIRLPOOL 4969f747f3b0cf1a46681aaae78d470762aa6321aea8f0cf95ef55ee061a247fb24c6d8667adff5ebf6bfdf99408dfdcf8e5cd4ed37c00fb856a5eae8127c615
+EBUILD libdynd-0.6.5.ebuild 1515 SHA256 758f367a9bfe151e8f0f11d1b98be7d7b1529ff11fa9af241692cf5b652053ae SHA512 958d032424ed96725dfa6f11bb0eeab768859232515f4c4be3c0b491dc399fce7248784b4d5be794b771e100c76e9e0a346ed01476f44611c9fa2fa8d4d78af6 WHIRLPOOL 2abc837d9b0c3f9adbf83c2e4e7df1d9843976912a8b08034b2609e1749f79bb9e7a602f63e909b855d5e096e2cae85279b24349b91b7cf640828b03be78f29d
+EBUILD libdynd-0.6.6.ebuild 1517 SHA256 768ea7178a6de58d8f1f75520a74a4a5fc45e01cb4241a260f13060615ac0a96 SHA512 81d8ca00eeb40ae5f55c18a4a9a4309c4bd111ddab1eb26324532be21ba37fa42089ec7517a14ab3a82f08b10e06064bbf505e3c74727f1440e6c1a7eb2e76c4 WHIRLPOOL cfd59867c76ce68cb06f08ff4d23d7f8852a8bf7f6091814d537af7a7fc39024e354b4b2d3f5bd6f5ea993a6c4cab93b32b313c29e150b673ccf62d5f79a8f28
+EBUILD libdynd-0.7.2.ebuild 2070 SHA256 a1b375776912af7a403f50c9b2e8746e95ffb113f89df42f3d9cfa6ad55e410b SHA512 0f327413a749969c9bcc9823b6677119d0ab7be52d6516ea6ef046131085877ffe744f08e1b7db4da7bf431271480415f3ff4181fe06cd9db419a24f16aec0dc WHIRLPOOL 38cdee1a7b6671f7161312463c9964064df7478d4187ebce7827e8a486cfd898fc3be9e946faf26ff82909f89ec966bab35d0d3200aafb183aa5c9661e3d072b
+MISC ChangeLog 3093 SHA256 9ba4f9300649d6b614ba45e162e66c932e4cf7e38a8706af25cbf82c55aad799 SHA512 8fd3f600b41c540066f2a4abcecc542558fa9db1ee3682015e421135e8238f411da77d572307c4cfa59fffc50bb5efa01282b1dfd9dc6d99bb0694b4c33eeddc WHIRLPOOL db4b790af0cf71582c55f965c2fc452ceb66c6ec077e5a518ea2c19093785015c8bedead7da475cf4184c9b4b357c921029428e56c42d87eec60d260c848670e
+MISC ChangeLog-2015 1213 SHA256 6e4a16c4b737e306a7e7ded1947f90c942a53895bfded0f13bbca6e6c475b030 SHA512 58671ec7f51951e86037d05516dd4332376dee8252ed708983acd806dd1364333a68f3b2c9515981b43c45b940890929c2cfceb018028822ea4d6346454ff041 WHIRLPOOL 9bd021c6e4da880f4b37aa6537a3827423a96fce6a085c82bef4f36c8aeae40da5929b19827cd2de5be1baf18dd6b5220cf55a5d5354eb7e0f86fe787b1538f6
+MISC metadata.xml 1120 SHA256 1313b6a6131865b9c1700cb0c6bd662f4c487f8ee777cb95f01cdd6c21745a24 SHA512 ac2eb8493d3e23ec7bdac5d3d5dc2d22358e51e468456de99b5bc48326924c1db31ea4d9474300a2579203d25ebb863ac84226529b36b6b1402e1351c03b1b68 WHIRLPOOL d238438a2477b3e0009b62588192e710391ab28207cbebcd22120b9d10beedb894c6561911c0f2d0ebe5b3544597432eb18b0f6878bf3642728ec7129f268999
diff --git a/dev-libs/libdynd/files/libdynd-0.6.0-dont-install-test.patch b/dev-libs/libdynd/files/libdynd-0.6.0-dont-install-test.patch
new file mode 100644
index 000000000000..9659372b05ea
--- /dev/null
+++ b/dev-libs/libdynd/files/libdynd-0.6.0-dont-install-test.patch
@@ -0,0 +1,15 @@
+--- tests/CMakeLists.txt.orig 2014-02-10 14:25:18.041841087 -0800
++++ tests/CMakeLists.txt 2014-02-10 14:25:40.224975614 -0800
+@@ -105,12 +105,6 @@
+ )
+ endif()
+
+-# If installation is requested, install the program
+-if (DYND_INSTALL_LIB)
+- install(TARGETS test_libdynd
+- RUNTIME DESTINATION bin)
+-endif()
+-
+ # Compile-time tests: test code that is supposed to produce compile errors
+ # I couldn't find a properly specified way to do this, so hacked together
+ # this function.
diff --git a/dev-libs/libdynd/libdynd-0.6.5.ebuild b/dev-libs/libdynd/libdynd-0.6.5.ebuild
new file mode 100644
index 000000000000..9eb37ce666ac
--- /dev/null
+++ b/dev-libs/libdynd/libdynd-0.6.5.ebuild
@@ -0,0 +1,66 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit cmake-utils multilib cuda
+
+# change each release, to avoid git in tree dependency
+DYND_GIT_SHA1=2e140844d4a21c436ca0fc46996bf8606ffc21d5
+
+DESCRIPTION="C++ dynamic multi-dimensionnal array library with Python exposure"
+HOMEPAGE="https://github.com/ContinuumIO/libdynd"
+SRC_URI="https://github.com/ContinuumIO/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0/${PV}"
+KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux"
+IUSE="cuda doc fftw test"
+
+RDEPEND="
+ dev-libs/c-blosc:0=
+ cuda? ( x11-drivers/nvidia-drivers dev-util/nvidia-cuda-toolkit )
+ fftw? ( sci-libs/fftw:3.0 )
+ "
+DEPEND="${RDEPEND}"
+
+DOCS=( README.md )
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-0.6.0-dont-install-test.patch
+)
+
+src_prepare() {
+ cmake-utils_src_prepare
+ # each relase comes with a different set...
+ # remove forced strong flags
+ sed -i \
+ -e "s|@DYND_GIT_SHA1@|${DYND_GIT_SHA1}|" \
+ -e "s|@DYND_VERSION@|${PV}|" \
+ -e 's|-fomit-frame-pointer||' \
+ -e 's|-Werror||g' \
+ CMakeLists.txt || die
+}
+
+src_configure() {
+ sed -i \
+ -e '/add_subdirectory(examples)/d' \
+ CMakeLists.txt || die
+ local mycmakeargs=(
+ -DDYND_SHARED_LIB=ON
+ -DDYND_INSTALL_LIB=ON
+ $(cmake-utils_use cuda DYND_CUDA)
+ $(cmake-utils_use test DYND_BUILD_TESTS)
+ )
+ cmake-utils_src_configure
+}
+
+src_test() {
+ cd "${BUILD_DIR}" || die
+ ./tests/test_libdynd || die
+}
+
+src_install() {
+ cmake-utils_src_install
+ use doc && dodoc documents/*
+}
diff --git a/dev-libs/libdynd/libdynd-0.6.6.ebuild b/dev-libs/libdynd/libdynd-0.6.6.ebuild
new file mode 100644
index 000000000000..a122f6f30306
--- /dev/null
+++ b/dev-libs/libdynd/libdynd-0.6.6.ebuild
@@ -0,0 +1,66 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit cmake-utils multilib cuda
+
+# change each release, to avoid git in tree dependency
+DYND_GIT_SHA1=09fb7e5eccadbe1ec49ff4b05fec724939331e6d
+
+DESCRIPTION="C++ dynamic multi-dimensionnal array library with Python exposure"
+HOMEPAGE="https://github.com/ContinuumIO/libdynd"
+SRC_URI="https://github.com/ContinuumIO/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0/${PV}"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+IUSE="cuda doc fftw test"
+
+RDEPEND="
+ dev-libs/c-blosc:0=
+ cuda? ( x11-drivers/nvidia-drivers dev-util/nvidia-cuda-toolkit )
+ fftw? ( sci-libs/fftw:3.0 )
+ "
+DEPEND="${RDEPEND}"
+
+DOCS=( README.md )
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-0.6.0-dont-install-test.patch
+)
+
+src_prepare() {
+ cmake-utils_src_prepare
+ # each relase comes with a different set...
+ # remove forced strong flags
+ sed -i \
+ -e "s|@DYND_GIT_SHA1@|${DYND_GIT_SHA1}|" \
+ -e "s|@DYND_VERSION@|${PV}|" \
+ -e 's|-fomit-frame-pointer||' \
+ -e 's|-Werror||g' \
+ CMakeLists.txt || die
+}
+
+src_configure() {
+ sed -i \
+ -e '/add_subdirectory(examples)/d' \
+ CMakeLists.txt || die
+ local mycmakeargs=(
+ -DDYND_SHARED_LIB=ON
+ -DDYND_INSTALL_LIB=ON
+ $(cmake-utils_use cuda DYND_CUDA)
+ $(cmake-utils_use test DYND_BUILD_TESTS)
+ )
+ cmake-utils_src_configure
+}
+
+src_test() {
+ cd "${BUILD_DIR}" || die
+ ./tests/test_libdynd || die
+}
+
+src_install() {
+ cmake-utils_src_install
+ use doc && dodoc documents/*
+}
diff --git a/dev-libs/libdynd/libdynd-0.7.2.ebuild b/dev-libs/libdynd/libdynd-0.7.2.ebuild
new file mode 100644
index 000000000000..bd2fb462f18f
--- /dev/null
+++ b/dev-libs/libdynd/libdynd-0.7.2.ebuild
@@ -0,0 +1,78 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit cmake-utils cuda
+
+# change each new libdynd version, to avoid git in tree dependency
+DYND_GIT_SHA1=341d6d91931fdb04ad657d27ed740cf533fc925b
+
+DESCRIPTION="C++ dynamic multi-dimensionnal array library with Python exposure"
+HOMEPAGE="http://libdynd.org"
+SRC_URI="https://github.com/libdynd/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0/${PV}"
+KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux"
+IUSE="cuda doc fftw mkl test"
+
+RDEPEND="
+ dev-libs/c-blosc:0=
+ cuda? ( dev-util/nvidia-cuda-toolkit )
+ fftw? ( sci-libs/fftw:3.0 )
+"
+DEPEND="${RDEPEND}
+ doc? ( app-doc/doxygen[dot] )
+"
+
+DOCS=( README.md )
+
+src_prepare() {
+ use cuda && cuda_src_prepare
+ cmake-utils_src_prepare
+ cmake_comment_add_subdirectory examples
+ # fix forced cxxflags and doc installation directory
+ sed -e 's|-O3 -fomit-frame-pointer||' \
+ -e 's|-Werror||g' \
+ -e "s|docs DESTINATION docs|docs/html DESTINATION share/doc/${PF}|" \
+ -i CMakeLists.txt || die
+ # don't install test exec
+ sed -e 's|install(TARGETS test_libdynd||' \
+ -e 's|RUNTIME DESTINATION bin)||' \
+ -i tests/CMakeLists.txt || die
+ # remove the version mangling from git stuff it requires a git clone
+ # rather force set it a configure time
+ sed -e '/GetGitRev/d' \
+ -e '/get_git_/d' \
+ -e '/git_describe/d' \
+ -e '/dirty/d' \
+ -i CMakeLists.txt || die
+ # not tested
+ if use mkl; then
+ sed -e "s|/opt/intel/.*|$(ls -1d ${EPREFIX}/opt/intel/compilers*)|" \
+ -i tests/CMakeLists.txt || die
+ fi
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DDYND_GIT_SHA1="${DYND_GIT_SHA1}"
+ -DDYND_VERSION_STRING="v${PV}"
+ -DDYND_INSTALL_LIB=ON
+ -DDYND_SHARED_LIB=ON
+ -DDYND_BUILD_BENCHMARKS=OFF
+ -DDYND_BUILD_DOCS="$(usex doc)"
+ -DDYND_BUILD_PLUGIN="$(usex mkl)"
+ -DDYND_BUILD_TESTS="$(usex test)"
+ -DDYND_CUDA="$(usex cuda)"
+ -DDYND_FFTW="$(usex fftw)"
+ -DFFTW_PATH="${EPREFIX}/usr/include"
+ )
+ cmake-utils_src_configure
+}
+
+src_test() {
+ cd "${BUILD_DIR}" || die
+ ./tests/test_libdynd || die
+}
diff --git a/dev-libs/libdynd/metadata.xml b/dev-libs/libdynd/metadata.xml
new file mode 100644
index 000000000000..0b3978ba39fe
--- /dev/null
+++ b/dev-libs/libdynd/metadata.xml
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>sci@gentoo.org</email>
+ <name>Gentoo Science Project</name>
+ </maintainer>
+ <longdescription lang="en">
+ LibDyND, a component of the Blaze project, is a C++ library for
+ dynamic, multidimensional arrays. It is inspired by NumPy, the
+ Python array programming library at the core of the scientific
+ Python stack, but tries to address a number of obstacles encountered
+ by some of its users. Examples of this are support for
+ variable-sized string and ragged array types. The library is in a
+ preview development state, and can be thought of as a sandbox where
+ features are being tried and tweaked to gain experience with them.
+ </longdescription>
+ <use>
+ <flag name="cuda">Enable NVIDIA CUDA toolkit support</flag>
+ <flag name="mkl">Enable a plugin for Intel Math Kernel Library <pkg>sci-libs/mkl</pkg></flag>
+ </use>
+ <upstream>
+ <remote-id type="github">libdynd/libdynd</remote-id>
+ </upstream>
+</pkgmetadata>