# Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/dev-libs/starpu/starpu-1.0.2.ebuild,v 1.2 2012/08/15 18:30:31 bicatali Exp $ EAPI=4 AUTOTOOLS_AUTORECONF=1 inherit autotools-utils toolchain-funcs PID=31334 DESCRIPTION="Unified runtime system for heterogeneous multicore architectures" HOMEPAGE="http://runtime.bordeaux.inria.fr/StarPU/" SRC_URI="https://gforge.inria.fr/frs/download.php/${PID}/${P}.tar.gz" LICENSE="LGPL-2.1" SLOT="0" KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" IUSE="blas cuda doc examples fftw gcc-plugin mpi opencl qt4 static-libs test" RDEPEND="sys-apps/hwloc sci-mathematics/glpk blas? ( virtual/blas ) cuda? ( x11-drivers/nvidia-drivers dev-util/nvidia-cuda-toolkit ) fftw? ( sci-libs/fftw:3.0 ) mpi? ( virtual/mpi ) opencl? ( virtual/opencl ) qt4? ( >=x11-libs/qt-gui-4.7:4 >=x11-libs/qt-opengl-4.7:4 >=x11-libs/qt-sql-4.7:4 x11-libs/qwt )" DEPEND="${RDEPEND} virtual/pkgconfig test? ( gcc-plugin? ( dev-scheme/guile ) )" PATCHES=( "${FILESDIR}"/${PN}-1.0.1-detect-qt.patch "${FILESDIR}"/${PN}-1.0.1-respect-cflags.patch "${FILESDIR}"/${PN}-1.0.1-system-blas.patch "${FILESDIR}"/${PN}-1.0.1-no-examples.patch "${FILESDIR}"/${PN}-1.0.1-no-pc-ldflags.patch ) src_prepare() { # do not force -Werror, Gentoo bug #423011 sed -i -e '/AM_INIT_AUTOMAKE/s:-Werror ::' configure.ac || die autotools-utils_src_prepare } src_configure() { use blas && export BLAS_LIBS="$($(tc-getPKG_CONFIG) --libs blas)" local myeconfargs=( $(use_enable cuda) $(use_enable fftw starpufft) $(use_enable gcc-plugin gcc-extensions) $(use_enable opencl) $(use_enable qt4 starpu-top) $(use_with mpi mpicc "$(type -P mpicc)") $(use mpi && use_enable test mpi-check) ) autotools-utils_src_configure } src_install() { autotools-utils_src_install use doc && dodoc doc/*.pdf if use examples; then insinto /usr/share/doc/${PF}/examples doins -r examples/* fi }