Gentoo Archives: gentoo-commits

From: Sebastien Fabbro <bicatali@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-libs/clblast/
Date: Wed, 04 Jan 2017 06:02:57
Message-Id: 1483509724.a1682e3b6493bce90306930a9e71f63f52ca919b.bicatali@gentoo
1 commit: a1682e3b6493bce90306930a9e71f63f52ca919b
2 Author: Sébastien Fabbro <bicatali <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jan 4 04:45:16 2017 +0000
4 Commit: Sebastien Fabbro <bicatali <AT> gentoo <DOT> org>
5 CommitDate: Wed Jan 4 06:02:04 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a1682e3b
7
8 sci-libs/clblast: initial import
9
10 Package-Manager: Portage-2.3.3, Repoman-2.3.1
11
12 sci-libs/clblast/Manifest | 1 +
13 sci-libs/clblast/clblast-0.10.0.ebuild | 68 ++++++++++++++++++++++++++++++++++
14 sci-libs/clblast/metadata.xml | 25 +++++++++++++
15 3 files changed, 94 insertions(+)
16
17 diff --git a/sci-libs/clblast/Manifest b/sci-libs/clblast/Manifest
18 new file mode 100644
19 index 00000000..b4fd58c
20 --- /dev/null
21 +++ b/sci-libs/clblast/Manifest
22 @@ -0,0 +1 @@
23 +DIST clblast-0.10.0.tar.gz 508763 SHA256 29914462155dba3f5e4f858f6b36601eb77880e4c04bb7ade48e30afb9bf729b SHA512 da1fc659dd470c02c25be0a009b7f5e2333bc590715ac6b90e09e57a25d764479d7e4ecf398f17d0ac0e6bb2eaf24c09082c7f047fb7b3044f4a987e294494ee WHIRLPOOL 115687fae11cb7586993d0f336bf60644ec3ed8eb3566c8e28921779ee7cf66617259f85cb612638ed888391c7d49209f409dbb0dc4b51aa210388a7c42f3dce
24
25 diff --git a/sci-libs/clblast/clblast-0.10.0.ebuild b/sci-libs/clblast/clblast-0.10.0.ebuild
26 new file mode 100644
27 index 00000000..fdd45d8
28 --- /dev/null
29 +++ b/sci-libs/clblast/clblast-0.10.0.ebuild
30 @@ -0,0 +1,68 @@
31 +# Copyright 1999-2017 Gentoo Foundation
32 +# Distributed under the terms of the GNU General Public License v2
33 +# $Id$
34 +
35 +EAPI=6
36 +
37 +inherit cmake-utils toolchain-funcs
38 +
39 +MYPN="CLBlast"
40 +
41 +DESCRIPTION="Tuned OpenCL BLAS"
42 +HOMEPAGE="https://github.com/CNugteren/CLBlast"
43 +SRC_URI="https://github.com/CNugteren/${MYPN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
44 +
45 +LICENSE="Apache-2.0"
46 +SLOT="0"
47 +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
48 +IUSE="client doc examples test"
49 +
50 +RDEPEND="virtual/opencl"
51 +DEPEND="${RDEPEND}
52 + test? (
53 + virtual/cblas
54 + virtual/pkgconfig
55 + )
56 +"
57 +S="${WORKDIR}/${MYPN}-${PV}"
58 +
59 +src_prepare() {
60 + # no forced optimisation, libdir
61 + sed -e 's/-O3//g' \
62 + -e 's/DESTINATION lib/DESTINATION ${CMAKE_INSTALL_LIBDIR}/g' \
63 + -i CMakeLists.txt || die
64 + cmake-utils_src_prepare
65 +}
66 +
67 +src_configure() {
68 + mycmakeargs+=(
69 + -DBUILD_SHARED_LIBS=ON
70 + -DSAMPLES=OFF
71 + -DCLIENTS="$(usex client)"
72 + -DTESTS="$(usex test)"
73 + )
74 + if use test || use client; then
75 + mycmakeargs+=(
76 + -DNETLIB=ON
77 + -DCBLAS_INCLUDE_DIRS="$($(tc-getPKG_CONFIG) --cflags-only-I cblas| awk '{print $1}' | sed 's/-I//')"
78 + -DCBLAS_LIBRARIES="$($(tc-getPKG_CONFIG) --libs cblas)"
79 + -DREF_LIBRARIES="$($(tc-getPKG_CONFIG) --libs cblas)"
80 + )
81 + fi
82 + cmake-utils_src_configure
83 +}
84 +
85 +src_test() {
86 + cmake-utils_src_test alltests
87 +}
88 +
89 +src_install(){
90 + cmake-utils_src_install
91 + dodoc README.md CONTRIBUTING.md CHANGELOG
92 + use doc && dodoc -r doc
93 + if use examples; then
94 + insinto /usr/share/doc/${PF}/examples
95 + doins -r samples/*
96 + docompress -x /usr/share/doc/${PF}/examples
97 + fi
98 +}
99
100 diff --git a/sci-libs/clblast/metadata.xml b/sci-libs/clblast/metadata.xml
101 new file mode 100644
102 index 00000000..d5ff3a6
103 --- /dev/null
104 +++ b/sci-libs/clblast/metadata.xml
105 @@ -0,0 +1,25 @@
106 +<?xml version="1.0" encoding="UTF-8"?>
107 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
108 +<pkgmetadata>
109 + <maintainer type="project">
110 + <email>sci@g.o</email>
111 + <name>Gentoo Science Project</name>
112 + </maintainer>
113 + <longdescription>
114 + CLBlast is a modern, lightweight, performant and tunable OpenCL
115 + BLAS library written in C++11. It is designed to leverage the full
116 + performance potential of a wide variety of OpenCL devices from
117 + different vendors, including desktop and laptop GPUs, embedded
118 + GPUs, and other accelerators. CLBlast implements BLAS routines:
119 + basic linear algebra subprograms operating on vectors and
120 + matrices.
121 + </longdescription>
122 + <use>
123 + <flag name="client">
124 + Enable compilation of the clients to test and compare performance with reference libraries
125 + </flag>
126 + </use>
127 + <upstream>
128 + <remote-id type="github">CNugteren/CLBlast</remote-id>
129 + </upstream>
130 +</pkgmetadata>