commit:     16eca799f6a2014b8fa300f6dac98f27441ad3cf
Author:     Sébastien Fabbro <bicatali <AT> gentoo <DOT> org>
AuthorDate: Thu Jun  9 01:13:36 2016 +0000
Commit:     Sebastien Fabbro <bicatali <AT> gentoo <DOT> org>
CommitDate: Thu Jun  9 01:14:41 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=16eca799

dev-libs/starpu: force fortran dependency

Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=584560
Might be fixed in next release of starpu

Package-Manager: portage-2.3.0_rc1

 ...{starpu-1.1.5.ebuild => starpu-1.1.5-r1.ebuild} | 55 +++++++++++-----------
 dev-libs/starpu/starpu-1.1.5.ebuild                |  4 +-
 2 files changed, 30 insertions(+), 29 deletions(-)

diff --git a/dev-libs/starpu/starpu-1.1.5.ebuild 
b/dev-libs/starpu/starpu-1.1.5-r1.ebuild
similarity index 64%
copy from dev-libs/starpu/starpu-1.1.5.ebuild
copy to dev-libs/starpu/starpu-1.1.5-r1.ebuild
index e9e34ae..96e9439 100644
--- a/dev-libs/starpu/starpu-1.1.5.ebuild
+++ b/dev-libs/starpu/starpu-1.1.5-r1.ebuild
@@ -2,21 +2,22 @@
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
-EAPI=5
+EAPI=6
 
-AUTOTOOLS_AUTORECONF=1
-inherit autotools-utils toolchain-funcs cuda
+FORTRAN_STANDARD=90
+
+inherit autotools toolchain-funcs cuda fortran-2
 
 DESCRIPTION="Unified runtime system for heterogeneous multicore architectures"
 HOMEPAGE="http://runtime.bordeaux.inria.fr/StarPU/";
 SRC_URI="${HOMEPAGE}/files/${P}.tar.gz"
 
 LICENSE="LGPL-2.1"
-SLOT="0"
-KEYWORDS="~alpha amd64 ~x86 ~amd64-linux ~x86-linux"
+SLOT="0/8"
+KEYWORDS="~alpha ~amd64 ~x86 ~amd64-linux ~x86-linux"
 
-IUSE="blas cuda debug doc examples fftw gcc-plugin mpi opencl opengl qt4
-       static-libs test"
+IUSE="blas cuda debug doc examples fftw gcc-plugin mpi opencl opengl
+       qt4 static-libs test"
 
 RDEPEND="
        sys-apps/hwloc:0=
@@ -40,45 +41,43 @@ DEPEND="${RDEPEND}
        test? ( gcc-plugin? ( dev-scheme/guile ) )"
 
 src_prepare() {
+       default
        # upstream did not want the patches so apply sed's
        sed -i -e 's/-O3 $CFLAGS/$CFLAGS/' configure.ac || die
        sed -i -e '/Libs.private/s/@LDFLAGS@//g' *.pc.in */*.pc.in || die
-       autotools-utils_src_prepare
+       eautoreconf
        use cuda && cuda_src_prepare
 }
 
 src_configure() {
        use blas && export BLAS_LIBS="$($(tc-getPKG_CONFIG) --libs blas)"
 
-       local myeconfargs=(
-               --disable-build-examples
-               $(use_enable cuda)
-               $(use_enable debug)
-               $(use_enable doc build-doc)
-               $(use_enable fftw starpufft)
-               $(use_enable gcc-plugin gcc-extensions)
-               $(use_enable opencl)
-               $(use_enable opengl opengl-render)
-               $(use_enable qt4 starpu-top)
-               $(use_with mpi mpicc "$(type -P mpicc)")
-               $(use cuda && use_enable blas magma)
+       econf \
+               --disable-build-examples \
+               $(use_enable cuda) \
+               $(use_enable debug) \
+               $(use_enable doc build-doc) \
+               $(use_enable fftw starpufft) \
+               $(use_enable gcc-plugin gcc-extensions) \
+               $(use_enable opencl) \
+               $(use_enable opengl opengl-render) \
+               $(use_enable qt4 starpu-top) \
+               $(use_enable static-libs static) \
+               $(use_with mpi mpicc "$(type -P mpicc)") \
+               $(use cuda && use_enable blas magma) \
                $(use mpi && use_enable test mpi-check)
-       )
-       autotools-utils_src_configure
 }
 
 src_test() {
-       autotools-utils_src_test -j1 showcheck
+       emake -j1 showcheck
 }
 
 src_install() {
-       autotools-utils_src_install
-       if use doc; then
-               dodoc "${BUILD_DIR}"/doc/doxygen/*.pdf
-               dohtml -r "${BUILD_DIR}"/doc/doxygen/html/*
-       fi
+       default
+       use doc && dodoc -r doc/doxygen/*.pdf doc/doxygen/html
        if use examples; then
                insinto /usr/share/doc/${PF}/examples
                doins -r examples/*
        fi
+       prune_libtool_files --all
 }

diff --git a/dev-libs/starpu/starpu-1.1.5.ebuild 
b/dev-libs/starpu/starpu-1.1.5.ebuild
index e9e34ae..93b6c21 100644
--- a/dev-libs/starpu/starpu-1.1.5.ebuild
+++ b/dev-libs/starpu/starpu-1.1.5.ebuild
@@ -5,7 +5,9 @@
 EAPI=5
 
 AUTOTOOLS_AUTORECONF=1
-inherit autotools-utils toolchain-funcs cuda
+FORTRAN_STANDARD=90
+
+inherit autotools-utils toolchain-funcs cuda fortran-2
 
 DESCRIPTION="Unified runtime system for heterogeneous multicore architectures"
 HOMEPAGE="http://runtime.bordeaux.inria.fr/StarPU/";

Reply via email to