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/arrayfire/
Date: Fri, 25 Sep 2020 02:33:49
Message-Id: 1601000989.2041be5d2cd477175f07d11043393280afd30601.epsilon-0@gentoo
1 commit: 2041be5d2cd477175f07d11043393280afd30601
2 Author: Aisha Tammy <gentoo <AT> aisha <DOT> cc>
3 AuthorDate: Fri Sep 25 02:29:49 2020 +0000
4 Commit: Aisha Tammy <gentoo <AT> aisha <DOT> cc>
5 CommitDate: Fri Sep 25 02:29:49 2020 +0000
6 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=2041be5d
7
8 sci-libs/arrayfire: drop old version
9
10 Package-Manager: Portage-3.0.8, Repoman-3.0.1
11 RepoMan-Options: --force
12 Signed-off-by: Aisha Tammy <gentoo <AT> aisha.cc>
13
14 sci-libs/arrayfire/arrayfire-3.3.2.ebuild | 112 ------------------------------
15 1 file changed, 112 deletions(-)
16
17 diff --git a/sci-libs/arrayfire/arrayfire-3.3.2.ebuild b/sci-libs/arrayfire/arrayfire-3.3.2.ebuild
18 deleted file mode 100644
19 index 900c7218f..000000000
20 --- a/sci-libs/arrayfire/arrayfire-3.3.2.ebuild
21 +++ /dev/null
22 @@ -1,112 +0,0 @@
23 -# Copyright 1999-2017 Gentoo Foundation
24 -# Distributed under the terms of the GNU General Public License v2
25 -
26 -EAPI=6
27 -
28 -inherit cmake-utils multilib
29 -
30 -GTEST_PV="1.7.0"
31 -
32 -DESCRIPTION="A general purpose GPU library"
33 -HOMEPAGE="http://www.arrayfire.com/"
34 -SRC_URI="
35 - http://arrayfire.com/arrayfire_source/${PN}-full-${PV}.tar.bz2 -> ${P}.tar.bz2
36 - test? ( https://github.com/google/googletest/archive/release-${GTEST_PV}.zip -> gtest-${GTEST_PV}.zip )"
37 -
38 -LICENSE="
39 - BSD
40 - nonfree? ( OpenSIFT )"
41 -SLOT="0"
42 -IUSE="+examples +cpu cuda nonfree opencl test unified graphics"
43 -KEYWORDS="~amd64"
44 -
45 -RDEPEND="
46 - >=sys-devel/gcc-4.7:*
47 - media-libs/freeimage
48 - cuda? (
49 - >=dev-util/nvidia-cuda-toolkit-7.5.18-r1
50 - dev-libs/boost
51 - )
52 - cpu? (
53 - virtual/blas
54 - virtual/cblas
55 - virtual/lapacke
56 - sci-libs/fftw:3.0
57 - )
58 - opencl? (
59 - virtual/blas
60 - virtual/cblas
61 - virtual/lapacke
62 - >=sci-libs/clblas-2.4
63 - >=sci-libs/clfft-2.6.1
64 - dev-libs/boost
65 - || ( dev-libs/boost-compute >=dev-libs/boost-1.61.0 )
66 - )
67 - graphics? (
68 - media-libs/glew:=
69 - >=media-libs/glfw-3.1.1
70 - ~sci-visualization/forge-3.2.2
71 - )"
72 -DEPEND="${RDEPEND}"
73 -
74 -S="${WORKDIR}/${PN}-full-${PV}"
75 -BUILD_DIR="${S}/build"
76 -CMAKE_BUILD_TYPE=Release
77 -
78 -PATCHES=("${FILESDIR}/${P}-FindLAPACKE.patch")
79 -
80 -# We need write acccess /dev/nvidiactl, /dev/nvidia0 and /dev/nvidia-uvm and the portage
81 -# user is (usually) not in the video group
82 -RESTRICT="userpriv"
83 -
84 -pkg_pretend() {
85 - if [[ ${MERGE_TYPE} != binary ]]; then
86 - if [[ $(gcc-major-version) -lt 4 ]] || ( [[ $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 7 ]] ) ; then
87 - die "Compilation with gcc older than 4.7 is not supported."
88 - fi
89 - fi
90 -}
91 -
92 -src_unpack() {
93 - default
94 -
95 - if ! use nonfree; then
96 - find "${WORKDIR}" -name "*_nonfree*" -delete || die
97 - fi
98 -
99 - if use test; then
100 - mkdir -p "${BUILD_DIR}"/third_party/src/ || die
101 - mv "${WORKDIR}"/gtest-"${GTEST_PV}" "${BUILD_DIR}"/third_party/src/googletest || die
102 - fi
103 -}
104 -
105 -src_configure() {
106 - if use cuda; then
107 - addwrite /dev/nvidiactl
108 - addwrite /dev/nvidia0
109 - addwrite /dev/nvidia-uvm
110 - fi
111 -
112 - local mycmakeargs=(
113 - -DBUILD_CPU="$(usex cpu)"
114 - -DBUILD_CUDA="$(usex cuda)"
115 - -DBUILD_OPENCL="$(usex opencl)"
116 - -DBUILD_EXAMPLES="$(usex examples)"
117 - -DBUILD_TEST="$(usex test)"
118 - -DBUILD_GRAPHICS="$(usex graphics)"
119 - -DBUILD_NONFREE="$(usex nonfree)"
120 - -DBUILD_UNIFIED="$(usex unified)"
121 - -DUSE_SYSTEM_BOOST_COMPUTE=ON
122 - -DUSE_SYSTEM_CLBLAS=ON
123 - -DUSE_SYSTEM_CLFFT=ON
124 - -DUSE_SYSTEM_FORGE=ON
125 - -DAF_INSTALL_CMAKE_DIR=/usr/$(get_libdir)/cmake/ArrayFire
126 - )
127 - cmake-utils_src_configure
128 -}
129 -
130 -src_install() {
131 - cmake-utils_src_install
132 -
133 - dobin "${BUILD_DIR}/bin2cpp"
134 -}