From 1e319f80f957f684f9b2707fc3f7bd49f209d2a4 Mon Sep 17 00:00:00 2001 From: Sam James Date: Sat, 27 Feb 2021 03:59:56 +0000 Subject: dev-libs/libdynd: port to EAPI 7, cmake-utils -> cmake Package-Manager: Portage-3.0.15, Repoman-3.0.2 Signed-off-by: Sam James --- dev-libs/libdynd/libdynd-0.7.2-r1.ebuild | 76 ++++++++++++++++++++++++++++++++ dev-libs/libdynd/libdynd-0.7.2.ebuild | 72 ------------------------------ 2 files changed, 76 insertions(+), 72 deletions(-) create mode 100644 dev-libs/libdynd/libdynd-0.7.2-r1.ebuild delete mode 100644 dev-libs/libdynd/libdynd-0.7.2.ebuild diff --git a/dev-libs/libdynd/libdynd-0.7.2-r1.ebuild b/dev-libs/libdynd/libdynd-0.7.2-r1.ebuild new file mode 100644 index 000000000000..981f00aaf6ae --- /dev/null +++ b/dev-libs/libdynd/libdynd-0.7.2-r1.ebuild @@ -0,0 +1,76 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit cmake 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 test" +RESTRICT="!test? ( test )" + +BDEPEND="doc? ( app-doc/doxygen[dot] )" +RDEPEND=" + dev-libs/c-blosc:0= + cuda? ( dev-util/nvidia-cuda-toolkit ) + fftw? ( sci-libs/fftw:3.0 ) +" +DEPEND="${RDEPEND}" + +DOCS=( README.md ) + +src_prepare() { + use cuda && cuda_src_prepare + + cmake_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 +} + +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_TESTS="$(usex test)" + -DDYND_FFTW="$(usex fftw)" + ) + use fftw && mycmakeargs+=( -DFFTW_PATH="${EPREFIX}/usr/include" ) + + cmake_src_configure +} + +src_test() { + cd "${BUILD_DIR}" || die + ./tests/test_libdynd || die +} diff --git a/dev-libs/libdynd/libdynd-0.7.2.ebuild b/dev-libs/libdynd/libdynd-0.7.2.ebuild deleted file mode 100644 index 90d8c02bb873..000000000000 --- a/dev-libs/libdynd/libdynd-0.7.2.ebuild +++ /dev/null @@ -1,72 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# 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 test" -RESTRICT="!test? ( 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 -} - -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_TESTS="$(usex test)" - -DDYND_FFTW="$(usex fftw)" - ) - use fftw && mycmakeargs+=( -DFFTW_PATH="${EPREFIX}/usr/include" ) - cmake-utils_src_configure -} - -src_test() { - cd "${BUILD_DIR}" || die - ./tests/test_libdynd || die -} -- cgit v1.2.3-65-gdbad