Gentoo Archives: gentoo-commits

From: Matthias Maier <tamiko@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lang/julia/, dev-lang/julia/files/
Date: Sun, 01 Jul 2018 04:49:27
Message-Id: 1530420548.122adfb9f7de4b84dc705470092a35ea6563f4ce.tamiko@gentoo
1 commit: 122adfb9f7de4b84dc705470092a35ea6563f4ce
2 Author: Matthias Maier <tamiko <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jul 1 04:37:53 2018 +0000
4 Commit: Matthias Maier <tamiko <AT> gentoo <DOT> org>
5 CommitDate: Sun Jul 1 04:49:08 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=122adfb9
7
8 dev-lang/julia: update live ebuild
9
10 Package-Manager: Portage-2.3.41, Repoman-2.3.9
11
12 .../julia/files/julia-9999-fix_build_system.patch | 29 +++++++++++++++-------
13 dev-lang/julia/julia-9999.ebuild | 14 ++---------
14 2 files changed, 22 insertions(+), 21 deletions(-)
15
16 diff --git a/dev-lang/julia/files/julia-9999-fix_build_system.patch b/dev-lang/julia/files/julia-9999-fix_build_system.patch
17 index d7866f46b3e..336d6e3e590 100644
18 --- a/dev-lang/julia/files/julia-9999-fix_build_system.patch
19 +++ b/dev-lang/julia/files/julia-9999-fix_build_system.patch
20 @@ -1,8 +1,17 @@
21 diff --git a/Make.inc b/Make.inc
22 -index e77681669..bc17c6fd0 100644
23 +index 8cb2c1014..d3be9de8e 100644
24 --- a/Make.inc
25 +++ b/Make.inc
26 -@@ -399,7 +399,7 @@ ifneq ($(OS), WINNT)
27 +@@ -178,7 +178,7 @@ USE_GPL_LIBS ?= 1
28 + # Directories where said libraries get installed to
29 + prefix ?= $(BUILDROOT)/julia-$(JULIA_COMMIT)
30 + bindir := $(prefix)/bin
31 +-libdir := $(prefix)/lib
32 ++libdir := $(prefix)/GENTOOLIBDIR
33 + libexecdir := $(prefix)/libexec
34 + datarootdir := $(prefix)/share
35 + docdir := $(datarootdir)/doc/julia
36 +@@ -410,7 +410,7 @@ ifneq ($(OS), WINNT)
37 JCXXFLAGS += -pedantic
38 endif
39 DEBUGFLAGS := -O0 -ggdb2 -DJL_DEBUG_BUILD -fstack-protector-all
40 @@ -11,7 +20,7 @@ index e77681669..bc17c6fd0 100644
41 endif
42
43 ifeq ($(USECLANG),1)
44 -@@ -410,7 +410,7 @@ JCFLAGS := -pipe $(fPIC) -fno-strict-aliasing -D_FILE_OFFSET_BITS=64
45 +@@ -421,7 +421,7 @@ JCFLAGS := -pipe $(fPIC) -fno-strict-aliasing -D_FILE_OFFSET_BITS=64
46 JCPPFLAGS := -fasynchronous-unwind-tables
47 JCXXFLAGS := -pipe $(fPIC) -fno-rtti -pedantic
48 DEBUGFLAGS := -O0 -g -DJL_DEBUG_BUILD -fstack-protector-all
49 @@ -20,7 +29,7 @@ index e77681669..bc17c6fd0 100644
50 ifeq ($(OS), Darwin)
51 ifeq ($(USE_LIBCPP), 1)
52 MACOSX_VERSION_MIN := 10.8
53 -@@ -439,7 +439,7 @@ JCFLAGS := -std=gnu11 -pipe $(fPIC) -fno-strict-aliasing -D_FILE_OFFSET_BITS=64
54 +@@ -450,7 +450,7 @@ JCFLAGS := -std=gnu11 -pipe $(fPIC) -fno-strict-aliasing -D_FILE_OFFSET_BITS=64
55 JCPPFLAGS :=
56 JCXXFLAGS := -pipe $(fPIC) -fno-rtti
57 DEBUGFLAGS := -O0 -g -DJL_DEBUG_BUILD -fstack-protector-all
58 @@ -30,10 +39,10 @@ index e77681669..bc17c6fd0 100644
59
60 ifeq ($(USECCACHE), 1)
61 diff --git a/doc/Makefile b/doc/Makefile
62 -index 743804d8b..e06dde030 100644
63 +index 89b79880d..c3125fde1 100644
64 --- a/doc/Makefile
65 +++ b/doc/Makefile
66 -@@ -25,7 +25,7 @@ deps: UnicodeData.txt
67 +@@ -29,7 +29,7 @@ deps: UnicodeData.txt
68 $(JLCHECKSUM) UnicodeData.txt
69
70 clean:
71 @@ -43,13 +52,14 @@ index 743804d8b..e06dde030 100644
72 cleanall: clean
73
74 diff --git a/src/Makefile b/src/Makefile
75 -index d3ff98900..9c4d889b4 100644
76 +index 257152d24..240a4a350 100644
77 --- a/src/Makefile
78 +++ b/src/Makefile
79 -@@ -87,14 +87,7 @@ PUBLIC_HEADERS += $(LIBUV_INC)/uv*
80 +@@ -85,16 +85,7 @@ UV_HEADERS += uv/*.h
81 endif
82 - PUBLIC_HEADER_TARGETS := $(addprefix $(build_includedir)/julia/,$(notdir $(PUBLIC_HEADERS)))
83 + PUBLIC_HEADER_TARGETS := $(addprefix $(build_includedir)/julia/,$(notdir $(PUBLIC_HEADERS)) $(UV_HEADERS))
84
85 +-ifeq ($(JULIACODEGEN),LLVM)
86 -# In LLVM < 3.4, --ldflags includes both options and libraries, so use it both before and after --libs
87 -# In LLVM >= 3.4, --ldflags has only options, and --system-libs has the libraries.
88 -ifneq ($(USE_LLVM_SHLIB),1)
89 @@ -58,6 +68,7 @@ index d3ff98900..9c4d889b4 100644
90 -LLVMLINK += $(shell $(LLVM_CONFIG_HOST) --ldflags) -lLLVM
91 -FLAGS += -DLLVM_SHLIB
92 -endif # USE_LLVM_SHLIB == 1
93 +-endif
94 +LLVMLINK = $(call exec,$(LLVM_CONFIG) --ldflags) $(call exec,$(LLVM_CONFIG) --libs) $(call exec,$(LLVM_CONFIG) --ldflags) $(call exec,$(LLVM_CONFIG) --system-libs)
95
96 COMMON_LIBS := -L$(build_shlibdir) -L$(build_libdir) $(LIBUV) $(LIBUTF8PROC) $(NO_WHOLE_ARCHIVE) $(LLVMLINK) $(OSLIBS)
97
98 diff --git a/dev-lang/julia/julia-9999.ebuild b/dev-lang/julia/julia-9999.ebuild
99 index 8e0c10fd426..ee966c94ec4 100644
100 --- a/dev-lang/julia/julia-9999.ebuild
101 +++ b/dev-lang/julia/julia-9999.ebuild
102 @@ -51,9 +51,7 @@ PATCHES=(
103 )
104
105 src_prepare() {
106 - epatch "${PATCHES[@]}"
107 -
108 - eapply_user
109 + default
110
111 # Sledgehammer:
112 # - respect CFLAGS
113 @@ -73,12 +71,8 @@ src_prepare() {
114 liblapack="lib${liblapack#-l}"
115
116 sed -i \
117 - -e "s|\(JULIA_EXECUTABLE = \)\(\$(JULIAHOME)/julia\)|\1 LD_LIBRARY_PATH=\$(BUILD)/$(get_libdir) \2|" \
118 -e "s|GENTOOCFLAGS|${CFLAGS}|g" \
119 - -e "s|LIBDIR = lib|LIBDIR = $(get_libdir)|" \
120 - -e "s|/usr/lib|${EPREFIX}/usr/$(get_libdir)|" \
121 - -e "s|/usr/include|${EPREFIX}/usr/include|" \
122 - -e "s|\$(BUILD)/lib|\$(BUILD)/$(get_libdir)|" \
123 + -e "s|GENTOOLIBDIR|$(get_libdir)|" \
124 -e "s|^JULIA_COMMIT = .*|JULIA_COMMIT = v${PV}|" \
125 -e "s|-lblas|$($(tc-getPKG_CONFIG) --libs blas)|" \
126 -e "s|= libblas|= ${libblas}|" \
127 @@ -164,8 +158,4 @@ src_install() {
128 mv "${ED}"/usr/share/doc/julia/{examples,html} \
129 "${ED}"/usr/share/doc/${PF} || die
130 rmdir "${ED}"/usr/share/doc/julia || die
131 - if [[ $(get_libdir) != lib ]]; then
132 - mkdir -p "${ED}"/usr/$(get_libdir) || die
133 - mv "${ED}"/usr/lib/julia "${ED}"/usr/$(get_libdir)/julia || die
134 - fi
135 }