From: "Justin Lecher" <jlec@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/sci:master commit in: sci-libs/arrayfire/
Date: Sat, 10 Jan 2015 18:03:22 +0000 (UTC) [thread overview]
Message-ID: <1420891392.8c3bb69148954714ff4e8614fce7acbb02e95bd8.jlec@gentoo> (raw)
commit: 8c3bb69148954714ff4e8614fce7acbb02e95bd8
Author: Marius Brehler <marbre <AT> linux <DOT> sungazer <DOT> de>
AuthorDate: Sat Jan 10 12:03:12 2015 +0000
Commit: Justin Lecher <jlec <AT> gentoo <DOT> org>
CommitDate: Sat Jan 10 12:03:12 2015 +0000
URL: http://sources.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=8c3bb691
Get arrayfire working
---
sci-libs/arrayfire/arrayfire-9999.ebuild | 68 ++++++++++----------------------
sci-libs/arrayfire/metadata.xml | 4 +-
2 files changed, 23 insertions(+), 49 deletions(-)
diff --git a/sci-libs/arrayfire/arrayfire-9999.ebuild b/sci-libs/arrayfire/arrayfire-9999.ebuild
index 06295ca..0a24116 100644
--- a/sci-libs/arrayfire/arrayfire-9999.ebuild
+++ b/sci-libs/arrayfire/arrayfire-9999.ebuild
@@ -4,7 +4,7 @@
EAPI=5
-inherit cmake-utils eutils git-r3 toolchain-funcs
+inherit cmake-utils eutils git-r3
DESCRIPTION="A general purpose GPU library."
HOMEPAGE="http://www.arrayfire.com/"
@@ -13,7 +13,7 @@ KEYWORDS="~amd64"
LICENSE="ArrayFire"
SLOT="0"
-IUSE="+examples +cpu cuda"
+IUSE="+examples +cpu cuda test"
RDEPEND="
>=sys-devel/gcc-4.7.3-r1
@@ -21,7 +21,12 @@ RDEPEND="
virtual/cblas
cuda? ( >=dev-util/nvidia-cuda-toolkit-6.0 )
sci-libs/fftw:3.0"
-DEPEND="${RDEPEND}"
+DEPEND="${RDEPEND}
+ test? ( dev-vcs/subversion )"
+
+S="${WORKDIR}/${P}"
+BUILD_DIR="${S}/build"
+CMAKE_BUILD_TYPE=Release
# We need write acccess /dev/nvidiactl, /dev/nvidia0 and /dev/nvidia-uvm and the portage
# user is (usually) not in the video group
@@ -29,23 +34,14 @@ if use cuda; then
RESTRICT="userpriv"
fi
-S="${WORKDIR}/${P}"
-
-QA_PREBUILT="/usr/share/arrayfire/examples/helloworld_cpu
- /usr/share/arrayfire/examples/pi_cpu
- /usr/share/arrayfire/examples/vectorize_cpu
- /usr/share/arrayfire/examples/helloworld_cuda
- /usr/share/arrayfire/examples/pi_cuda
- /usr/share/arrayfire/examples/vectorize_cuda"
-
-src_unpack() {
- git-r3_src_unpack
-}
-
src_prepare() {
if use cpu; then
epatch "${FILESDIR}/FindCBLAS.patch"
fi
+ if use examples; then
+ epatch "${FILESDIR}/CMakeLists_examples.patch"
+ fi
+
cmake-utils_src_prepare
}
@@ -56,20 +52,14 @@ src_configure() {
addwrite /dev/nvidia-uvm
fi
- local mycmakeargs="
- -DCMAKE_BUILD_TYPE=Release
- $(cmake-utils_use_build cpu CPU)
- $(cmake-utils_use_build cuda CUDA)
- -DBUILD_OPENCL=OFF
- $(cmake-utils_use_build examples EXAMPLES)
- -DBUILD_TEST=OFF
- "
-
- BUILD_DIR="${S}/build" cmake-utils_src_configure
-}
-
-src_compile() {
- BUILD_DIR="${S}/build" cmake-utils_src_compile
+ local mycmakeargs=(
+ $(cmake-utils_use_build cpu CPU)
+ $(cmake-utils_use_build cuda CUDA)
+ -DBUILD_OPENCL=OFF
+ $(cmake-utils_use_build examples EXAMPLES)
+ $(cmake-utils_use_build test TEST)
+ )
+ cmake-utils_src_configure
}
src_install() {
@@ -77,20 +67,4 @@ src_install() {
exeinto /usr/bin
doexe "build/bin2cpp"
-
- if use examples; then
- ebegin "Installing examples"
- exeinto /usr/share/arrayfire/examples/
- if use cpu; then
- doexe "build/examples/helloworld_cpu"
- doexe "build/examples/pi_cpu"
- doexe "build/examples/vectorize_cpu"
- fi
- if use cuda; then
- doexe "build/examples/helloworld_cuda"
- doexe "build/examples/pi_cuda"
- doexe "build/examples/vectorize_cuda"
- fi
- eend
- fi
-}
\ No newline at end of file
+}
diff --git a/sci-libs/arrayfire/metadata.xml b/sci-libs/arrayfire/metadata.xml
index cf929e4..3daddf2 100644
--- a/sci-libs/arrayfire/metadata.xml
+++ b/sci-libs/arrayfire/metadata.xml
@@ -11,7 +11,7 @@
Enable CPU Build.
</flag>flag>
<flag name="cuda">
- Enable CUDA Build.
- </flag>
+ Enable CUDA Build.
+ </flag>
</use>
</pkgmetadata>
next reply other threads:[~2015-01-10 18:03 UTC|newest]
Thread overview: 57+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-10 18:03 Justin Lecher [this message]
-- strict thread matches above, loose matches on Subject: below --
2015-01-10 18:03 [gentoo-commits] proj/sci:master commit in: sci-libs/arrayfire/ Justin Lecher
2015-01-10 18:03 Justin Lecher
2015-01-10 18:03 Justin Lecher
2015-01-10 18:03 Justin Lecher
2015-01-10 18:03 Justin Lecher
2015-01-10 18:03 Justin Lecher
2015-01-10 18:03 Justin Lecher
2015-01-11 9:09 Justin Lecher
2015-01-11 9:09 Justin Lecher
2015-01-13 2:06 Christoph Junghans
2015-01-13 2:06 Christoph Junghans
2015-01-13 2:06 Christoph Junghans
2015-01-13 2:06 Christoph Junghans
2015-01-13 2:06 Christoph Junghans
2015-01-15 6:53 Justin Lecher
2015-01-22 0:09 Christoph Junghans
2015-01-22 10:14 Justin Lecher
2015-02-02 12:06 Justin Lecher
2015-02-20 2:02 Christoph Junghans
2015-05-24 8:14 Justin Lecher
2015-06-03 10:21 Justin Lecher
2015-06-05 10:47 Justin Lecher
2015-08-27 15:01 Justin Lecher
2015-09-09 7:11 Justin Lecher
2015-09-09 7:11 Justin Lecher
2015-09-13 18:34 Justin Lecher
2015-09-15 13:34 Justin Lecher
2015-09-17 21:56 Jauhien Piatlicki
2015-10-01 6:06 Justin Lecher
2015-10-06 21:38 Marius Brehler
2015-10-06 21:38 Marius Brehler
2015-11-02 7:49 Marius Brehler
2015-11-24 14:36 Marius Brehler
2015-11-28 18:21 Marius Brehler
2015-12-04 17:44 Marius Brehler
2015-12-19 12:36 Marius Brehler
2016-01-08 13:16 Marius Brehler
2016-01-12 11:07 Marius Brehler
2016-01-12 11:07 Marius Brehler
2016-05-19 7:14 Marius Brehler
2016-05-20 14:03 Marius Brehler
2016-11-24 10:55 Marius Brehler
2016-11-29 10:16 Marius Brehler
2017-01-02 8:42 Marius Brehler
2017-03-26 8:18 Justin Lecher
2020-09-25 2:33 Aisha Tammy
2020-09-25 2:33 Aisha Tammy
2020-09-25 2:33 Aisha Tammy
2020-09-25 2:33 Aisha Tammy
2020-09-25 2:33 Aisha Tammy
2020-09-25 2:33 Aisha Tammy
2020-09-25 12:16 Aisha Tammy
2020-12-23 2:46 Aisha Tammy
2021-01-19 2:04 Aisha Tammy
2021-01-20 8:40 Andrew Ammerlaan
2024-01-22 12:00 Horea Christian
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1420891392.8c3bb69148954714ff4e8614fce7acbb02e95bd8.jlec@gentoo \
--to=jlec@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox