commit:     ce87de8a9a7fa8d57c6bd94608cd2b83b1faf8c4
Author:     Horea Christian <horea.christ <AT> yandex <DOT> com>
AuthorDate: Sun Aug 19 22:15:50 2018 +0000
Commit:     Horea Christian <horea.christ <AT> gmail <DOT> com>
CommitDate: Sun Aug 19 22:15:50 2018 +0000
URL:        https://gitweb.gentoo.org/proj/sci.git/commit/?id=ce87de8a

Distributing LAPACK migration files alongside overlay

 README.md                   |  4 ++--
 scripts/lapack_migration.sh | 22 ++++++++++++++++++++++
 scripts/sci-lapack          | 18 ++++++++++++++++++
 3 files changed, 42 insertions(+), 2 deletions(-)

diff --git a/README.md b/README.md
index cda4ca018..eb652ee93 100644
--- a/README.md
+++ b/README.md
@@ -21,8 +21,8 @@ A fix [is being 
considered](https://github.com/gentoo/sci/issues/805), bit is st
 In the mean time, the most automated and up-to-date solution (building on [the 
original one](https://wiki.gentoo.org/wiki/User_talk:Houseofsuns)) is to run:
 
 ```
-wget 
https://raw.githubusercontent.com/IBT-FMI/NeuroGentooProject/master/SharedPrefix/sci-lapack
-wget 
https://raw.githubusercontent.com/IBT-FMI/NeuroGentooProject/master/SharedPrefix/lapack-migration.sh
+wget https://gitweb.gentoo.org/proj/sci.git/plain/scripts/sci-lapack
+wget https://gitweb.gentoo.org/proj/sci.git/plain/scripts/lapack-migration.sh
 ./lapack-migration.sh
 ```
 

diff --git a/scripts/lapack_migration.sh b/scripts/lapack_migration.sh
new file mode 100644
index 000000000..2e6624ada
--- /dev/null
+++ b/scripts/lapack_migration.sh
@@ -0,0 +1,22 @@
+#!/usr/bin/env bash
+set -e
+
+EPREFIX=${1}
+
+#Link to the workaroud we reproduce in this section : 
https://wiki.gentoo.org/wiki/User_talk:Houseofsuns#Migration_to_science_overlay_from_main_tree
+#Efforts to more permanently address the issue: 
https://github.com/gentoo/sci/issues/805
+echo ""
+echo "Setting Up Eselect for Gentoo Science:"
+echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
+cp "sci-lapack" "${EPREFIX}/etc/portage/package.mask/"
+emerge --oneshot --verbose dev-util/cmake >> /dev/null
+emerge --oneshot --verbose app-admin/eselect::science >> /dev/null
+FEATURES="-preserve-libs":$FEATURES emerge --oneshot --verbose 
sci-libs/blas-reference::science
+eselect blas set reference
+FEATURES="-preserve-libs":$FEATURES emerge --oneshot --verbose 
sci-libs/cblas-reference::science
+eselect cblas set reference
+FEATURES="-preserve-libs":$FEATURES emerge --oneshot --verbose 
sci-libs/lapack-reference::science
+eselect lapack set reference
+FEATURES="-preserve-libs":$FEATURES emerge --oneshot --verbose --exclude 
sci-libs/blas-reference --exclude sci-libs/cblas-reference --exclude 
sci-libs/lapack-reference `eix --only-names --installed --in-overlay science`
+
+emerge -1qv @preserved-rebuild

diff --git a/scripts/sci-lapack b/scripts/sci-lapack
new file mode 100644
index 000000000..691059927
--- /dev/null
+++ b/scripts/sci-lapack
@@ -0,0 +1,18 @@
+## mask packages superseded by science overlay
+app-admin/eselect::gentoo
+app-eselect/eselect-blas
+app-eselect/eselect-cblas
+app-eselect/eselect-lapack
+virtual/blas::gentoo
+virtual/cblas::gentoo
+virtual/lapack::gentoo
+sci-libs/gsl::gentoo
+app-doc/blas-docs::gentoo
+app-doc/lapack-docs::gentoo
+sci-libs/blas-reference::gentoo
+sci-libs/cblas-reference::gentoo
+sci-libs/lapack-reference::gentoo
+sci-libs/mkl::gentoo
+
+## more recently requires (see: https://github.com/gentoo/sci/issues/878 )
+>=dev-util/cmake-3.12.0

Reply via email to