public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Reinis Danne" <rei4dan@gmail.com>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/sci:master commit in: sci-libs/armadillo/, sci-libs/armadillo/files/
Date: Sun, 16 Feb 2014 12:55:05 +0000 (UTC)	[thread overview]
Message-ID: <1392385890.dd742fe61965e5ab01b7af471620a5c37b22ea18.rei4dan@gentoo> (raw)

commit:     dd742fe61965e5ab01b7af471620a5c37b22ea18
Author:     Reinis Danne <rei4dan <AT> gmail <DOT> com>
AuthorDate: Fri Feb 14 13:51:30 2014 +0000
Commit:     Reinis Danne <rei4dan <AT> gmail <DOT> com>
CommitDate: Fri Feb 14 13:51:30 2014 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=dd742fe6

sci-libs/armadillo: Add patch with option to disable wrapper

With this programs can be built only against armadillo headers and
linked directly to math libraries by using -DARMA_NO_WRAPPER at compile
time.

---
 sci-libs/armadillo/ChangeLog                         |  4 ++++
 sci-libs/armadillo/armadillo-4.000.3.ebuild          |  1 +
 sci-libs/armadillo/files/armadillo-opt_wrapper.patch | 15 +++++++++++++++
 3 files changed, 20 insertions(+)

diff --git a/sci-libs/armadillo/ChangeLog b/sci-libs/armadillo/ChangeLog
index e28dc78..5d0748c 100644
--- a/sci-libs/armadillo/ChangeLog
+++ b/sci-libs/armadillo/ChangeLog
@@ -2,6 +2,10 @@
 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
 # $Header: $
 
+  14 Feb 2014; Reinis Danne <rei4dan@gmail.com> armadillo-4.000.3.ebuild,
+  +files/armadillo-opt_wrapper.patch:
+  Add patch to make the wrapper optional at consumer compile time.
+
   10 Feb 2014; Sébastien Fabbro <bicatali@gentoo.org> armadillo-4.000.3.ebuild:
   sci-libs/armadillo: removed int64 flag, it is only for revdep at compile time
 

diff --git a/sci-libs/armadillo/armadillo-4.000.3.ebuild b/sci-libs/armadillo/armadillo-4.000.3.ebuild
index 6dab248..c17fbf2 100644
--- a/sci-libs/armadillo/armadillo-4.000.3.ebuild
+++ b/sci-libs/armadillo/armadillo-4.000.3.ebuild
@@ -40,6 +40,7 @@ PDEPEND="${RDEPEND}
 src_prepare() {
 	epatch \
 		"${FILESDIR}"/${PN}-4.000.3-hdf5.patch \
+		"${FILESDIR}"/${PN}-opt_wrapper.patch \
 		"${FILESDIR}"/${PN}-3.820.1-example-makefile.patch
 	# avoid the automagic cmake macros
 	sed -i -e '/ARMA_Find/d' CMakeLists.txt || die

diff --git a/sci-libs/armadillo/files/armadillo-opt_wrapper.patch b/sci-libs/armadillo/files/armadillo-opt_wrapper.patch
new file mode 100644
index 0000000..be5b386
--- /dev/null
+++ b/sci-libs/armadillo/files/armadillo-opt_wrapper.patch
@@ -0,0 +1,15 @@
+--- include/armadillo_bits/config.hpp.cmake	2014-02-14 02:22:31.792051878 +0200
++++ include/armadillo_bits/config.hpp.cmake	2014-02-14 02:24:56.423587416 +0200
+@@ -29,10 +29,12 @@
+ //// ARPACK is required for eigendecompositions of sparse matrices, eg. eigs_sym() 
+ #endif
+ 
++#if !defined(ARMA_NO_WRAPPER)
+ #cmakedefine ARMA_USE_WRAPPER
+ //// Comment out the above line if you're getting linking errors when compiling your programs,
+ //// or if you prefer to directly link with LAPACK, BLAS or ARPACK.
+ //// You will then need to link your programs directly with -llapack -lblas instead of -larmadillo
++#endif
+ 
+ // #define ARMA_BLAS_CAPITALS
+ //// Uncomment the above line if your BLAS and LAPACK libraries have capitalised function names (eg. ACML on 64-bit Windows)


             reply	other threads:[~2014-02-16 12:55 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-16 12:55 Reinis Danne [this message]
  -- strict thread matches above, loose matches on Subject: below --
2014-06-09 16:36 [gentoo-commits] proj/sci:master commit in: sci-libs/armadillo/, sci-libs/armadillo/files/ Sebastien Fabbro
2014-02-16 12:55 Reinis Danne
2014-02-10  4:14 Sebastien Fabbro
2013-05-25  4:40 Sebastien Fabbro
2013-04-29 16:32 Sebastien Fabbro

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=1392385890.dd742fe61965e5ab01b7af471620a5c37b22ea18.rei4dan@gentoo \
    --to=rei4dan@gmail.com \
    --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