Gentoo Archives: gentoo-commits

From: Aisha Tammy <gentoo@×××××.cc>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: sci-libs/aocl-sparse/
Date: Thu, 08 Oct 2020 19:48:11
Message-Id: 1602186461.d6a17f56333de279dafea71ac9a1658df008e885.epsilon-0@gentoo
1 commit: d6a17f56333de279dafea71ac9a1658df008e885
2 Author: Aisha Tammy <gentoo <AT> aisha <DOT> cc>
3 AuthorDate: Thu Oct 8 00:03:01 2020 +0000
4 Commit: Aisha Tammy <gentoo <AT> aisha <DOT> cc>
5 CommitDate: Thu Oct 8 19:47:41 2020 +0000
6 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=d6a17f56
7
8 sci-libs/aocl-sparse: amd optimized sparse BLAS lib
9
10 Package-Manager: Portage-3.0.8, Repoman-3.0.1
11 Signed-off-by: Aisha Tammy <gentoo <AT> aisha.cc>
12
13 sci-libs/aocl-sparse/aocl-sparse-2.2.ebuild | 36 ++++++++++++++++++++++++++++
14 sci-libs/aocl-sparse/aocl-sparse-9999.ebuild | 36 ++++++++++++++++++++++++++++
15 sci-libs/aocl-sparse/metadata.xml | 15 ++++++++++++
16 3 files changed, 87 insertions(+)
17
18 diff --git a/sci-libs/aocl-sparse/aocl-sparse-2.2.ebuild b/sci-libs/aocl-sparse/aocl-sparse-2.2.ebuild
19 new file mode 100644
20 index 000000000..531029af4
21 --- /dev/null
22 +++ b/sci-libs/aocl-sparse/aocl-sparse-2.2.ebuild
23 @@ -0,0 +1,36 @@
24 +# Copyright 1999-2020 Gentoo Authors
25 +# Distributed under the terms of the GNU General Public License v2
26 +
27 +EAPI=7
28 +
29 +CMAKE_BUILD_TYPE=Release
30 +CMAKE_MAKEFILE_GENERATOR=emake
31 +inherit cmake
32 +
33 +DESCRIPTION="AMD library for optimized sparse BLAS operations"
34 +HOMEPAGE="https://developer.amd.com/amd-aocl/"
35 +
36 +if [[ ${PV} == 9999 ]]; then
37 + inherit git-r3
38 + EGIT_REPO_URI="https://github.com/amd/aocl-sparse"
39 +else
40 + SRC_URI="https://github.com/amd/aocl-sparse/archive/${PV}.tar.gz -> ${P}.tar.gz"
41 + KEYWORDS="~amd64"
42 +fi
43 +
44 +LICENSE="BSD"
45 +SLOT="0"
46 +
47 +BDEPEND="dev-vcs/git"
48 +
49 +src_prepare() {
50 + sed -e 's/-march=native//' \
51 + -e '/^[[:space:]]*set[[:space:]]*([[:space:]]*CMAKE_INSTALL_LIBDIR[[:space:]].*)/I{s/^/#_cmake_modify_IGNORE /g}' \
52 + -i CMakeLists.txt || die
53 + sed -e 's:${CMAKE_INSTALL_PREFIX}/lib:${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}:' \
54 + -i library/CMakeLists.txt || die
55 + sed -e 's:$AOCLSPARSE_ROOT/lib/:$AOCLSPARSE_ROOT/library:' \
56 + -e 's:-O3::' \
57 + -i tests/test.sh || die
58 + cmake_src_prepare
59 +}
60
61 diff --git a/sci-libs/aocl-sparse/aocl-sparse-9999.ebuild b/sci-libs/aocl-sparse/aocl-sparse-9999.ebuild
62 new file mode 100644
63 index 000000000..531029af4
64 --- /dev/null
65 +++ b/sci-libs/aocl-sparse/aocl-sparse-9999.ebuild
66 @@ -0,0 +1,36 @@
67 +# Copyright 1999-2020 Gentoo Authors
68 +# Distributed under the terms of the GNU General Public License v2
69 +
70 +EAPI=7
71 +
72 +CMAKE_BUILD_TYPE=Release
73 +CMAKE_MAKEFILE_GENERATOR=emake
74 +inherit cmake
75 +
76 +DESCRIPTION="AMD library for optimized sparse BLAS operations"
77 +HOMEPAGE="https://developer.amd.com/amd-aocl/"
78 +
79 +if [[ ${PV} == 9999 ]]; then
80 + inherit git-r3
81 + EGIT_REPO_URI="https://github.com/amd/aocl-sparse"
82 +else
83 + SRC_URI="https://github.com/amd/aocl-sparse/archive/${PV}.tar.gz -> ${P}.tar.gz"
84 + KEYWORDS="~amd64"
85 +fi
86 +
87 +LICENSE="BSD"
88 +SLOT="0"
89 +
90 +BDEPEND="dev-vcs/git"
91 +
92 +src_prepare() {
93 + sed -e 's/-march=native//' \
94 + -e '/^[[:space:]]*set[[:space:]]*([[:space:]]*CMAKE_INSTALL_LIBDIR[[:space:]].*)/I{s/^/#_cmake_modify_IGNORE /g}' \
95 + -i CMakeLists.txt || die
96 + sed -e 's:${CMAKE_INSTALL_PREFIX}/lib:${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}:' \
97 + -i library/CMakeLists.txt || die
98 + sed -e 's:$AOCLSPARSE_ROOT/lib/:$AOCLSPARSE_ROOT/library:' \
99 + -e 's:-O3::' \
100 + -i tests/test.sh || die
101 + cmake_src_prepare
102 +}
103
104 diff --git a/sci-libs/aocl-sparse/metadata.xml b/sci-libs/aocl-sparse/metadata.xml
105 new file mode 100644
106 index 000000000..188515bd2
107 --- /dev/null
108 +++ b/sci-libs/aocl-sparse/metadata.xml
109 @@ -0,0 +1,15 @@
110 +<?xml version="1.0" encoding="UTF-8"?>
111 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
112 +<pkgmetadata>
113 + <maintainer type="person">
114 + <email>gentoo@×××××.cc</email>
115 + <name>Aisha Tammy</name>
116 + </maintainer>
117 + <maintainer type="project">
118 + <email>sci@g.o</email>
119 + <name>Gentoo Science Project</name>
120 + </maintainer>
121 + <upstream>
122 + <remote-id type="github">amd/aocl-sparse</remote-id>
123 + </upstream>
124 +</pkgmetadata>