1 |
commit: a7c8b2c7f757ef70c4ba42e50de8e30dd0b63a36 |
2 |
Author: Matthias Maier <tamiko <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat May 25 17:34:28 2019 +0000 |
4 |
Commit: Matthias Maier <tamiko <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat May 25 17:41:47 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a7c8b2c7 |
7 |
|
8 |
dev-lang/julia: version bump to 1.1.1 |
9 |
|
10 |
Closes: https://github.com/gentoo/gentoo/pull/12058 |
11 |
Closes: https://bugs.gentoo.org/686628 |
12 |
Package-Manager: Portage-2.3.66, Repoman-2.3.12 |
13 |
Signed-off-by: Matthias Maier <tamiko <AT> gentoo.org> |
14 |
|
15 |
dev-lang/julia/Manifest | 1 + |
16 |
dev-lang/julia/julia-1.1.1.ebuild | 198 ++++++++++++++++++++++++++++++++++++++ |
17 |
2 files changed, 199 insertions(+) |
18 |
|
19 |
diff --git a/dev-lang/julia/Manifest b/dev-lang/julia/Manifest |
20 |
index 90b6da15ca5..27676dee666 100644 |
21 |
--- a/dev-lang/julia/Manifest |
22 |
+++ b/dev-lang/julia/Manifest |
23 |
@@ -1,4 +1,5 @@ |
24 |
DIST julia-1.1.0.tar.gz 7681396 BLAKE2B 2038901132bab1ae5ea634e15de2e18771e250c77e967228858f078a6e44e3f1900c1ea464b5db762842f65c4ad8590b70ba6b0b267bf955e86fa7f16a812696 SHA512 da546430df5a9207926faa3fe7b1d2c193a1223a379ce1ff25219c6f4f2d650497d1b0e9091f1cd542fa19bfcf7bf1ee74a52f7d45a06fd8ab4441a5ac4d4a46 |
25 |
+DIST julia-1.1.1.tar.gz 7691742 BLAKE2B e41a62ee170c1b8f38a64c762998c12c04d00568e9261f6fea984fb10950da45143a19be723c271901bd3d96cf69f8d97c7a9737724b9d571b841143b3c8a3b5 SHA512 16dfb0b0f6e6f3f28432b71f78a3a584db939ea0e82afaad43e2e8145206aedb5355ad6fcec67223ccf59e9b04c89d49573e27b5746b879a6cb5d07043701463 |
26 |
DIST julia-dsfmt-2.2.3.tar.gz 291773 BLAKE2B 6ffae90494d72527920c80fc0fb005da1c7b84f8a03a7ecb0789434c0fff97359e5098e85431896dffccc7d5148c414e847aaba5feef648b8788421a466ff65e SHA512 6d8ddcd01aab3f9039f4f0288a8af53e290cc2f293ed8c4a8c9f3b3f12398e7eedfce8016117b425766ba89c61c86c13b3e420035b5f9bf91315b8b814c03662 |
27 |
DIST julia-libuv-2348256acf5759a544e5ca7935f638d2bc091d60.tar.gz 1555710 BLAKE2B 31ce57d23765c142799dd985a5511751d63238cf7e082fd1ad5574bf62201e9d6cb53b8da5dcc724765ccb4abd63da3ca6d6cbd45e078310c2ffa3859d09b8e4 SHA512 c8bf3c736a60feb0c6994aa7cd1b80e1a45bd6096aa66db320ddfc27b59a0797d303338ea75978619173e4f0a680254f3db29c9f6d1b84361030cc11c7729c98 |
28 |
DIST julia-libwhich-81e9723c0273d78493dc8c8ed570f68d9ce7e89e.tar.gz 4183 BLAKE2B c932e23b1b476d3fd16cf6f451efd5fc6d9c1ec2c53e8ac086340a100817d9b30dae3eff50b284a42c09b2bbae30b9e2fd38b2881f8cbf4974a89f3bd0c87599 SHA512 6fb77b715d70d9bc95a8546c3bf97bd3677c7ea344b88bb5bc3bbfac9dceabe8a8cde7a0f64dec884cde802e4a3000e30837d3f824b5a9242348c4fe061526a3 |
29 |
|
30 |
diff --git a/dev-lang/julia/julia-1.1.1.ebuild b/dev-lang/julia/julia-1.1.1.ebuild |
31 |
new file mode 100644 |
32 |
index 00000000000..96611cec9c2 |
33 |
--- /dev/null |
34 |
+++ b/dev-lang/julia/julia-1.1.1.ebuild |
35 |
@@ -0,0 +1,198 @@ |
36 |
+# Copyright 1999-2019 Gentoo Authors |
37 |
+# Distributed under the terms of the GNU General Public License v2 |
38 |
+ |
39 |
+EAPI=7 |
40 |
+ |
41 |
+RESTRICT="test" |
42 |
+ |
43 |
+inherit pax-utils toolchain-funcs |
44 |
+ |
45 |
+MY_PV="${PV//_rc/-rc}" |
46 |
+MY_LIBUV_V="2348256acf5759a544e5ca7935f638d2bc091d60" |
47 |
+MY_UTF8PROC_V="97ef668b312b96382714dbb8eaac4affce0816e6" |
48 |
+MY_LIBWHICH_V="81e9723c0273d78493dc8c8ed570f68d9ce7e89e" |
49 |
+MY_DSFMT_V="2.2.3" |
50 |
+MY_LLVM="6.0.1" |
51 |
+ |
52 |
+DESCRIPTION="High-performance programming language for technical computing" |
53 |
+HOMEPAGE="https://julialang.org/" |
54 |
+SRC_URI=" |
55 |
+ https://github.com/JuliaLang/${PN}/releases/download/v${MY_PV}/${PN}-${MY_PV}.tar.gz |
56 |
+ https://api.github.com/repos/JuliaLang/libuv/tarball/${MY_LIBUV_V} -> ${PN}-libuv-${MY_LIBUV_V}.tar.gz |
57 |
+ https://api.github.com/repos/JuliaLang/utf8proc/tarball/${MY_UTF8PROC_V} -> ${PN}-utf8proc-${MY_UTF8PROC_V}.tar.gz |
58 |
+ https://api.github.com/repos/vtjnash/libwhich/tarball/${MY_LIBWHICH_V} -> ${PN}-libwhich-${MY_LIBWHICH_V}.tar.gz |
59 |
+ 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 |
60 |
+ http://releases.llvm.org/${MY_LLVM}/llvm-${MY_LLVM}.src.tar.xz -> ${PN}-llvm-${MY_LLVM}.src.tar.xz |
61 |
+" |
62 |
+ |
63 |
+LICENSE="MIT" |
64 |
+SLOT="0" |
65 |
+KEYWORDS="~amd64 ~x86" |
66 |
+IUSE="" |
67 |
+ |
68 |
+RDEPEND+=" |
69 |
+ dev-libs/double-conversion:0= |
70 |
+ dev-libs/gmp:0= |
71 |
+ dev-libs/libgit2:0= |
72 |
+ >=dev-libs/libpcre2-10.23:0=[jit] |
73 |
+ dev-libs/mpfr:0= |
74 |
+ dev-libs/openspecfun |
75 |
+ sci-libs/amd:0= |
76 |
+ sci-libs/arpack:0= |
77 |
+ sci-libs/camd:0= |
78 |
+ sci-libs/ccolamd:0= |
79 |
+ sci-libs/cholmod:0= |
80 |
+ sci-libs/colamd:0= |
81 |
+ sci-libs/fftw:3.0=[threads] |
82 |
+ sci-libs/openlibm:0= |
83 |
+ sci-libs/spqr:0= |
84 |
+ sci-libs/umfpack:0= |
85 |
+ sci-mathematics/glpk:0= |
86 |
+ >=sys-libs/libunwind-1.1:7= |
87 |
+ sys-libs/readline:0= |
88 |
+ sys-libs/zlib:0= |
89 |
+ >=virtual/blas-3.6 |
90 |
+ virtual/lapack" |
91 |
+ |
92 |
+DEPEND="${RDEPEND} |
93 |
+ dev-vcs/git |
94 |
+ dev-util/patchelf |
95 |
+ virtual/pkgconfig" |
96 |
+ |
97 |
+PATCHES=( |
98 |
+ "${FILESDIR}"/${PN}-1.1.0-fix_build_system.patch |
99 |
+ "${FILESDIR}"/${PN}-1.1.0-fix_llvm_install.patch |
100 |
+) |
101 |
+ |
102 |
+S="${WORKDIR}/${PN}-${MY_PV}" |
103 |
+ |
104 |
+src_unpack() { |
105 |
+ tounpack=(${A}) |
106 |
+ # the main source tree, followed by deps |
107 |
+ unpack "${A/%\ */}" |
108 |
+ |
109 |
+ mkdir -p "${S}/deps/srccache/" |
110 |
+ for i in "${tounpack[@]:1}"; do |
111 |
+ cp "${DISTDIR}/${i}" "${S}/deps/srccache/${i#julia-}" || die |
112 |
+ done |
113 |
+} |
114 |
+ |
115 |
+src_prepare() { |
116 |
+ default |
117 |
+ |
118 |
+ # Sledgehammer: |
119 |
+ # - prevent fetching of bundled stuff in compile and install phase |
120 |
+ # - respect CFLAGS |
121 |
+ # - respect EPREFIX and Gentoo specific paths |
122 |
+ # - fix BLAS and LAPACK link interface |
123 |
+ |
124 |
+ sed -i \ |
125 |
+ -e 's|git submodule|${EPREFIX}/bin/true|g' \ |
126 |
+ -e "s|GENTOOCFLAGS|${CFLAGS}|g" \ |
127 |
+ -e "s|/usr/include|${EPREFIX%/}/usr/include|g" \ |
128 |
+ deps/Makefile || die |
129 |
+ |
130 |
+ local libblas="$($(tc-getPKG_CONFIG) --libs-only-l blas)" |
131 |
+ libblas="${libblas%% *}" |
132 |
+ libblas="lib${libblas#-l}" |
133 |
+ local liblapack="$($(tc-getPKG_CONFIG) --libs-only-l lapack)" |
134 |
+ liblapack="${liblapack%% *}" |
135 |
+ liblapack="lib${liblapack#-l}" |
136 |
+ |
137 |
+ sed -i \ |
138 |
+ -e "s|GENTOOCFLAGS|${CFLAGS}|g" \ |
139 |
+ -e "s|GENTOOLIBDIR|$(get_libdir)|" \ |
140 |
+ -e "s|^JULIA_COMMIT = .*|JULIA_COMMIT = v${PV}|" \ |
141 |
+ -e "s|-lblas|$($(tc-getPKG_CONFIG) --libs blas)|" \ |
142 |
+ -e "s|= libblas|= ${libblas}|" \ |
143 |
+ -e "s|-llapack|$($(tc-getPKG_CONFIG) --libs lapack)|" \ |
144 |
+ -e "s|= liblapack|= ${liblapack}|" \ |
145 |
+ Make.inc || die |
146 |
+ |
147 |
+ sed -i \ |
148 |
+ -e "s|,lib)|,$(get_libdir))|g" \ |
149 |
+ -e "s|\$(BUILD)/lib|\$(BUILD)/$(get_libdir)|g" \ |
150 |
+ Makefile || die |
151 |
+ |
152 |
+ sed -i \ |
153 |
+ -e "s|ar -rcs|$(tc-getAR) -rcs|g" \ |
154 |
+ src/Makefile || die |
155 |
+ |
156 |
+ # disable doc install starting git fetching |
157 |
+ sed -i -e 's~install: $(build_depsbindir)/stringreplace $(BUILDROOT)/doc/_build/html/en/index.html~install: $(build_depsbindir)/stringreplace~' Makefile || die |
158 |
+} |
159 |
+ |
160 |
+src_configure() { |
161 |
+ # julia does not play well with the system versions of dsfmt, libuv, |
162 |
+ # and utf8proc |
163 |
+ |
164 |
+ # USE_SYSTEM_LIBM=0 implies using external openlibm |
165 |
+ cat <<-EOF > Make.user |
166 |
+ USE_SYSTEM_ARPACK:=1 |
167 |
+ USE_SYSTEM_BLAS:=1 |
168 |
+ USE_SYSTEM_DSFMT:=0 |
169 |
+ USE_SYSTEM_GMP:=1 |
170 |
+ USE_SYSTEM_GRISU:=1 |
171 |
+ USE_SYSTEM_LAPACK:=1 |
172 |
+ USE_SYSTEM_LIBGIT2:=1 |
173 |
+ USE_SYSTEM_LIBM:=0 |
174 |
+ USE_SYSTEM_LIBUNWIND:=1 |
175 |
+ USE_SYSTEM_LIBUV:=0 |
176 |
+ USE_SYSTEM_LLVM:=0 |
177 |
+ USE_SYSTEM_MPFR:=1 |
178 |
+ USE_SYSTEM_OPENLIBM:=1 |
179 |
+ USE_SYSTEM_OPENSPECFUN:=1 |
180 |
+ USE_SYSTEM_PATCHELF:=1 |
181 |
+ USE_SYSTEM_PCRE:=1 |
182 |
+ USE_SYSTEM_READLINE:=1 |
183 |
+ USE_SYSTEM_RMATH:=0 |
184 |
+ USE_SYSTEM_SUITESPARSE:=1 |
185 |
+ USE_SYSTEM_UTF8PROC:=0 |
186 |
+ USE_SYSTEM_ZLIB=1 |
187 |
+ VERBOSE=1 |
188 |
+ libdir="${EROOT}/usr/$(get_libdir)" |
189 |
+ EOF |
190 |
+ |
191 |
+} |
192 |
+ |
193 |
+src_compile() { |
194 |
+ |
195 |
+ # Julia accesses /proc/self/mem on Linux |
196 |
+ addpredict /proc/self/mem |
197 |
+ |
198 |
+ emake cleanall |
199 |
+ emake julia-release \ |
200 |
+ prefix="${EPREFIX}/usr" DESTDIR="${D}" \ |
201 |
+ CC="$(tc-getCC)" CXX="$(tc-getCXX)" |
202 |
+ pax-mark m $(file usr/bin/julia-* | awk -F : '/ELF/ {print $1}') |
203 |
+ emake |
204 |
+} |
205 |
+ |
206 |
+src_test() { |
207 |
+ emake test |
208 |
+} |
209 |
+ |
210 |
+src_install() { |
211 |
+ # Julia is special. It tries to find a valid git repository (that would |
212 |
+ # normally be cloned during compilation/installation). Just make it |
213 |
+ # happy... |
214 |
+ git init && \ |
215 |
+ git config --local user.email "whatyoudoing@×××××××.com" && \ |
216 |
+ git config --local user.name "Whyyyyyy" && \ |
217 |
+ git commit -a --allow-empty -m "initial" || die "git failed" |
218 |
+ |
219 |
+ emake install \ |
220 |
+ prefix="${EPREFIX}/usr" DESTDIR="${D}" \ |
221 |
+ CC="$(tc-getCC)" CXX="$(tc-getCXX)" |
222 |
+ cat > 99julia <<-EOF |
223 |
+ LDPATH=${EROOT%/}/usr/$(get_libdir)/julia |
224 |
+ EOF |
225 |
+ doenvd 99julia |
226 |
+ |
227 |
+ dodoc README.md |
228 |
+ |
229 |
+ mv "${ED}"/usr/etc/julia "${ED}"/etc || die |
230 |
+ rmdir "${ED}"/usr/etc || die |
231 |
+ mv "${ED}"/usr/share/doc/julia/html "${ED}"/usr/share/doc/${PF} || die |
232 |
+ rmdir "${ED}"/usr/share/doc/julia || die |
233 |
+} |