diff options
Diffstat (limited to 'dev-libs/starpu')
-rw-r--r-- | dev-libs/starpu/Manifest | 1 | ||||
-rw-r--r-- | dev-libs/starpu/starpu-1.2.6.ebuild | 78 |
2 files changed, 79 insertions, 0 deletions
diff --git a/dev-libs/starpu/Manifest b/dev-libs/starpu/Manifest index 2c4a92597b61..2ea020b11cb1 100644 --- a/dev-libs/starpu/Manifest +++ b/dev-libs/starpu/Manifest @@ -1 +1,2 @@ DIST starpu-1.1.5.tar.gz 5209660 BLAKE2B 3caf313402a840b8196dc94b6c4f973f87a21878bcbfe1a44ce14218c02290c8701eb3829ce0b89f3029f768c7760ea94c4f307c850e6e42ec877be017c50b4a SHA512 e22a51c601c1997f6a9279e87b22a96f2b25a9c8bb4b715ee3a048ed8af638997610ba72c7b42f61d9401464464c57402feebc76368f9df6ca84fa1305baeedd +DIST starpu-1.2.6.tar.gz 8911397 BLAKE2B a73cb3b230282b0b828fdaeb65f5491928fde1b2e5797f739a99c87318fa29511196f7121a72ff91bf0d663938b50f200d108fdce2726eb7ea8c7e997156dc13 SHA512 5971f8875dd54c73486583456bd0bc81c2865cb5b8bba6d47a5085d76fa6294c869efdd1c1d14144d08e6c14cbbea3a773474d46aa827ca24f58d9fb57ccbed7 diff --git a/dev-libs/starpu/starpu-1.2.6.ebuild b/dev-libs/starpu/starpu-1.2.6.ebuild new file mode 100644 index 000000000000..cb8669fa9a42 --- /dev/null +++ b/dev-libs/starpu/starpu-1.2.6.ebuild @@ -0,0 +1,78 @@ +# Copyright 1999-2018 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +FORTRAN_STANDARD=90 + +inherit autotools toolchain-funcs cuda fortran-2 + +DESCRIPTION="Unified runtime system for heterogeneous multicore architectures" +HOMEPAGE="http://starpu.gforge.inria.fr/" +SRC_URI="https://gforge.inria.fr/frs/download.php/file/37744/${P}.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0/8" +KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux" + +IUSE="blas cuda debug doc examples fftw gcc-plugin mpi opencl opengl + static-libs test" + +RDEPEND=" + sys-apps/hwloc:0= + sci-mathematics/glpk:0= + blas? ( virtual/blas ) + cuda? ( dev-util/nvidia-cuda-toolkit + x11-drivers/nvidia-drivers + blas? ( sci-libs/magma ) ) + fftw? ( sci-libs/fftw:3.0= ) + mpi? ( virtual/mpi ) + opencl? ( virtual/opencl ) + opengl? ( media-libs/freeglut:0= )" + +DEPEND="${RDEPEND} + virtual/pkgconfig + doc? ( app-doc/doxygen virtual/latex-base ) + 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 + eautoreconf + use cuda && cuda_src_prepare +} + +src_configure() { + use blas && export BLAS_LIBS="$($(tc-getPKG_CONFIG) --libs blas)" + + econf \ + --disable-build-examples \ + --disable-starpu-top \ + $(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 static-libs static) \ + $(use_with mpi mpicc "$(type -P mpicc)") \ + $(use cuda && use_enable blas magma) \ + $(use mpi && use_enable test mpi-check) +} + +src_test() { + emake -j1 showcheck +} + +src_install() { + 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 +} |