summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Maier <tamiko@gentoo.org>2016-01-22 11:12:21 -0600
committerMatthias Maier <tamiko@gentoo.org>2016-01-22 11:14:03 -0600
commitee0eb7f58bc7d5bff6aa744b1fc5f50bd8309cf3 (patch)
tree94f283bb132d656131805ea2138edeed87352af8 /dev-lang/julia
parentmedia-sound/ncmpcpp: Version bump. (diff)
downloadgentoo-ee0eb7f58bc7d5bff6aa744b1fc5f50bd8309cf3.tar.gz
gentoo-ee0eb7f58bc7d5bff6aa744b1fc5f50bd8309cf3.tar.bz2
gentoo-ee0eb7f58bc7d5bff6aa744b1fc5f50bd8309cf3.zip
dev-lang/julia: Set up blas/lapack dependencies correctly, bug 572546
Package-Manager: portage-2.2.26
Diffstat (limited to 'dev-lang/julia')
-rw-r--r--dev-lang/julia/julia-0.4.3.ebuild18
1 files changed, 10 insertions, 8 deletions
diff --git a/dev-lang/julia/julia-0.4.3.ebuild b/dev-lang/julia/julia-0.4.3.ebuild
index f0b4381e02e2..c6f50bdae5e5 100644
--- a/dev-lang/julia/julia-0.4.3.ebuild
+++ b/dev-lang/julia/julia-0.4.3.ebuild
@@ -74,10 +74,12 @@ src_prepare() {
-e "s|/usr/include|${EPREFIX%/}/usr/include|g" \
deps/Makefile || die
- local lblas="$($(tc-getPKG_CONFIG) --libs blas)"
- lblas=${lblas%% *}
- local llapack="$($(tc-getPKG_CONFIG) --libs lapack)"
- llapack=${llapack%% *}
+ 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}"
sed -i \
-e "s|\(JULIA_EXECUTABLE = \)\(\$(JULIAHOME)/julia\)|\1 LD_LIBRARY_PATH=\$(BUILD)/$(get_libdir) \2|" \
@@ -87,10 +89,10 @@ src_prepare() {
-e "s|/usr/include|${EPREFIX}/usr/include|" \
-e "s|\$(BUILD)/lib|\$(BUILD)/$(get_libdir)|" \
-e "s|^JULIA_COMMIT = .*|JULIA_COMMIT = v${PV}|" \
- -e "s|-lblas|${lblas}|" \
- -e "s|= libblas|= lib${lblas#-l}|" \
- -e "s|-llapack|${llapack}|" \
- -e "s|= liblapack|= lib${llapack#-l}|" \
+ -e "s|-lblas|$($(tc-getPKG_CONFIG) --libs blas)|" \
+ -e "s|= libblas|= ${libblas}|" \
+ -e "s|-llapack|$($(tc-getPKG_CONFIG) --libs lapack)|" \
+ -e "s|= liblapack|= ${liblapack}|" \
Make.inc || die
sed -i \