summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Maier <tamiko@gentoo.org>2018-08-29 21:13:22 -0500
committerMatthias Maier <tamiko@gentoo.org>2018-08-30 21:30:59 -0500
commit341370b1596682a9a74bc621e60831a90c38811a (patch)
tree30229d7ceb735d73e99e07f27a51667ef04fce7a /dev-lang/julia
parentsys-devel/bison: backport ebuild fixes from v3.1 (diff)
downloadgentoo-341370b1596682a9a74bc621e60831a90c38811a.tar.gz
gentoo-341370b1596682a9a74bc621e60831a90c38811a.tar.bz2
gentoo-341370b1596682a9a74bc621e60831a90c38811a.zip
dev-lang/julia: Update live ebuild
Bug: https://bugs.gentoo.org/660596 Package-Manager: Portage-2.3.48, Repoman-2.3.10
Diffstat (limited to 'dev-lang/julia')
-rw-r--r--dev-lang/julia/julia-9999.ebuild20
1 files changed, 18 insertions, 2 deletions
diff --git a/dev-lang/julia/julia-9999.ebuild b/dev-lang/julia/julia-9999.ebuild
index ee966c94ec4b..c8aa3e8ec868 100644
--- a/dev-lang/julia/julia-9999.ebuild
+++ b/dev-lang/julia/julia-9999.ebuild
@@ -25,15 +25,18 @@ RDEPEND+="
dev-libs/double-conversion:0=
dev-libs/gmp:0=
dev-libs/libgit2:0=
+ >=dev-libs/libpcre2-10.23:0=[jit]
dev-libs/mpfr:0=
dev-libs/openspecfun
+ sci-libs/amd:0=
sci-libs/arpack:0=
sci-libs/camd:0=
+ sci-libs/ccolamd:0=
sci-libs/cholmod:0=
+ sci-libs/colamd:0=
sci-libs/fftw:3.0=[threads]
sci-libs/openlibm:0=
sci-libs/spqr:0=
- >=dev-libs/libpcre2-10.23:0=[jit]
sci-libs/umfpack:0=
sci-mathematics/glpk:0=
>=sys-libs/libunwind-1.1:7=
@@ -101,7 +104,7 @@ src_configure() {
USE_SYSTEM_PCRE=1
USE_SYSTEM_RMATH=0
USE_SYSTEM_UTF8PROC=0
- USE_LLVM_SHLIB=1
+ USE_LLVM_SHLIB=0
USE_SYSTEM_ARPACK=1
USE_SYSTEM_BLAS=1
USE_SYSTEM_FFTW=1
@@ -131,6 +134,19 @@ src_compile() {
addpredict /proc/self/mem
emake cleanall
+
+ # Create symlinks...
+ local libblas="$($(tc-getPKG_CONFIG) --libs-only-l blas)"
+ libblas="${libblas%% *}"
+ libblas="lib${libblas#-l}"
+ local liblapack="$($(tc-getPKG_CONFIG) --libs-only-l lapack)"
+ liblapack="${liblapack%% *}"
+ liblapack="lib${liblapack#-l}"
+ mkdir -p "${S}"/usr/lib/julia || die "mkdir failed"
+ for i in ${libblas}.so ${liblapack}.so libumfpack.so libspqr.so; do
+ ln -s "${EROOT}/usr/$(get_libdir)/${i}" "${S}"/usr/lib/julia/ || die "ln failed"
+ done
+
emake VERBOSE=1 julia-release \
prefix="${EPREFIX}/usr" DESTDIR="${D}" \
CC="$(tc-getCC)" CXX="$(tc-getCXX)"