From a9fedb98d3787e6537cc5ac103df402749566bba Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Krup=C4=8D=C3=ADk?= <lukas.krupcik@vsb.cz>
Date: Mon, 21 Sep 2020 14:13:40 +0200
Subject: [PATCH] 	new file:   a/Armadillo/Armadillo-9.600.5_no_mkl.patch
 	new file:   a/Armadillo/Armadillo-9.900.3-foss-2020a.eb

---
 a/Armadillo/Armadillo-9.600.5_no_mkl.patch  | 11 +++++++++
 a/Armadillo/Armadillo-9.900.3-foss-2020a.eb | 27 +++++++++++++++++++++
 2 files changed, 38 insertions(+)
 create mode 100644 a/Armadillo/Armadillo-9.600.5_no_mkl.patch
 create mode 100644 a/Armadillo/Armadillo-9.900.3-foss-2020a.eb

diff --git a/a/Armadillo/Armadillo-9.600.5_no_mkl.patch b/a/Armadillo/Armadillo-9.600.5_no_mkl.patch
new file mode 100644
index 00000000..5c115a7d
--- /dev/null
+++ b/a/Armadillo/Armadillo-9.600.5_no_mkl.patch
@@ -0,0 +1,11 @@
+--- CMakeLists.txt.orig	2016-06-16 18:20:05.000000000 +0200
++++ CMakeLists.txt	2019-10-22 10:44:59.764711121 +0200
+@@ -173,7 +173,7 @@
+   
+   set(ARMA_OS unix)
+   
+-  include(ARMA_FindMKL)
++  set(MKL_FOUND false)
+   include(ARMA_FindACMLMP)
+   include(ARMA_FindACML)
+   include(ARMA_FindOpenBLAS)
diff --git a/a/Armadillo/Armadillo-9.900.3-foss-2020a.eb b/a/Armadillo/Armadillo-9.900.3-foss-2020a.eb
new file mode 100644
index 00000000..1d9a92c6
--- /dev/null
+++ b/a/Armadillo/Armadillo-9.900.3-foss-2020a.eb
@@ -0,0 +1,27 @@
+# IT4Innovations 2020
+# LK
+
+name = 'Armadillo'
+version = "9.900.3"
+
+homepage = 'https://arma.sourceforge.net/'
+description = """Armadillo is an open-source C++ linear algebra library (matrix maths) aiming towards
+ a good balance between speed and ease of use. Integer, floating point and complex numbers are supported,
+ as well as a subset of trigonometric and statistics functions."""
+
+toolchain = {'name': 'foss', 'version': '2020a'}
+
+source_urls = ['https://sourceforge.net/projects/arma/files']
+sources = [SOURCELOWER_TAR_XZ]
+patches = [
+    'Armadillo-9.600.5_no_mkl.patch'
+]
+
+dependencies = [
+    ('Boost', '1.72.0'),
+    ('arpack-ng', '3.7.0'),
+]
+
+builddependencies = [('CMake', '3.16.4')]
+
+moduleclass = 'numlib'