public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Marius Brehler" <marbre@linux.sungazer.de>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/sci:master commit in: sci-libs/arrayfire/, sci-libs/arrayfire/files/
Date: Thu,  1 Dec 2016 09:00:56 +0000 (UTC)	[thread overview]
Message-ID: <1480582828.a2fd90ae05dcc27d04772022a8563de2a9da5ff0.marbre@gentoo> (raw)

commit:     a2fd90ae05dcc27d04772022a8563de2a9da5ff0
Author:     Marius Brehler <marbre <AT> linux <DOT> sungazer <DOT> de>
AuthorDate: Thu Dec  1 09:00:02 2016 +0000
Commit:     Marius Brehler <marbre <AT> linux <DOT> sungazer <DOT> de>
CommitDate: Thu Dec  1 09:00:28 2016 +0000
URL:        https://gitweb.gentoo.org/proj/sci.git/commit/?id=a2fd90ae

sci-libs/arrayfire: Fix FindCBLAS.cmake in 3.4.1-r1

Package-Manager: portage-2.3.0

 ...fire-3.4.1.ebuild => arrayfire-3.4.1-r1.ebuild} |  2 ++
 .../files/arrayfire-3.4.1-FindCBLAS.patch          | 37 ++++++++++++++++++++++
 2 files changed, 39 insertions(+)

diff --git a/sci-libs/arrayfire/arrayfire-3.4.1.ebuild b/sci-libs/arrayfire/arrayfire-3.4.1-r1.ebuild
similarity index 98%
rename from sci-libs/arrayfire/arrayfire-3.4.1.ebuild
rename to sci-libs/arrayfire/arrayfire-3.4.1-r1.ebuild
index 8c80bc3..563042a 100644
--- a/sci-libs/arrayfire/arrayfire-3.4.1.ebuild
+++ b/sci-libs/arrayfire/arrayfire-3.4.1-r1.ebuild
@@ -52,6 +52,8 @@ S="${WORKDIR}/${PN}-full-${PV}"
 BUILD_DIR="${S}/build"
 CMAKE_BUILD_TYPE=Release
 
+PATCHES=("${FILESDIR}/${P}-FindCBLAS.patch")
+
 # We need write acccess /dev/nvidiactl, /dev/nvidia0 and /dev/nvidia-uvm and the portage
 # user is (usually) not in the video group
 RESTRICT="userpriv"

diff --git a/sci-libs/arrayfire/files/arrayfire-3.4.1-FindCBLAS.patch b/sci-libs/arrayfire/files/arrayfire-3.4.1-FindCBLAS.patch
new file mode 100644
index 0000000..b75569f
--- /dev/null
+++ b/sci-libs/arrayfire/files/arrayfire-3.4.1-FindCBLAS.patch
@@ -0,0 +1,37 @@
+https://github.com/arrayfire/arrayfire/pull/1657
+
+
+From 23228318b153bdc5bb30e084f9310b09b1644bd0 Mon Sep 17 00:00:00 2001
+From: Marius Brehler <marius.brehler@tu-dortmund.de>
+Date: Wed, 30 Nov 2016 14:07:21 +0100
+Subject: [PATCH] FindCBLAS.cmake: Fix setting CBLAS_INCLUDE_DIR if PkgConfig
+ is used
+
+---
+ CMakeModules/FindCBLAS.cmake | 10 ++++++++--
+ 1 file changed, 8 insertions(+), 2 deletions(-)
+
+diff --git a/CMakeModules/FindCBLAS.cmake b/CMakeModules/FindCBLAS.cmake
+index fbb646b..058b7d7 100644
+--- a/CMakeModules/FindCBLAS.cmake
++++ b/CMakeModules/FindCBLAS.cmake
+@@ -39,8 +39,14 @@ IF(PC_CBLAS_FOUND)
+     LIST(APPEND CBLAS_LIBRARIES ${${PC_LIB}_LIBRARY})
+   ENDFOREACH(PC_LIB)
+ 
+-  FIND_PACKAGE_HANDLE_STANDARD_ARGS(CBLAS DEFAULT_MSG CBLAS_LIBRARIES)
+-  MARK_AS_ADVANCED(CBLAS_LIBRARIES)
++  FIND_PATH(CBLAS_INCLUDE_DIRS NAMES cblas.h HINTS ${PC_CBLAS_INCLUDE_DIRS} )
++  IF (NOT CBLAS_INCLUDE_DIRS)
++    message(FATAL_ERROR "Something is wrong in your pkg-config file - cblas.h not found in ${PC_CBLAS_INCLUDE_DIRS}")
++  ENDIF (NOT CBLAS_INCLUDE_DIRS)
++  SET(CBLAS_INCLUDE_DIR ${CBLAS_INCLUDE_DIRS})
++
++  FIND_PACKAGE_HANDLE_STANDARD_ARGS(CBLAS DEFAULT_MSG CBLAS_LIBRARIES CBLAS_INCLUDE_DIR)
++  MARK_AS_ADVANCED(CBLAS_LIBRARIES CBLAS_INCLUDE_DIR)
+ 
+ ELSE(PC_CBLAS_FOUND)
+ 
+-- 
+2.7.3
+


             reply	other threads:[~2016-12-01  9:01 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-12-01  9:00 Marius Brehler [this message]
  -- strict thread matches above, loose matches on Subject: below --
2017-04-11 14:52 [gentoo-commits] proj/sci:master commit in: sci-libs/arrayfire/, sci-libs/arrayfire/files/ Marius Brehler
2016-05-19  7:14 Marius Brehler
2015-09-19 12:51 Justin Lecher
2015-09-15 13:34 Justin Lecher
2015-03-08 18:08 Justin Lecher
2015-01-10 18:03 Justin Lecher

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=1480582828.a2fd90ae05dcc27d04772022a8563de2a9da5ff0.marbre@gentoo \
    --to=marbre@linux.sungazer.de \
    --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