commit: d6a17f56333de279dafea71ac9a1658df008e885 Author: Aisha Tammy <gentoo <AT> aisha <DOT> cc> AuthorDate: Thu Oct 8 00:03:01 2020 +0000 Commit: Aisha Tammy <gentoo <AT> aisha <DOT> cc> CommitDate: Thu Oct 8 19:47:41 2020 +0000 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=d6a17f56
sci-libs/aocl-sparse: amd optimized sparse BLAS lib Package-Manager: Portage-3.0.8, Repoman-3.0.1 Signed-off-by: Aisha Tammy <gentoo <AT> aisha.cc> sci-libs/aocl-sparse/aocl-sparse-2.2.ebuild | 36 ++++++++++++++++++++++++++++ sci-libs/aocl-sparse/aocl-sparse-9999.ebuild | 36 ++++++++++++++++++++++++++++ sci-libs/aocl-sparse/metadata.xml | 15 ++++++++++++ 3 files changed, 87 insertions(+) diff --git a/sci-libs/aocl-sparse/aocl-sparse-2.2.ebuild b/sci-libs/aocl-sparse/aocl-sparse-2.2.ebuild new file mode 100644 index 000000000..531029af4 --- /dev/null +++ b/sci-libs/aocl-sparse/aocl-sparse-2.2.ebuild @@ -0,0 +1,36 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +CMAKE_BUILD_TYPE=Release +CMAKE_MAKEFILE_GENERATOR=emake +inherit cmake + +DESCRIPTION="AMD library for optimized sparse BLAS operations" +HOMEPAGE="https://developer.amd.com/amd-aocl/" + +if [[ ${PV} == 9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/amd/aocl-sparse" +else + SRC_URI="https://github.com/amd/aocl-sparse/archive/${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64" +fi + +LICENSE="BSD" +SLOT="0" + +BDEPEND="dev-vcs/git" + +src_prepare() { + sed -e 's/-march=native//' \ + -e '/^[[:space:]]*set[[:space:]]*([[:space:]]*CMAKE_INSTALL_LIBDIR[[:space:]].*)/I{s/^/#_cmake_modify_IGNORE /g}' \ + -i CMakeLists.txt || die + sed -e 's:${CMAKE_INSTALL_PREFIX}/lib:${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}:' \ + -i library/CMakeLists.txt || die + sed -e 's:$AOCLSPARSE_ROOT/lib/:$AOCLSPARSE_ROOT/library:' \ + -e 's:-O3::' \ + -i tests/test.sh || die + cmake_src_prepare +} diff --git a/sci-libs/aocl-sparse/aocl-sparse-9999.ebuild b/sci-libs/aocl-sparse/aocl-sparse-9999.ebuild new file mode 100644 index 000000000..531029af4 --- /dev/null +++ b/sci-libs/aocl-sparse/aocl-sparse-9999.ebuild @@ -0,0 +1,36 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +CMAKE_BUILD_TYPE=Release +CMAKE_MAKEFILE_GENERATOR=emake +inherit cmake + +DESCRIPTION="AMD library for optimized sparse BLAS operations" +HOMEPAGE="https://developer.amd.com/amd-aocl/" + +if [[ ${PV} == 9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/amd/aocl-sparse" +else + SRC_URI="https://github.com/amd/aocl-sparse/archive/${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64" +fi + +LICENSE="BSD" +SLOT="0" + +BDEPEND="dev-vcs/git" + +src_prepare() { + sed -e 's/-march=native//' \ + -e '/^[[:space:]]*set[[:space:]]*([[:space:]]*CMAKE_INSTALL_LIBDIR[[:space:]].*)/I{s/^/#_cmake_modify_IGNORE /g}' \ + -i CMakeLists.txt || die + sed -e 's:${CMAKE_INSTALL_PREFIX}/lib:${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}:' \ + -i library/CMakeLists.txt || die + sed -e 's:$AOCLSPARSE_ROOT/lib/:$AOCLSPARSE_ROOT/library:' \ + -e 's:-O3::' \ + -i tests/test.sh || die + cmake_src_prepare +} diff --git a/sci-libs/aocl-sparse/metadata.xml b/sci-libs/aocl-sparse/metadata.xml new file mode 100644 index 000000000..188515bd2 --- /dev/null +++ b/sci-libs/aocl-sparse/metadata.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>[email protected]</email> + <name>Aisha Tammy</name> + </maintainer> + <maintainer type="project"> + <email>[email protected]</email> + <name>Gentoo Science Project</name> + </maintainer> + <upstream> + <remote-id type="github">amd/aocl-sparse</remote-id> + </upstream> +</pkgmetadata>
