1 |
commit: 855cb7bc4846fe4df3d95a57d116a545201bcc35 |
2 |
Author: Matthias Maier <tamiko <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Nov 28 11:02:34 2017 +0000 |
4 |
Commit: Matthias Maier <tamiko <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Nov 28 11:06:06 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=855cb7bc |
7 |
|
8 |
dev-lang/julia: drop old |
9 |
|
10 |
Package-Manager: Portage-2.3.16, Repoman-2.3.6 |
11 |
|
12 |
dev-lang/julia/Manifest | 4 - |
13 |
.../julia/files/julia-0.5.0-fix_build_system.patch | 85 --------- |
14 |
dev-lang/julia/julia-0.5.0-r3.ebuild | 188 -------------------- |
15 |
dev-lang/julia/julia-0.6.0-r1.ebuild | 190 --------------------- |
16 |
4 files changed, 467 deletions(-) |
17 |
|
18 |
diff --git a/dev-lang/julia/Manifest b/dev-lang/julia/Manifest |
19 |
index 7e2f9eb9086..c36ac90133e 100644 |
20 |
--- a/dev-lang/julia/Manifest |
21 |
+++ b/dev-lang/julia/Manifest |
22 |
@@ -1,6 +1,2 @@ |
23 |
-DIST julia-0.5.0-bundled.tar.gz 3461547 SHA256 3f4887fc2c0112666eb28b99f86bd8f7bd50615325e03135c546127885d46fbf SHA512 f8df589edf7d6b0e1e6553583c81d26fd256a79cacd79fbdd0ea1a9eea46b2466e3cbf055b5b7aa2d5c08318a5c35b9c09a30ac46a48689cc5c7245954b615c8 WHIRLPOOL b0137b2ed55aef7dc2c1a8693043ce63305bd2bbb5c2f959b2752fdb68189a506b027b467bfc0bb443fa4202f3735dd9410a257adec08302dfcaa0c9e4bfed98 |
24 |
-DIST julia-0.5.0.tar.gz 6326490 SHA256 bb62a14806e58f079ecd4941d4a18d1f1c1d89ab33c826d3a58a2244e364112e SHA512 6d76c5050da5050cd541c8407c35c8ecd60ad2ba61c4defcc5c084aaeb09e82ffed09be79a3453000bdf88efe56039948335bab21c8389389ffb8b29806568de WHIRLPOOL 7f0066cc7fa912fe7ce5b6bf43449d828b0b9dcf2ab57df6c13a0df17ee53351c6deb30e7b998dc00ff53c548074d79ed6288bc79507afebc4fd827b3e3c032f |
25 |
-DIST julia-0.6.0-bundled.tar.gz 2097663 BLAKE2B 4f16b636e10cbaf9ebd8394d0341c16d7cd7244b6e1467f264150cee64dd8f33aba7381670b7f66f822dd06eaa55d18b0ed04b38931a1943a8212275c1854c26 SHA512 50581da3628930b2d1b89d226f3551fa7b18ca23c322b7e93d1227cc0c3428f255a6087f9859ff2c592014407d53238e01a3847a727a87287fb8c7f679b022d1 |
26 |
-DIST julia-0.6.0.tar.gz 5565427 BLAKE2B e48b06d38b5332a7949421d248ccd47f8818630197c29604ee1b3ce404e652b4fa8fb8f720abd3b9470a8b9c3e22e10f35a987aed6924f98122e4ee838817af0 SHA512 da21b35eb2c682c0fb8720974a76759c51fe993f10e6af5ca4864fc7f0bb6c90d880b706eb798476c7228bae2db19ff0825add6a2abde2961f16a93a3050cb69 |
27 |
DIST julia-0.6.1-bundled.tar.gz 2097663 BLAKE2B 4f16b636e10cbaf9ebd8394d0341c16d7cd7244b6e1467f264150cee64dd8f33aba7381670b7f66f822dd06eaa55d18b0ed04b38931a1943a8212275c1854c26 SHA512 50581da3628930b2d1b89d226f3551fa7b18ca23c322b7e93d1227cc0c3428f255a6087f9859ff2c592014407d53238e01a3847a727a87287fb8c7f679b022d1 |
28 |
DIST julia-0.6.1.tar.gz 5587691 BLAKE2B b230e717bf4a4f63319883b87bae5b51a2dd2d0be61ffc15eb89304fe6394df67416ed11d40f258a13d7f3ce4272452cfbe1bd482c368d70cb0d3eea9512d8f9 SHA512 8e7b14e8bba1eae1d2a7f43a114dc42e1870d2e692d8892a09475f48839c9b596eb8aaa24b111d3bac6836282a4d7ab64d10c4481c8193f1574cabcf2541db6e |
29 |
|
30 |
diff --git a/dev-lang/julia/files/julia-0.5.0-fix_build_system.patch b/dev-lang/julia/files/julia-0.5.0-fix_build_system.patch |
31 |
deleted file mode 100644 |
32 |
index e54b9a48fbb..00000000000 |
33 |
--- a/dev-lang/julia/files/julia-0.5.0-fix_build_system.patch |
34 |
+++ /dev/null |
35 |
@@ -1,85 +0,0 @@ |
36 |
-diff --git a/Make.inc b/Make.inc |
37 |
-index 651c9df..ff01872 100644 |
38 |
---- a/Make.inc |
39 |
-+++ b/Make.inc |
40 |
-@@ -389,7 +389,7 @@ ifneq ($(OS), WINNT) |
41 |
- JCXXFLAGS += -pedantic |
42 |
- endif |
43 |
- DEBUGFLAGS := -O0 -ggdb2 -DJL_DEBUG_BUILD -fstack-protector-all |
44 |
--SHIPFLAGS := -O3 -ggdb2 -falign-functions |
45 |
-+SHIPFLAGS := GENTOOCFLAGS |
46 |
- endif |
47 |
- |
48 |
- ifeq ($(USECLANG),1) |
49 |
-@@ -400,7 +400,7 @@ JCFLAGS := -pipe $(fPIC) -fno-strict-aliasing -D_FILE_OFFSET_BITS=64 |
50 |
- JCPPFLAGS := -fasynchronous-unwind-tables |
51 |
- JCXXFLAGS := -pipe $(fPIC) -fno-rtti -pedantic |
52 |
- DEBUGFLAGS := -O0 -g -DJL_DEBUG_BUILD -fstack-protector-all |
53 |
--SHIPFLAGS := -O3 -g |
54 |
-+SHIPFLAGS := GENTOOCFLAGS |
55 |
- ifeq ($(OS), Darwin) |
56 |
- ifeq ($(USE_LIBCPP), 1) |
57 |
- CC += -stdlib=libc++ -mmacosx-version-min=10.7 |
58 |
-@@ -427,7 +427,7 @@ JCFLAGS := -std=gnu11 -pipe $(fPIC) -fno-strict-aliasing -D_FILE_OFFSET_BITS=64 |
59 |
- JCPPFLAGS := |
60 |
- JCXXFLAGS := -pipe $(fPIC) -fno-rtti |
61 |
- DEBUGFLAGS := -O0 -g -DJL_DEBUG_BUILD -fstack-protector-all |
62 |
--SHIPFLAGS := -O3 -g -falign-functions |
63 |
-+SHIPFLAGS := GENTOOCFLAGS |
64 |
- endif |
65 |
- |
66 |
- ifeq ($(USECCACHE), 1) |
67 |
-diff --git a/doc/Makefile b/doc/Makefile |
68 |
-index 0749d73..f4d49ec 100644 |
69 |
---- a/doc/Makefile |
70 |
-+++ b/doc/Makefile |
71 |
-@@ -62,7 +62,7 @@ help: |
72 |
- @echo " doctest to run all doctests embedded in the documentation (if enabled)" |
73 |
- |
74 |
- clean: |
75 |
-- -rm -rf _build/* |
76 |
-+ @echo "Do not clean doc/_build/html. Just use it..." |
77 |
- |
78 |
- cleanall: clean |
79 |
- |
80 |
-diff --git a/src/Makefile b/src/Makefile |
81 |
-index d7ec864..61d2470 100644 |
82 |
---- a/src/Makefile |
83 |
-+++ b/src/Makefile |
84 |
-@@ -66,20 +66,8 @@ HEADERS := $(addprefix $(SRCDIR)/,julia.h julia_threads.h julia_internal.h optio |
85 |
- |
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 |
--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) |
90 |
--else |
91 |
--ifeq ($(LLVM_USE_CMAKE),1) |
92 |
--LLVMLINK += $(shell $(LLVM_CONFIG_HOST) --ldflags) -lLLVM |
93 |
--else |
94 |
--ifeq ($(OS),WINNT) |
95 |
--LLVMLINK += $(shell $(LLVM_CONFIG_HOST) --ldflags) -lLLVM-$(LLVM_VER_SHORT) |
96 |
--else |
97 |
--LLVMLINK += $(shell $(LLVM_CONFIG_HOST) --ldflags) -lLLVM-$(shell $(LLVM_CONFIG_HOST) --version) |
98 |
--endif # OS == WINNT |
99 |
--endif # LLVM_USE_CMAKE == 1 |
100 |
-+LLVMLINK = $(call exec,$(LLVM_CONFIG) --ldflags) $(call exec,$(LLVM_CONFIG) --libs) $(call exec,$(LLVM_CONFIG) --ldflags) $(call exec,$(LLVM_CONFIG) --system-libs) |
101 |
- FLAGS += -DLLVM_SHLIB |
102 |
--endif # USE_LLVM_SHLIB == 1 |
103 |
- |
104 |
- COMMON_LIBS := -L$(build_shlibdir) -L$(build_libdir) $(LIBUV) $(LIBUTF8PROC) $(NO_WHOLE_ARCHIVE) $(LLVMLINK) $(OSLIBS) |
105 |
- DEBUG_LIBS := $(WHOLE_ARCHIVE) $(BUILDDIR)/flisp/libflisp-debug.a $(WHOLE_ARCHIVE) $(BUILDDIR)/support/libsupport-debug.a $(COMMON_LIBS) |
106 |
---- a/deps/tools/jldownload |
107 |
-+++ b/deps/tools/jldownload |
108 |
-@@ -5,9 +5,9 @@ |
109 |
- |
110 |
- CACHE_HOST=https://cache.julialang.org |
111 |
- |
112 |
--WGET=$(which wget 2>/dev/null) |
113 |
--CURL=$(which curl 2>/dev/null) |
114 |
--FETCH=$(which fetch 2>/dev/null) |
115 |
-+WGET=/bin/true |
116 |
-+CURL=/bin/true |
117 |
-+FETCH=/bin/true |
118 |
- |
119 |
- TIMEOUT=15 # seconds |
120 |
- WGET_OPTS="--no-check-certificate --tries=1 --timeout=$TIMEOUT" |
121 |
|
122 |
diff --git a/dev-lang/julia/julia-0.5.0-r3.ebuild b/dev-lang/julia/julia-0.5.0-r3.ebuild |
123 |
deleted file mode 100644 |
124 |
index 4c4fc298ecf..00000000000 |
125 |
--- a/dev-lang/julia/julia-0.5.0-r3.ebuild |
126 |
+++ /dev/null |
127 |
@@ -1,188 +0,0 @@ |
128 |
-# Copyright 1999-2017 Gentoo Foundation |
129 |
-# Distributed under the terms of the GNU General Public License v2 |
130 |
- |
131 |
-EAPI=6 |
132 |
- |
133 |
-RESTRICT="test" |
134 |
- |
135 |
-inherit elisp-common eutils multilib pax-utils toolchain-funcs |
136 |
- |
137 |
-DESCRIPTION="High-performance programming language for technical computing" |
138 |
-HOMEPAGE="https://julialang.org/" |
139 |
-SRC_URI=" |
140 |
- https://github.com/JuliaLang/${PN}/releases/download/v${PV}/${P}.tar.gz |
141 |
- https://dev.gentoo.org/~tamiko/distfiles/${P}-bundled.tar.gz |
142 |
-" |
143 |
- |
144 |
-LICENSE="MIT" |
145 |
-SLOT="0" |
146 |
-KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" |
147 |
-IUSE="emacs" |
148 |
- |
149 |
-RDEPEND=" |
150 |
- dev-lang/R:0= |
151 |
- dev-libs/double-conversion:0= |
152 |
- dev-libs/gmp:0= |
153 |
- <dev-libs/libgit2-0.25:0= |
154 |
- dev-libs/mpfr:0= |
155 |
- dev-libs/openspecfun |
156 |
- sci-libs/arpack:0= |
157 |
- sci-libs/camd:0= |
158 |
- sci-libs/cholmod:0= |
159 |
- sci-libs/fftw:3.0=[threads] |
160 |
- sci-libs/openlibm:0= |
161 |
- sci-libs/spqr:0= |
162 |
- sci-libs/umfpack:0= |
163 |
- sci-mathematics/glpk:0= |
164 |
- >=sys-devel/llvm-3.9:0= |
165 |
- >=sys-libs/libunwind-1.1:7= |
166 |
- sys-libs/readline:0= |
167 |
- sys-libs/zlib:0= |
168 |
- >=virtual/blas-3.6 |
169 |
- virtual/lapack |
170 |
- emacs? ( app-emacs/ess )" |
171 |
- |
172 |
-DEPEND="${RDEPEND} |
173 |
- dev-util/patchelf |
174 |
- virtual/pkgconfig" |
175 |
- |
176 |
-PATCHES=( |
177 |
- "${FILESDIR}"/${PN}-0.5.0-fix_build_system.patch |
178 |
-) |
179 |
- |
180 |
-src_prepare() { |
181 |
- mkdir deps/srccache || die |
182 |
- mv "${WORKDIR}"/bundled/* deps/srccache || die |
183 |
- rmdir "${WORKDIR}"/bundled || die |
184 |
- |
185 |
- epatch "${PATCHES[@]}" |
186 |
- |
187 |
- eapply_user |
188 |
- |
189 |
- # Sledgehammer: |
190 |
- # - prevent fetching of bundled stuff in compile and install phase |
191 |
- # - respect CFLAGS |
192 |
- # - respect EPREFIX and Gentoo specific paths |
193 |
- # - fix BLAS and LAPACK link interface |
194 |
- |
195 |
- sed -i \ |
196 |
- -e 's|$(JLDOWNLOAD)|${EPREFIX}/bin/true|' \ |
197 |
- -e 's|git submodule|${EPREFIX}/bin/true|g' \ |
198 |
- -e "s|GENTOOCFLAGS|${CFLAGS}|g" \ |
199 |
- -e "s|/usr/include|${EPREFIX%/}/usr/include|g" \ |
200 |
- deps/Makefile || die |
201 |
- |
202 |
- local libblas="$($(tc-getPKG_CONFIG) --libs-only-l blas)" |
203 |
- libblas="${libblas%% *}" |
204 |
- libblas="lib${libblas#-l}" |
205 |
- local liblapack="$($(tc-getPKG_CONFIG) --libs-only-l lapack)" |
206 |
- liblapack="${liblapack%% *}" |
207 |
- liblapack="lib${liblapack#-l}" |
208 |
- |
209 |
- sed -i \ |
210 |
- -e "s|\(JULIA_EXECUTABLE = \)\(\$(JULIAHOME)/julia\)|\1 LD_LIBRARY_PATH=\$(BUILD)/$(get_libdir) \2|" \ |
211 |
- -e "s|GENTOOCFLAGS|${CFLAGS}|g" \ |
212 |
- -e "s|LIBDIR = lib|LIBDIR = $(get_libdir)|" \ |
213 |
- -e "s|/usr/lib|${EPREFIX}/usr/$(get_libdir)|" \ |
214 |
- -e "s|/usr/include|${EPREFIX}/usr/include|" \ |
215 |
- -e "s|\$(BUILD)/lib|\$(BUILD)/$(get_libdir)|" \ |
216 |
- -e "s|^JULIA_COMMIT = .*|JULIA_COMMIT = v${PV}|" \ |
217 |
- -e "s|-lblas|$($(tc-getPKG_CONFIG) --libs blas)|" \ |
218 |
- -e "s|= libblas|= ${libblas}|" \ |
219 |
- -e "s|-llapack|$($(tc-getPKG_CONFIG) --libs lapack)|" \ |
220 |
- -e "s|= liblapack|= ${liblapack}|" \ |
221 |
- Make.inc || die |
222 |
- |
223 |
- sed -i \ |
224 |
- -e "s|,lib)|,$(get_libdir))|g" \ |
225 |
- -e "s|\$(BUILD)/lib|\$(BUILD)/$(get_libdir)|g" \ |
226 |
- Makefile || die |
227 |
- |
228 |
- sed -i \ |
229 |
- -e "s|ar -rcs|$(tc-getAR) -rcs|g" \ |
230 |
- src/Makefile || die |
231 |
-} |
232 |
- |
233 |
-src_configure() { |
234 |
- # julia does not play well with the system versions of |
235 |
- # dsfmt, libuv, pcre2 and utf8proc |
236 |
- cat <<-EOF > Make.user |
237 |
- USE_SYSTEM_DSFMT=0 |
238 |
- USE_SYSTEM_LIBUV=0 |
239 |
- USE_SYSTEM_PCRE=0 |
240 |
- USE_SYSTEM_RMATH=0 |
241 |
- USE_SYSTEM_UTF8PROC=0 |
242 |
- USE_LLVM_SHLIB=1 |
243 |
- USE_SYSTEM_ARPACK=1 |
244 |
- USE_SYSTEM_BLAS=1 |
245 |
- USE_SYSTEM_FFTW=1 |
246 |
- USE_SYSTEM_GMP=1 |
247 |
- USE_SYSTEM_GRISU=1 |
248 |
- USE_SYSTEM_LAPACK=1 |
249 |
- USE_SYSTEM_LIBGIT2=1 |
250 |
- USE_SYSTEM_LIBM=1 |
251 |
- USE_SYSTEM_LIBUNWIND=1 |
252 |
- USE_SYSTEM_LLVM=1 |
253 |
- USE_SYSTEM_MPFR=1 |
254 |
- USE_SYSTEM_OPENLIBM=1 |
255 |
- USE_SYSTEM_OPENSPECFUN=1 |
256 |
- USE_SYSTEM_PATCHELF=1 |
257 |
- USE_SYSTEM_READLINE=1 |
258 |
- USE_SYSTEM_SUITESPARSE=1 |
259 |
- USE_SYSTEM_ZLIB=1 |
260 |
- VERBOSE=1 |
261 |
- libdir="${EROOT}/usr/$(get_libdir)" |
262 |
- EOF |
263 |
- |
264 |
-} |
265 |
- |
266 |
-src_compile() { |
267 |
- |
268 |
- # Julia accesses /proc/self/mem on Linux |
269 |
- addpredict /proc/self/mem |
270 |
- |
271 |
- emake cleanall |
272 |
- emake julia-release \ |
273 |
- prefix="/usr" DESTDIR="${D}" CC="$(tc-getCC)" CXX="$(tc-getCXX)" |
274 |
- pax-mark m $(file usr/bin/julia-* | awk -F : '/ELF/ {print $1}') |
275 |
- emake |
276 |
- use emacs && elisp-compile contrib/julia-mode.el |
277 |
-} |
278 |
- |
279 |
-src_test() { |
280 |
- emake test |
281 |
-} |
282 |
- |
283 |
-src_install() { |
284 |
- emake install \ |
285 |
- prefix="/usr" DESTDIR="${D}" CC="$(tc-getCC)" CXX="$(tc-getCXX)" |
286 |
- cat > 99julia <<-EOF |
287 |
- LDPATH=${EROOT%/}/usr/$(get_libdir)/julia |
288 |
- EOF |
289 |
- doenvd 99julia |
290 |
- |
291 |
- if use emacs; then |
292 |
- elisp-install "${PN}" contrib/julia-mode.el |
293 |
- elisp-site-file-install "${FILESDIR}"/63julia-gentoo.el |
294 |
- fi |
295 |
- dodoc README.md |
296 |
- |
297 |
- mv "${ED}"/usr/etc/julia "${ED}"/etc || die |
298 |
- rmdir "${ED}"/usr/etc || die |
299 |
- rmdir "${ED}"/usr/libexec || die |
300 |
- mv "${ED}"/usr/share/doc/julia/{examples,html} \ |
301 |
- "${ED}"/usr/share/doc/${PF} || die |
302 |
- rmdir "${ED}"/usr/share/doc/julia || die |
303 |
- if [[ $(get_libdir) != lib ]]; then |
304 |
- mkdir -p "${ED}"/usr/$(get_libdir) || die |
305 |
- mv "${ED}"/usr/lib/julia "${ED}"/usr/$(get_libdir)/julia || die |
306 |
- fi |
307 |
-} |
308 |
- |
309 |
-pkg_postinst() { |
310 |
- use emacs && elisp-site-regen |
311 |
-} |
312 |
- |
313 |
-pkg_postrm() { |
314 |
- use emacs && elisp-site-regen |
315 |
-} |
316 |
|
317 |
diff --git a/dev-lang/julia/julia-0.6.0-r1.ebuild b/dev-lang/julia/julia-0.6.0-r1.ebuild |
318 |
deleted file mode 100644 |
319 |
index b7c1a133b3e..00000000000 |
320 |
--- a/dev-lang/julia/julia-0.6.0-r1.ebuild |
321 |
+++ /dev/null |
322 |
@@ -1,190 +0,0 @@ |
323 |
-# Copyright 1999-2017 Gentoo Foundation |
324 |
-# Distributed under the terms of the GNU General Public License v2 |
325 |
- |
326 |
-EAPI=6 |
327 |
- |
328 |
-RESTRICT="test" |
329 |
- |
330 |
-inherit eutils multilib pax-utils toolchain-funcs |
331 |
- |
332 |
-DESCRIPTION="High-performance programming language for technical computing" |
333 |
-HOMEPAGE="https://julialang.org/" |
334 |
-SRC_URI=" |
335 |
- https://github.com/JuliaLang/${PN}/releases/download/v${PV}/${P}.tar.gz |
336 |
- https://dev.gentoo.org/~tamiko/distfiles/${P}-bundled.tar.gz |
337 |
-" |
338 |
- |
339 |
-LICENSE="MIT" |
340 |
-SLOT="0" |
341 |
-KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" |
342 |
-IUSE="" |
343 |
- |
344 |
-RDEPEND=" |
345 |
- dev-libs/double-conversion:0= |
346 |
- dev-libs/gmp:0= |
347 |
- <dev-libs/libgit2-0.25:0= |
348 |
- dev-libs/mpfr:0= |
349 |
- dev-libs/openspecfun |
350 |
- sci-libs/arpack:0= |
351 |
- sci-libs/camd:0= |
352 |
- sci-libs/cholmod:0= |
353 |
- sci-libs/fftw:3.0=[threads] |
354 |
- sci-libs/openlibm:0= |
355 |
- sci-libs/spqr:0= |
356 |
- >=dev-libs/libpcre2-10.23:0=[jit] |
357 |
- sci-libs/umfpack:0= |
358 |
- sci-mathematics/glpk:0= |
359 |
- sys-devel/llvm:4= |
360 |
- >=sys-libs/libunwind-1.1:7= |
361 |
- <sys-libs/libunwind-1.2.1 |
362 |
- sys-libs/readline:0= |
363 |
- sys-libs/zlib:0= |
364 |
- >=virtual/blas-3.6 |
365 |
- virtual/lapack" |
366 |
- |
367 |
-DEPEND="${RDEPEND} |
368 |
- dev-vcs/git |
369 |
- dev-util/patchelf |
370 |
- virtual/pkgconfig" |
371 |
- |
372 |
-PATCHES=( |
373 |
- "${FILESDIR}"/${P}-fix_build_system.patch |
374 |
-) |
375 |
- |
376 |
-src_prepare() { |
377 |
- mv "${WORKDIR}"/bundled/UnicodeData.txt doc || die |
378 |
- mkdir deps/srccache || die |
379 |
- mv "${WORKDIR}"/bundled/* deps/srccache || die |
380 |
- rmdir "${WORKDIR}"/bundled || die |
381 |
- |
382 |
- default |
383 |
- |
384 |
- # Sledgehammer: |
385 |
- # - prevent fetching of bundled stuff in compile and install phase |
386 |
- # - respect CFLAGS |
387 |
- # - respect EPREFIX and Gentoo specific paths |
388 |
- # - fix BLAS and LAPACK link interface |
389 |
- |
390 |
- sed -i \ |
391 |
- -e 's|$(JLDOWNLOAD)|${EPREFIX}/bin/true|' \ |
392 |
- -e 's|git submodule|${EPREFIX}/bin/true|g' \ |
393 |
- -e "s|GENTOOCFLAGS|${CFLAGS}|g" \ |
394 |
- -e "s|/usr/include|${EPREFIX%/}/usr/include|g" \ |
395 |
- deps/Makefile || die |
396 |
- |
397 |
- local libblas="$($(tc-getPKG_CONFIG) --libs-only-l blas)" |
398 |
- libblas="${libblas%% *}" |
399 |
- libblas="lib${libblas#-l}" |
400 |
- local liblapack="$($(tc-getPKG_CONFIG) --libs-only-l lapack)" |
401 |
- liblapack="${liblapack%% *}" |
402 |
- liblapack="lib${liblapack#-l}" |
403 |
- |
404 |
- sed -i \ |
405 |
- -e "s|\(JULIA_EXECUTABLE = \)\(\$(JULIAHOME)/julia\)|\1 LD_LIBRARY_PATH=\$(BUILD)/$(get_libdir) \2|" \ |
406 |
- -e "s|GENTOOCFLAGS|${CFLAGS}|g" \ |
407 |
- -e "s|LIBDIR = lib|LIBDIR = $(get_libdir)|" \ |
408 |
- -e "s|/usr/lib|${EPREFIX}/usr/$(get_libdir)|" \ |
409 |
- -e "s|/usr/include|${EPREFIX}/usr/include|" \ |
410 |
- -e "s|\$(BUILD)/lib|\$(BUILD)/$(get_libdir)|" \ |
411 |
- -e "s|^JULIA_COMMIT = .*|JULIA_COMMIT = v${PV}|" \ |
412 |
- -e "s|-lblas|$($(tc-getPKG_CONFIG) --libs blas)|" \ |
413 |
- -e "s|= libblas|= ${libblas}|" \ |
414 |
- -e "s|-llapack|$($(tc-getPKG_CONFIG) --libs lapack)|" \ |
415 |
- -e "s|= liblapack|= ${liblapack}|" \ |
416 |
- Make.inc || die |
417 |
- |
418 |
- sed -i \ |
419 |
- -e "s|,lib)|,$(get_libdir))|g" \ |
420 |
- -e "s|\$(BUILD)/lib|\$(BUILD)/$(get_libdir)|g" \ |
421 |
- Makefile || die |
422 |
- |
423 |
- sed -i \ |
424 |
- -e "s|ar -rcs|$(tc-getAR) -rcs|g" \ |
425 |
- src/Makefile || die |
426 |
- |
427 |
- # disable doc install starting git fetching |
428 |
- sed -i -e 's~install: $(build_depsbindir)/stringreplace $(BUILDROOT)/doc/_build/html/en/index.html~install: $(build_depsbindir)/stringreplace~' Makefile || die |
429 |
-} |
430 |
- |
431 |
-src_configure() { |
432 |
- # julia does not play well with the system versions of dsfmt, libuv, |
433 |
- # and utf8proc |
434 |
- |
435 |
- # USE_SYSTEM_LIBM=0 implies using external openlibm |
436 |
- cat <<-EOF > Make.user |
437 |
- USE_SYSTEM_DSFMT=0 |
438 |
- USE_SYSTEM_LIBUV=0 |
439 |
- USE_SYSTEM_PCRE=1 |
440 |
- USE_SYSTEM_RMATH=0 |
441 |
- USE_SYSTEM_UTF8PROC=0 |
442 |
- USE_LLVM_SHLIB=1 |
443 |
- USE_SYSTEM_ARPACK=1 |
444 |
- USE_SYSTEM_BLAS=1 |
445 |
- USE_SYSTEM_FFTW=1 |
446 |
- USE_SYSTEM_GMP=1 |
447 |
- USE_SYSTEM_GRISU=1 |
448 |
- USE_SYSTEM_LAPACK=1 |
449 |
- USE_SYSTEM_LIBGIT2=1 |
450 |
- USE_SYSTEM_LIBM=0 |
451 |
- USE_SYSTEM_LIBUNWIND=1 |
452 |
- USE_SYSTEM_LLVM=1 |
453 |
- USE_SYSTEM_MPFR=1 |
454 |
- USE_SYSTEM_OPENLIBM=1 |
455 |
- USE_SYSTEM_OPENSPECFUN=1 |
456 |
- USE_SYSTEM_PATCHELF=1 |
457 |
- USE_SYSTEM_READLINE=1 |
458 |
- USE_SYSTEM_SUITESPARSE=1 |
459 |
- USE_SYSTEM_ZLIB=1 |
460 |
- VERBOSE=1 |
461 |
- libdir="${EROOT}/usr/$(get_libdir)" |
462 |
- EOF |
463 |
- |
464 |
-} |
465 |
- |
466 |
-src_compile() { |
467 |
- |
468 |
- # use LLVM:4 ... |
469 |
- export PATH="${EPREFIX}/usr/$(get_libdir)/llvm/4/bin/:${PATH}" |
470 |
- |
471 |
- # Julia accesses /proc/self/mem on Linux |
472 |
- addpredict /proc/self/mem |
473 |
- |
474 |
- emake cleanall |
475 |
- emake VERBOSE=1 julia-release \ |
476 |
- prefix="/usr" DESTDIR="${D}" CC="$(tc-getCC)" CXX="$(tc-getCXX)" |
477 |
- pax-mark m $(file usr/bin/julia-* | awk -F : '/ELF/ {print $1}') |
478 |
- emake |
479 |
-} |
480 |
- |
481 |
-src_test() { |
482 |
- emake test |
483 |
-} |
484 |
- |
485 |
-src_install() { |
486 |
- # Julia is special. It tries to find a valid git repository (that would |
487 |
- # normally be cloned during compilation/installation). Just make it |
488 |
- # happy... |
489 |
- git init && \ |
490 |
- git config --local user.email "whatyoudoing@×××××××.com" && \ |
491 |
- git config --local user.name "Whyyyyyy" && \ |
492 |
- git commit -a --allow-empty -m "initial" || die "git failed" |
493 |
- |
494 |
- emake install \ |
495 |
- prefix="/usr" DESTDIR="${D}" CC="$(tc-getCC)" CXX="$(tc-getCXX)" |
496 |
- cat > 99julia <<-EOF |
497 |
- LDPATH=${EROOT%/}/usr/$(get_libdir)/julia |
498 |
- EOF |
499 |
- doenvd 99julia |
500 |
- |
501 |
- dodoc README.md |
502 |
- |
503 |
- mv "${ED}"/usr/etc/julia "${ED}"/etc || die |
504 |
- rmdir "${ED}"/usr/etc || die |
505 |
- mv "${ED}"/usr/share/doc/julia/{examples,html} \ |
506 |
- "${ED}"/usr/share/doc/${PF} || die |
507 |
- rmdir "${ED}"/usr/share/doc/julia || die |
508 |
- if [[ $(get_libdir) != lib ]]; then |
509 |
- mkdir -p "${ED}"/usr/$(get_libdir) || die |
510 |
- mv "${ED}"/usr/lib/julia "${ED}"/usr/$(get_libdir)/julia || die |
511 |
- fi |
512 |
-} |