commit:     0af39b7ee94e32f4850070f88faa724388f103d6
Author:     Marius Brehler <marbre <AT> linux <DOT> sungazer <DOT> de>
AuthorDate: Fri Dec  2 09:05:54 2016 +0000
Commit:     Marius Brehler <marbre <AT> linux <DOT> sungazer <DOT> de>
CommitDate: Fri Dec  2 09:06:17 2016 +0000
URL:        https://gitweb.gentoo.org/proj/sci.git/commit/?id=0af39b7e

sci-libs/atlas-3.10.3: Add deprecated use flag

Package-Manager: portage-2.3.0

 sci-libs/atlas/atlas-3.10.3.ebuild | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/sci-libs/atlas/atlas-3.10.3.ebuild 
b/sci-libs/atlas/atlas-3.10.3.ebuild
index da0ef3f..2416961 100644
--- a/sci-libs/atlas/atlas-3.10.3.ebuild
+++ b/sci-libs/atlas/atlas-3.10.3.ebuild
@@ -18,10 +18,11 @@ SRC_URI="mirror://sourceforge/math-atlas/${PN}${PV}.tar.bz2
 LICENSE="BSD"
 SLOT="0"
 KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
-IUSE="doc fortran generic lapack static-libs threads"
+IUSE="+deprecated doc fortran generic lapack static-libs threads"
 
-RDEPEND=""
-DEPEND="${RDEPEND}"
+REQUIRED_USE="
+       deprecated? ( lapack )
+       lapack? ( fortran )"
 
 S="${WORKDIR}/ATLAS"
 
@@ -114,6 +115,10 @@ src_configure() {
                # for debugging
                echo ${myconf[@]} > myconf.out
                "${S}"/configure ${myconf[@]} || die "configure in ${confdir} 
failed"
+
+               if use deprecated; then
+                       echo "BUILD_DEPRECATED=1" >> 
src/lapack/reference/make.inc.example || die
+               fi
        }
 
        atlas_configure shared "-Fa alg -fPIC" ${EXTRA_ECONF}

Reply via email to