Annotation of /trunk/extras/rust/rust-1.18.0-r1.smage2
Parent Directory | Revision Log
Revision 29509 -
(hide annotations)
(download)
Tue Jun 20 11:32:58 2017 UTC (6 years, 11 months ago) by niro
File size: 1340 byte(s)
Tue Jun 20 11:32:58 2017 UTC (6 years, 11 months ago) by niro
File size: 1340 byte(s)
auto added: ver bump to 1.18.0-r1
1 | niro | 29509 | # $Id$ |
2 | |||
3 | PNAME="rust" | ||
4 | PVER="1.18.0" | ||
5 | PBUILD="r1" | ||
6 | |||
7 | PCAT="dev-lang" | ||
8 | |||
9 | DESCRIPTION="Systems programming language focused on safety, speed and concurrency." | ||
10 | HOMEPAGE="https://www.rust-lang.org/" | ||
11 | |||
12 | DEPEND=">= sys-libs/llvm-libs-3.9" | ||
13 | |||
14 | SDEPEND=">= sys-dev/llvm-3.9 | ||
15 | >= dev-lang/perl-5.24 | ||
16 | >= dev-lang/python-2.7 | ||
17 | >= dev-libs/libffi-3.2 | ||
18 | >= dev-libs/jemalloc-5 | ||
19 | >= net-misc/curl-7" | ||
20 | |||
21 | SRCFILE="${PNAME}c-${PVER}-src.tar.gz" | ||
22 | SRCDIR="${BUILDDIR}/${PNAME}c-${PVER}-src" | ||
23 | |||
24 | sminclude mbuild mtools | ||
25 | |||
26 | SRC_URI=( | ||
27 | https://static.rust-lang.org/dist/${SRCFILE} | ||
28 | mirror://${PNAME}/${SRCFILE} | ||
29 | ) | ||
30 | |||
31 | UP2DATE="updatecmd https://www.rust-lang.org/en-US/other-installers.html | grep 'rustc-.*-src.*' | sed 's:-src::g' | highesttarball gz" | ||
32 | |||
33 | |||
34 | src_compile() | ||
35 | { | ||
36 | cd ${SRCDIR} | ||
37 | |||
38 | mconfigure \ | ||
39 | --release-channel=stable \ | ||
40 | --llvm-root=/usr \ | ||
41 | --enable-llvm-link-shared \ | ||
42 | --disable-codegen-tests \ | ||
43 | || die | ||
44 | |||
45 | # missing llvm link deps | ||
46 | export RUSTFLAGS="$RUSTFLAGS -C link-args=-lffi" | ||
47 | python2 ./x.py build --verbose || die | ||
48 | } | ||
49 | |||
50 | src_install() | ||
51 | { | ||
52 | cd ${SRCDIR} | ||
53 | mmake DESTDIR=${BINDIR} install || die | ||
54 | |||
55 | # remove unnecessary files | ||
56 | mdelete /usr/$(mlibdir)/rustlib/components || die | ||
57 | mdelete /usr/$(mlibdir)/rustlib/manifest-rustc || die | ||
58 | mdelete /usr/$(mlibdir)/rustlib/rust-installer-version || die | ||
59 | |||
60 | minstalldocs ChangeLog COPYING GPL LEGAL LGPL NEWS README README.EXT ToDo || die | ||
61 | } |