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: Mon, 07 Jan 2019 21:38:57
Message-Id: 1546896930.c0cd790ea098aa3e787013d2cd7bb42af059ae81.tamiko@gentoo
1 commit: c0cd790ea098aa3e787013d2cd7bb42af059ae81
2 Author: Matthias Maier <tamiko <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jan 7 20:37:22 2019 +0000
4 Commit: Matthias Maier <tamiko <AT> gentoo <DOT> org>
5 CommitDate: Mon Jan 7 21:35:30 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c0cd790e
7
8 dev-lang/julia: drop old 0.6* and 0.7 versions
9
10 Package-Manager: Portage-2.3.54, Repoman-2.3.12
11 Signed-off-by: Matthias Maier <tamiko <AT> gentoo.org>
12
13 dev-lang/julia/Manifest | 3 -
14 .../julia/files/julia-0.6.3-fix_build_system.patch | 96 ----------
15 .../julia/files/julia-0.7.0-fix_build_system.patch | 86 ---------
16 dev-lang/julia/julia-0.6.3-r1.ebuild | 189 -------------------
17 dev-lang/julia/julia-0.7.0.ebuild | 201 ---------------------
18 5 files changed, 575 deletions(-)
19
20 diff --git a/dev-lang/julia/Manifest b/dev-lang/julia/Manifest
21 index 860188c463e..41854360be4 100644
22 --- a/dev-lang/julia/Manifest
23 +++ b/dev-lang/julia/Manifest
24 @@ -1,6 +1,3 @@
25 -DIST julia-0.6.3-bundled.tar.gz 2099258 BLAKE2B dea1f5d37477e0a612e3901d7d568e8c4b350496f9d2b344cd7e2c2043ae30b4dd26b567803a2cb96d1ec4dbe2ba514fb08b925c695589746691887334330dd2 SHA512 d04cd55ba0dde08f253db3a388cf5ebe87cec8ae321a5af4c1c92f2680aa6e6ef2ebfa771ec74f8f1ff96409e2c0645476acf577859e8718eac4a581f097639d
26 -DIST julia-0.6.3.tar.gz 5542642 BLAKE2B cccd1ee2eb4d9f59382a0d1f6466e77c84b0542456c405c05b718bc8a39ff537a09760a523ee572fc9eee6797158aa00010fc4c931a80deac645fb1e45061c87 SHA512 f529bb30a17989234061cf4c3d87aecc6da720eb494efaca7be4ec1ed5eda60d440896fb76a45b6cb30205030256e7de765e8944f873b31d96f7c9ecac542db8
27 -DIST julia-0.7.0.tar.gz 7547849 BLAKE2B 6721e980a5fd84f1a28838a91acdd95e8562dd971903e30776dfb90a6cc0ac1ffbedd22c2bfee45bd2fa616adead82680ebe30f9b86a1d968db2353233b32bc2 SHA512 296dbc71fe5238b0cbdc5c67f7002fbf05abea85dc4298784d74fbfef1c96890ab9cc1bbe874337c01f39ca08a6022f6abcde3a5e2ff1cdc25f2f7493ead1804
28 DIST julia-1.0.3.tar.gz 7460268 BLAKE2B d9d42e0235f249fa8c1ced12c659091b97d338ec4a4662ea13ea6a107cb59e90d8385c51962199e47dae5f9770156be2db2d8bb2e3cc8f42aa7403b4f4ca7f04 SHA512 b61399c7b7ffae828264a6ec916b409b2cbc6b3b98d9a6d39b60b014a97a1f1ad75e1ed4860d9ab15d1e5ffec691c04d1b797c238953290770b7313790ae3f1d
29 DIST julia-dsfmt-2.2.3.tar.gz 291773 BLAKE2B 6ffae90494d72527920c80fc0fb005da1c7b84f8a03a7ecb0789434c0fff97359e5098e85431896dffccc7d5148c414e847aaba5feef648b8788421a466ff65e SHA512 6d8ddcd01aab3f9039f4f0288a8af53e290cc2f293ed8c4a8c9f3b3f12398e7eedfce8016117b425766ba89c61c86c13b3e420035b5f9bf91315b8b814c03662
30 DIST julia-libuv-ed3700c849289ed01fe04273a7bf865340b2bd7e.tar.gz 1492695 BLAKE2B ad03512dd1db2c7066b46b5a3a314645b925481d8ace09ac0a0ae23cf5b8a64338ad457f8df229aa82f1d45605b5366883f563f2e22756ce28bb6fb7607d7124 SHA512 1305035b1372bdf234e3c5e673ee4c8ab5bda83ff06bc27704786def52667c3143fe587fca8f6e0855ba0c8b6d4dd90b2faefd33736224173f459d751885683e
31
32 diff --git a/dev-lang/julia/files/julia-0.6.3-fix_build_system.patch b/dev-lang/julia/files/julia-0.6.3-fix_build_system.patch
33 deleted file mode 100644
34 index 41e64672adf..00000000000
35 --- a/dev-lang/julia/files/julia-0.6.3-fix_build_system.patch
36 +++ /dev/null
37 @@ -1,96 +0,0 @@
38 -diff --git a/Make.inc b/Make.inc
39 -index 7f3a37c..3560d93 100644
40 ---- a/Make.inc
41 -+++ b/Make.inc
42 -@@ -180,7 +180,7 @@ USE_GPL_LIBS ?= 1
43 - # Directories where said libraries get installed to
44 - prefix ?= $(BUILDROOT)/julia-$(JULIA_COMMIT)
45 - bindir := $(prefix)/bin
46 --libdir := $(prefix)/lib
47 -+libdir := $(prefix)/GENTOOLIBDIR
48 - libexecdir := $(prefix)/libexec
49 - datarootdir := $(prefix)/share
50 - docdir := $(datarootdir)/doc/julia
51 -@@ -400,7 +400,7 @@ ifneq ($(OS), WINNT)
52 - JCXXFLAGS += -pedantic
53 - endif
54 - DEBUGFLAGS := -O0 -ggdb2 -DJL_DEBUG_BUILD -fstack-protector-all
55 --SHIPFLAGS := -O3 -ggdb2 -falign-functions
56 -+SHIPFLAGS := GENTOOCFLAGS
57 - endif
58 -
59 - ifeq ($(USECLANG),1)
60 -@@ -411,7 +411,7 @@ JCFLAGS := -pipe $(fPIC) -fno-strict-aliasing -D_FILE_OFFSET_BITS=64
61 - JCPPFLAGS := -fasynchronous-unwind-tables
62 - JCXXFLAGS := -pipe $(fPIC) -fno-rtti -pedantic
63 - DEBUGFLAGS := -O0 -g -DJL_DEBUG_BUILD -fstack-protector-all
64 --SHIPFLAGS := -O3 -g
65 -+SHIPFLAGS := GENTOOCFLAGS
66 - ifeq ($(OS), Darwin)
67 - ifeq ($(USE_LIBCPP), 1)
68 - MACOSX_VERSION_MIN := 10.8
69 -@@ -440,7 +440,7 @@ JCFLAGS := -std=gnu11 -pipe $(fPIC) -fno-strict-aliasing -D_FILE_OFFSET_BITS=64
70 - JCPPFLAGS :=
71 - JCXXFLAGS := -pipe $(fPIC) -fno-rtti
72 - DEBUGFLAGS := -O0 -g -DJL_DEBUG_BUILD -fstack-protector-all
73 --SHIPFLAGS := -O3 -g -falign-functions
74 -+SHIPFLAGS := GENTOOCFLAGS
75 - endif
76 -
77 - ifeq ($(USECCACHE), 1)
78 -diff --git a/deps/tools/jldownload b/deps/tools/jldownload
79 -index ab4fd69..e2c2408 100755
80 ---- a/deps/tools/jldownload
81 -+++ b/deps/tools/jldownload
82 -@@ -5,9 +5,9 @@
83 -
84 - CACHE_HOST=https://cache.julialang.org
85 -
86 --WGET=$(which wget 2>/dev/null)
87 --CURL=$(which curl 2>/dev/null)
88 --FETCH=$(which fetch 2>/dev/null)
89 -+WGET=/bin/true
90 -+CURL=/bin/true
91 -+FETCH=/bin/true
92 -
93 - TIMEOUT=15 # seconds
94 - WGET_OPTS="--no-check-certificate --tries=1 --timeout=$TIMEOUT"
95 -diff --git a/doc/Makefile b/doc/Makefile
96 -index 743804d..e06dde0 100644
97 ---- a/doc/Makefile
98 -+++ b/doc/Makefile
99 -@@ -25,7 +25,7 @@ deps: UnicodeData.txt
100 - $(JLCHECKSUM) UnicodeData.txt
101 -
102 - clean:
103 -- -rm -rf _build/* deps/* docbuild.log UnicodeData.txt
104 -+ @echo "Do not clean doc/_build/html. Just use it..."
105 -
106 - cleanall: clean
107 -
108 -diff --git a/src/Makefile b/src/Makefile
109 -index 9fde74d..e01ab2e 100644
110 ---- a/src/Makefile
111 -+++ b/src/Makefile
112 -@@ -85,20 +85,8 @@ PUBLIC_HEADER_TARGETS := $(addprefix $(build_includedir)/julia/,$(notdir $(PUBLI
113 -
114 - # In LLVM < 3.4, --ldflags includes both options and libraries, so use it both before and after --libs
115 - # In LLVM >= 3.4, --ldflags has only options, and --system-libs has the libraries.
116 --ifneq ($(USE_LLVM_SHLIB),1)
117 --LLVMLINK += $(shell $(LLVM_CONFIG_HOST) --ldflags) $(shell $(LLVM_CONFIG_HOST) --libs $(LLVM_LIBS)) $(shell $(LLVM_CONFIG_HOST) --ldflags) $(shell $(LLVM_CONFIG_HOST) --system-libs 2> /dev/null)
118 --else
119 --ifeq ($(LLVM_USE_CMAKE),1)
120 --LLVMLINK += $(shell $(LLVM_CONFIG_HOST) --ldflags) -lLLVM
121 --else
122 --ifeq ($(OS),WINNT)
123 --LLVMLINK += $(shell $(LLVM_CONFIG_HOST) --ldflags) -lLLVM-$(LLVM_VER_SHORT)
124 --else
125 --LLVMLINK += $(shell $(LLVM_CONFIG_HOST) --ldflags) -lLLVM-$(shell $(LLVM_CONFIG_HOST) --version)
126 --endif # OS == WINNT
127 --endif # LLVM_USE_CMAKE == 1
128 -+LLVMLINK = $(call exec,$(LLVM_CONFIG) --ldflags) $(call exec,$(LLVM_CONFIG) --libs) $(call exec,$(LLVM_CONFIG) --ldflags) $(call exec,$(LLVM_CONFIG) --system-libs)
129 - FLAGS += -DLLVM_SHLIB
130 --endif # USE_LLVM_SHLIB == 1
131 -
132 - COMMON_LIBS := -L$(build_shlibdir) -L$(build_libdir) $(LIBUV) $(LIBUTF8PROC) $(NO_WHOLE_ARCHIVE) $(LLVMLINK) $(OSLIBS)
133 - DEBUG_LIBS := $(WHOLE_ARCHIVE) $(BUILDDIR)/flisp/libflisp-debug.a $(WHOLE_ARCHIVE) $(BUILDDIR)/support/libsupport-debug.a $(COMMON_LIBS)
134
135 diff --git a/dev-lang/julia/files/julia-0.7.0-fix_build_system.patch b/dev-lang/julia/files/julia-0.7.0-fix_build_system.patch
136 deleted file mode 100644
137 index 028a2f7e08c..00000000000
138 --- a/dev-lang/julia/files/julia-0.7.0-fix_build_system.patch
139 +++ /dev/null
140 @@ -1,86 +0,0 @@
141 -diff --git a/Make.inc b/Make.inc
142 -index 8cb2c1014..d3be9de8e 100644
143 ---- a/Make.inc
144 -+++ b/Make.inc
145 -@@ -178,7 +178,7 @@ USE_GPL_LIBS ?= 1
146 - # Directories where said libraries get installed to
147 - prefix ?= $(BUILDROOT)/julia-$(JULIA_COMMIT)
148 - bindir := $(prefix)/bin
149 --libdir := $(prefix)/lib
150 -+libdir := $(prefix)/GENTOOLIBDIR
151 - libexecdir := $(prefix)/libexec
152 - datarootdir := $(prefix)/share
153 - docdir := $(datarootdir)/doc/julia
154 -@@ -410,7 +410,7 @@ ifneq ($(OS), WINNT)
155 - JCXXFLAGS += -pedantic
156 - endif
157 - DEBUGFLAGS := -O0 -ggdb2 -DJL_DEBUG_BUILD -fstack-protector-all
158 --SHIPFLAGS := -O3 -ggdb2 -falign-functions
159 -+SHIPFLAGS := GENTOOCFLAGS
160 - endif
161 -
162 - ifeq ($(USECLANG),1)
163 -@@ -421,7 +421,7 @@ JCFLAGS := -pipe $(fPIC) -fno-strict-aliasing -D_FILE_OFFSET_BITS=64
164 - JCPPFLAGS := -fasynchronous-unwind-tables
165 - JCXXFLAGS := -pipe $(fPIC) -fno-rtti -pedantic
166 - DEBUGFLAGS := -O0 -g -DJL_DEBUG_BUILD -fstack-protector-all
167 --SHIPFLAGS := -O3 -g
168 -+SHIPFLAGS := GENTOOCFLAGS
169 - ifeq ($(OS), Darwin)
170 - ifeq ($(USE_LIBCPP), 1)
171 - MACOSX_VERSION_MIN := 10.8
172 -@@ -450,7 +450,7 @@ JCFLAGS := -std=gnu11 -pipe $(fPIC) -fno-strict-aliasing -D_FILE_OFFSET_BITS=64
173 - JCPPFLAGS :=
174 - JCXXFLAGS := -pipe $(fPIC) -fno-rtti
175 - DEBUGFLAGS := -O0 -g -DJL_DEBUG_BUILD -fstack-protector-all
176 --SHIPFLAGS := -O3 -g -falign-functions
177 -+SHIPFLAGS := GENTOOCFLAGS
178 - endif
179 -
180 - ifeq ($(USECCACHE), 1)
181 -diff --git a/doc/Makefile b/doc/Makefile
182 -index 89b79880d..c3125fde1 100644
183 ---- a/doc/Makefile
184 -+++ b/doc/Makefile
185 -@@ -29,7 +29,7 @@ deps: UnicodeData.txt
186 - $(JLCHECKSUM) UnicodeData.txt
187 -
188 - clean:
189 -- -rm -rf _build/* deps/* docbuild.log UnicodeData.txt
190 -+ @echo "Do not clean doc/_build/html. Just use it..."
191 -
192 - cleanall: clean
193 -
194 -diff --git a/src/Makefile b/src/Makefile
195 -index 257152d24..240a4a350 100644
196 ---- a/src/Makefile
197 -+++ b/src/Makefile
198 -@@ -85,16 +85,7 @@ UV_HEADERS += uv/*.h
199 - endif
200 - PUBLIC_HEADER_TARGETS := $(addprefix $(build_includedir)/julia/,$(notdir $(PUBLIC_HEADERS)) $(UV_HEADERS))
201 -
202 --ifeq ($(JULIACODEGEN),LLVM)
203 --# In LLVM < 3.4, --ldflags includes both options and libraries, so use it both before and after --libs
204 --# In LLVM >= 3.4, --ldflags has only options, and --system-libs has the libraries.
205 --ifneq ($(USE_LLVM_SHLIB),1)
206 --LLVMLINK += $(shell $(LLVM_CONFIG_HOST) --ldflags) $(shell $(LLVM_CONFIG_HOST) --libs $(LLVM_LIBS)) $(shell $(LLVM_CONFIG_HOST) --ldflags) $(shell $(LLVM_CONFIG_HOST) --system-libs 2> /dev/null)
207 --else
208 --LLVMLINK += $(shell $(LLVM_CONFIG_HOST) --ldflags) -lLLVM
209 --FLAGS += -DLLVM_SHLIB
210 --endif # USE_LLVM_SHLIB == 1
211 --endif
212 -+LLVMLINK = $(call exec,$(LLVM_CONFIG) --ldflags) $(call exec,$(LLVM_CONFIG) --libs) $(call exec,$(LLVM_CONFIG) --ldflags) $(call exec,$(LLVM_CONFIG) --system-libs)
213 -
214 - COMMON_LIBS := -L$(build_shlibdir) -L$(build_libdir) $(LIBUV) $(LIBUTF8PROC) $(NO_WHOLE_ARCHIVE) $(LLVMLINK) $(OSLIBS)
215 - DEBUG_LIBS := $(WHOLE_ARCHIVE) $(BUILDDIR)/flisp/libflisp-debug.a $(WHOLE_ARCHIVE) $(BUILDDIR)/support/libsupport-debug.a $(COMMON_LIBS)
216 -
217 ---- a/base/Makefile 2018-08-10 23:56:13.825429621 -0400
218 -+++ b/base/Makefile 2018-08-10 23:43:29.461769645 -0400
219 -@@ -207,7 +207,6 @@
220 - ln -sf "$$REALPATH" "$@"
221 - ifneq ($(USE_SYSTEM_LLVM),0)
222 - ifneq ($(USE_LLVM_SHLIB),0)
223 --SYMLINK_SYSTEM_LIBRARIES += symlink_libLLVM
224 - endif
225 - endif
226 -
227
228 diff --git a/dev-lang/julia/julia-0.6.3-r1.ebuild b/dev-lang/julia/julia-0.6.3-r1.ebuild
229 deleted file mode 100644
230 index a473e066f88..00000000000
231 --- a/dev-lang/julia/julia-0.6.3-r1.ebuild
232 +++ /dev/null
233 @@ -1,189 +0,0 @@
234 -# Copyright 1999-2018 Gentoo Foundation
235 -# Distributed under the terms of the GNU General Public License v2
236 -
237 -EAPI=6
238 -
239 -RESTRICT="test"
240 -
241 -inherit llvm pax-utils toolchain-funcs
242 -
243 -DESCRIPTION="High-performance programming language for technical computing"
244 -HOMEPAGE="https://julialang.org/"
245 -SRC_URI="
246 - https://github.com/JuliaLang/${PN}/releases/download/v${PV}/${P}.tar.gz
247 - https://dev.gentoo.org/~tamiko/distfiles/${P}-bundled.tar.gz
248 -"
249 -
250 -S="${WORKDIR}/julia"
251 -
252 -LICENSE="MIT"
253 -SLOT="0"
254 -KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
255 -IUSE=""
256 -
257 -# julia 0.6* is compatible with llvm-4
258 -RDEPEND="
259 - sys-devel/llvm:4=
260 - sys-devel/clang:4="
261 -LLVM_MAX_SLOT=4
262 -
263 -RDEPEND+="
264 - dev-libs/double-conversion:0=
265 - dev-libs/gmp:0=
266 - dev-libs/libgit2:0=
267 - >=dev-libs/libpcre2-10.23:0=[jit]
268 - dev-libs/mpfr:0=
269 - dev-libs/openspecfun
270 - sci-libs/amd:0=
271 - sci-libs/arpack:0=
272 - sci-libs/camd:0=
273 - sci-libs/ccolamd:0=
274 - sci-libs/cholmod:0=
275 - sci-libs/colamd:0=
276 - sci-libs/fftw:3.0=[threads]
277 - sci-libs/openlibm:0=
278 - sci-libs/spqr:0=
279 - sci-libs/umfpack:0=
280 - sci-mathematics/glpk:0=
281 - >=sys-libs/libunwind-1.1:7=
282 - sys-libs/readline:0=
283 - sys-libs/zlib:0=
284 - >=virtual/blas-3.6
285 - virtual/lapack"
286 -
287 -DEPEND="${RDEPEND}
288 - dev-vcs/git
289 - dev-util/patchelf
290 - virtual/pkgconfig"
291 -
292 -PATCHES=(
293 - "${FILESDIR}"/${PN}-0.6.3-fix_build_system.patch
294 -)
295 -
296 -src_prepare() {
297 - mv "${WORKDIR}"/bundled/UnicodeData.txt doc || die
298 - mkdir deps/srccache || die
299 - mv "${WORKDIR}"/bundled/* deps/srccache || die
300 - rmdir "${WORKDIR}"/bundled || die
301 -
302 - default
303 -
304 - # Sledgehammer:
305 - # - prevent fetching of bundled stuff in compile and install phase
306 - # - respect CFLAGS
307 - # - respect EPREFIX and Gentoo specific paths
308 - # - fix BLAS and LAPACK link interface
309 -
310 - sed -i \
311 - -e 's|git submodule|${EPREFIX}/bin/true|g' \
312 - -e "s|GENTOOCFLAGS|${CFLAGS}|g" \
313 - -e "s|/usr/include|${EPREFIX%/}/usr/include|g" \
314 - deps/Makefile || die
315 -
316 - local libblas="$($(tc-getPKG_CONFIG) --libs-only-l blas)"
317 - libblas="${libblas%% *}"
318 - libblas="lib${libblas#-l}"
319 - local liblapack="$($(tc-getPKG_CONFIG) --libs-only-l lapack)"
320 - liblapack="${liblapack%% *}"
321 - liblapack="lib${liblapack#-l}"
322 -
323 - sed -i \
324 - -e "s|GENTOOCFLAGS|${CFLAGS}|g" \
325 - -e "s|GENTOOLIBDIR|$(get_libdir)|" \
326 - -e "s|^JULIA_COMMIT = .*|JULIA_COMMIT = v${PV}|" \
327 - -e "s|-lblas|$($(tc-getPKG_CONFIG) --libs blas)|" \
328 - -e "s|= libblas|= ${libblas}|" \
329 - -e "s|-llapack|$($(tc-getPKG_CONFIG) --libs lapack)|" \
330 - -e "s|= liblapack|= ${liblapack}|" \
331 - Make.inc || die
332 -
333 - sed -i \
334 - -e "s|,lib)|,$(get_libdir))|g" \
335 - -e "s|\$(BUILD)/lib|\$(BUILD)/$(get_libdir)|g" \
336 - Makefile || die
337 -
338 - sed -i \
339 - -e "s|ar -rcs|$(tc-getAR) -rcs|g" \
340 - src/Makefile || die
341 -
342 - # disable doc install starting git fetching
343 - sed -i -e 's~install: $(build_depsbindir)/stringreplace $(BUILDROOT)/doc/_build/html/en/index.html~install: $(build_depsbindir)/stringreplace~' Makefile || die
344 -}
345 -
346 -src_configure() {
347 - # julia does not play well with the system versions of dsfmt, libuv,
348 - # and utf8proc
349 -
350 - # USE_SYSTEM_LIBM=0 implies using external openlibm
351 - cat <<-EOF > Make.user
352 - USE_SYSTEM_DSFMT=0
353 - USE_SYSTEM_LIBUV=0
354 - USE_SYSTEM_PCRE=1
355 - USE_SYSTEM_RMATH=0
356 - USE_SYSTEM_UTF8PROC=0
357 - USE_LLVM_SHLIB=1
358 - USE_SYSTEM_ARPACK=1
359 - USE_SYSTEM_BLAS=1
360 - USE_SYSTEM_FFTW=1
361 - USE_SYSTEM_GMP=1
362 - USE_SYSTEM_GRISU=1
363 - USE_SYSTEM_LAPACK=1
364 - USE_SYSTEM_LIBGIT2=1
365 - USE_SYSTEM_LIBM=0
366 - USE_SYSTEM_LIBUNWIND=1
367 - USE_SYSTEM_LLVM=1
368 - USE_SYSTEM_MPFR=1
369 - USE_SYSTEM_OPENLIBM=1
370 - USE_SYSTEM_OPENSPECFUN=1
371 - USE_SYSTEM_PATCHELF=1
372 - USE_SYSTEM_READLINE=1
373 - USE_SYSTEM_SUITESPARSE=1
374 - USE_SYSTEM_ZLIB=1
375 - VERBOSE=1
376 - libdir="${EROOT}/usr/$(get_libdir)"
377 - EOF
378 -
379 -}
380 -
381 -src_compile() {
382 -
383 - # Julia accesses /proc/self/mem on Linux
384 - addpredict /proc/self/mem
385 -
386 - emake cleanall
387 - emake VERBOSE=1 julia-release \
388 - prefix="${EPREFIX}/usr" DESTDIR="${D}" \
389 - CC="$(tc-getCC)" CXX="$(tc-getCXX)"
390 - pax-mark m $(file usr/bin/julia-* | awk -F : '/ELF/ {print $1}')
391 - emake
392 -}
393 -
394 -src_test() {
395 - emake test
396 -}
397 -
398 -src_install() {
399 - # Julia is special. It tries to find a valid git repository (that would
400 - # normally be cloned during compilation/installation). Just make it
401 - # happy...
402 - git init && \
403 - git config --local user.email "whatyoudoing@×××××××.com" && \
404 - git config --local user.name "Whyyyyyy" && \
405 - git commit -a --allow-empty -m "initial" || die "git failed"
406 -
407 - emake install \
408 - prefix="${EPREFIX}/usr" DESTDIR="${D}" \
409 - CC="$(tc-getCC)" CXX="$(tc-getCXX)"
410 - cat > 99julia <<-EOF
411 - LDPATH=${EROOT%/}/usr/$(get_libdir)/julia
412 - EOF
413 - doenvd 99julia
414 -
415 - dodoc README.md
416 -
417 - mv "${ED}"/usr/etc/julia "${ED}"/etc || die
418 - rmdir "${ED}"/usr/etc || die
419 - mv "${ED}"/usr/share/doc/julia/{examples,html} \
420 - "${ED}"/usr/share/doc/${PF} || die
421 - rmdir "${ED}"/usr/share/doc/julia || die
422 -}
423
424 diff --git a/dev-lang/julia/julia-0.7.0.ebuild b/dev-lang/julia/julia-0.7.0.ebuild
425 deleted file mode 100644
426 index f7b451ce750..00000000000
427 --- a/dev-lang/julia/julia-0.7.0.ebuild
428 +++ /dev/null
429 @@ -1,201 +0,0 @@
430 -# Copyright 1999-2018 Gentoo Foundation
431 -# Distributed under the terms of the GNU General Public License v2
432 -
433 -EAPI=6
434 -
435 -RESTRICT="test"
436 -
437 -inherit llvm pax-utils toolchain-funcs
438 -
439 -MY_LIBUV_V="ed3700c849289ed01fe04273a7bf865340b2bd7e"
440 -MY_UTF8PROC_V="97ef668b312b96382714dbb8eaac4affce0816e6"
441 -MY_LIBWHICH_V="81e9723c0273d78493dc8c8ed570f68d9ce7e89e"
442 -MY_DSFMT_V="2.2.3"
443 -
444 -DESCRIPTION="High-performance programming language for technical computing"
445 -HOMEPAGE="https://julialang.org/"
446 -SRC_URI="
447 - https://github.com/JuliaLang/${PN}/releases/download/v${PV}/${P}.tar.gz
448 - https://api.github.com/repos/JuliaLang/libuv/tarball/${MY_LIBUV_V} -> ${PN}-libuv-${MY_LIBUV_V}.tar.gz
449 - https://api.github.com/repos/JuliaLang/utf8proc/tarball/${MY_UTF8PROC_V} -> ${PN}-utf8proc-${MY_UTF8PROC_V}.tar.gz
450 - https://api.github.com/repos/vtjnash/libwhich/tarball/${MY_LIBWHICH_V} -> ${PN}-libwhich-${MY_LIBWHICH_V}.tar.gz
451 - http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/SFMT/dSFMT-src-${MY_DSFMT_V}.tar.gz -> ${PN}-dsfmt-${MY_DSFMT_V}.tar.gz
452 -"
453 -
454 -S="${WORKDIR}/${PN}"
455 -
456 -LICENSE="MIT"
457 -SLOT="0"
458 -KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
459 -IUSE=""
460 -
461 -# julia 0.7* needs a patched llvm-6
462 -RDEPEND="
463 - =sys-devel/llvm-6*:=
464 - =sys-devel/clang-6*:="
465 -LLVM_MAX_SLOT=6
466 -
467 -RDEPEND+="
468 - dev-libs/double-conversion:0=
469 - dev-libs/gmp:0=
470 - dev-libs/libgit2:0=
471 - >=dev-libs/libpcre2-10.23:0=[jit]
472 - dev-libs/mpfr:0=
473 - dev-libs/openspecfun
474 - sci-libs/amd:0=
475 - sci-libs/arpack:0=
476 - sci-libs/camd:0=
477 - sci-libs/ccolamd:0=
478 - sci-libs/cholmod:0=
479 - sci-libs/colamd:0=
480 - sci-libs/fftw:3.0=[threads]
481 - sci-libs/openlibm:0=
482 - sci-libs/spqr:0=
483 - sci-libs/umfpack:0=
484 - sci-mathematics/glpk:0=
485 - >=sys-libs/libunwind-1.1:7=
486 - sys-libs/readline:0=
487 - sys-libs/zlib:0=
488 - >=virtual/blas-3.6
489 - virtual/lapack"
490 -
491 -DEPEND="${RDEPEND}
492 - dev-vcs/git
493 - dev-util/patchelf
494 - virtual/pkgconfig"
495 -
496 -PATCHES=(
497 - "${FILESDIR}"/${PN}-1.0.0-fix_build_system.patch
498 -)
499 -
500 -src_unpack() {
501 - tounpack=(${A})
502 - # the main source tree, followed by deps
503 - unpack "${A/%\ */}"
504 -
505 - mkdir -p "${S}/deps/srccache/"
506 - for i in "${tounpack[@]:1}"; do
507 - cp "${DISTDIR}/${i}" "${S}/deps/srccache/${i#julia-}" || die
508 - done
509 -}
510 -
511 -src_prepare() {
512 - default
513 -
514 - # Sledgehammer:
515 - # - prevent fetching of bundled stuff in compile and install phase
516 - # - respect CFLAGS
517 - # - respect EPREFIX and Gentoo specific paths
518 - # - fix BLAS and LAPACK link interface
519 -
520 - sed -i \
521 - -e 's|git submodule|${EPREFIX}/bin/true|g' \
522 - -e "s|GENTOOCFLAGS|${CFLAGS}|g" \
523 - -e "s|/usr/include|${EPREFIX%/}/usr/include|g" \
524 - deps/Makefile || die
525 -
526 - local libblas="$($(tc-getPKG_CONFIG) --libs-only-l blas)"
527 - libblas="${libblas%% *}"
528 - libblas="lib${libblas#-l}"
529 - local liblapack="$($(tc-getPKG_CONFIG) --libs-only-l lapack)"
530 - liblapack="${liblapack%% *}"
531 - liblapack="lib${liblapack#-l}"
532 -
533 - sed -i \
534 - -e "s|GENTOOCFLAGS|${CFLAGS}|g" \
535 - -e "s|GENTOOLIBDIR|$(get_libdir)|" \
536 - -e "s|^JULIA_COMMIT = .*|JULIA_COMMIT = v${PV}|" \
537 - -e "s|-lblas|$($(tc-getPKG_CONFIG) --libs blas)|" \
538 - -e "s|= libblas|= ${libblas}|" \
539 - -e "s|-llapack|$($(tc-getPKG_CONFIG) --libs lapack)|" \
540 - -e "s|= liblapack|= ${liblapack}|" \
541 - Make.inc || die
542 -
543 - sed -i \
544 - -e "s|,lib)|,$(get_libdir))|g" \
545 - -e "s|\$(BUILD)/lib|\$(BUILD)/$(get_libdir)|g" \
546 - Makefile || die
547 -
548 - sed -i \
549 - -e "s|ar -rcs|$(tc-getAR) -rcs|g" \
550 - src/Makefile || die
551 -
552 - # disable doc install starting git fetching
553 - sed -i -e 's~install: $(build_depsbindir)/stringreplace $(BUILDROOT)/doc/_build/html/en/index.html~install: $(build_depsbindir)/stringreplace~' Makefile || die
554 -}
555 -
556 -src_configure() {
557 - # julia does not play well with the system versions of dsfmt, libuv,
558 - # and utf8proc
559 -
560 - # USE_SYSTEM_LIBM=0 implies using external openlibm
561 - cat <<-EOF > Make.user
562 - USE_SYSTEM_ARPACK:=1
563 - USE_SYSTEM_BLAS:=1
564 - USE_SYSTEM_DSFMT:=0
565 - USE_SYSTEM_GMP:=1
566 - USE_SYSTEM_GRISU:=1
567 - USE_SYSTEM_LAPACK:=1
568 - USE_SYSTEM_LIBGIT2:=1
569 - USE_SYSTEM_LIBM:=0
570 - USE_SYSTEM_LIBUNWIND:=1
571 - USE_SYSTEM_LIBUV:=0
572 - USE_SYSTEM_LLVM:=1
573 - USE_LLVM_SHLIB:=1
574 - USE_SYSTEM_MPFR:=1
575 - USE_SYSTEM_OPENLIBM:=1
576 - USE_SYSTEM_OPENSPECFUN:=1
577 - USE_SYSTEM_PATCHELF:=1
578 - USE_SYSTEM_PCRE:=1
579 - USE_SYSTEM_READLINE:=1
580 - USE_SYSTEM_RMATH:=0
581 - USE_SYSTEM_SUITESPARSE:=1
582 - USE_SYSTEM_UTF8PROC:=0
583 - USE_SYSTEM_ZLIB=1
584 - VERBOSE=1
585 - libdir="${EROOT}/usr/$(get_libdir)"
586 - EOF
587 -
588 -}
589 -
590 -src_compile() {
591 -
592 - # Julia accesses /proc/self/mem on Linux
593 - addpredict /proc/self/mem
594 -
595 - emake cleanall
596 - emake julia-release \
597 - prefix="${EPREFIX}/usr" DESTDIR="${D}" \
598 - CC="$(tc-getCC)" CXX="$(tc-getCXX)"
599 - pax-mark m $(file usr/bin/julia-* | awk -F : '/ELF/ {print $1}')
600 - emake
601 -}
602 -
603 -src_test() {
604 - emake test
605 -}
606 -
607 -src_install() {
608 - # Julia is special. It tries to find a valid git repository (that would
609 - # normally be cloned during compilation/installation). Just make it
610 - # happy...
611 - git init && \
612 - git config --local user.email "whatyoudoing@×××××××.com" && \
613 - git config --local user.name "Whyyyyyy" && \
614 - git commit -a --allow-empty -m "initial" || die "git failed"
615 -
616 - emake install \
617 - prefix="${EPREFIX}/usr" DESTDIR="${D}" \
618 - CC="$(tc-getCC)" CXX="$(tc-getCXX)"
619 - cat > 99julia <<-EOF
620 - LDPATH=${EROOT%/}/usr/$(get_libdir)/julia
621 - EOF
622 - doenvd 99julia
623 -
624 - dodoc README.md
625 -
626 - mv "${ED}"/usr/etc/julia "${ED}"/etc || die
627 - rmdir "${ED}"/usr/etc || die
628 - mv "${ED}"/usr/share/doc/julia/html "${ED}"/usr/share/doc/${PF} || die
629 - rmdir "${ED}"/usr/share/doc/julia || die
630 -}