rust: new port
This commit is contained in:
parent
5502efaec6
commit
328cb0b311
2407
rust/.footprint
Normal file
2407
rust/.footprint
Normal file
File diff suppressed because it is too large
Load Diff
4
rust/.md5sum
Normal file
4
rust/.md5sum
Normal file
@ -0,0 +1,4 @@
|
||||
830041cfc8627d3f7187954993449cf9 cargo-0.24.0-x86_64-unknown-linux-gnu.tar.gz
|
||||
f9f89caf41e3f9c092118272ceb5bf6b rust-std-1.23.0-x86_64-unknown-linux-gnu.tar.gz
|
||||
068fc6566772c4ce165cc547151f514c rustc-1.23.0-x86_64-unknown-linux-gnu.tar.gz
|
||||
328b369e0cb5164b85c8067357a10291 rustc-1.24.0-src.tar.gz
|
1
rust/.nostrip
Normal file
1
rust/.nostrip
Normal file
@ -0,0 +1 @@
|
||||
.*\.rlib
|
8
rust/.signature
Normal file
8
rust/.signature
Normal file
@ -0,0 +1,8 @@
|
||||
untrusted comment: verify with /etc/ports/opt.pub
|
||||
RWSE3ohX2g5d/d1Vg4kNGonEny9zRAlb6I8QHk8um3GFCxBU89y3OkmkoO+MGlEOpOH3uvKwj0jiDV/HNwQO5Cbgf5sM7/AF8A4=
|
||||
SHA256 (Pkgfile) = 135abbd2cb6c3eed6a4a9f4df34d240f7e8ffbd65e14881a42f6e67f13f4d208
|
||||
SHA256 (.footprint) = 4abc80dc2b8bd856415b6fc18f2e6b41003dddfd811feb23e6c0287f86f946d8
|
||||
SHA256 (rustc-1.24.0-src.tar.gz) = bb8276f6044e877e447f29f566e4bbf820fa51fea2f912d59b73233ffd95639f
|
||||
SHA256 (rust-std-1.23.0-x86_64-unknown-linux-gnu.tar.gz) = 83c7351bdc4326caf785c208cff86682825dad4a89ccee705fa05f55ce7bd25b
|
||||
SHA256 (rustc-1.23.0-x86_64-unknown-linux-gnu.tar.gz) = 27b124fd0d94c082978ff81e45f7b7c37e91d64714587829bf828d64d76524ee
|
||||
SHA256 (cargo-0.24.0-x86_64-unknown-linux-gnu.tar.gz) = ff8a454104aba20426ea898ed7515ec5da7de07d11733cdda17462455beb76e8
|
51
rust/Pkgfile
Normal file
51
rust/Pkgfile
Normal file
@ -0,0 +1,51 @@
|
||||
# Description: A safe, concurrent, practical language by Mozilla.
|
||||
# URL: http://www.rust-lang.org/
|
||||
# Depends on: llvm
|
||||
|
||||
name=rust
|
||||
version=1.24.0
|
||||
release=1
|
||||
source=(https://static.rust-lang.org/dist/${name}c-$version-src.tar.gz \
|
||||
https://static.rust-lang.org/dist/2018-01-04/rust-std-1.23.0-x86_64-unknown-linux-gnu.tar.gz \
|
||||
https://static.rust-lang.org/dist/2018-01-04/rustc-1.23.0-x86_64-unknown-linux-gnu.tar.gz \
|
||||
https://static.rust-lang.org/dist/2018-01-04/cargo-0.24.0-x86_64-unknown-linux-gnu.tar.gz
|
||||
)
|
||||
|
||||
build() {
|
||||
cd ${name}c-$version-src
|
||||
|
||||
mkdir -p build/cache/2018-01-04
|
||||
cp $PKGMK_SOURCE_DIR/rust-std-1.23.0-x86_64-unknown-linux-gnu.tar.gz build/cache/2018-01-04/
|
||||
cp $PKGMK_SOURCE_DIR/rustc-1.23.0-x86_64-unknown-linux-gnu.tar.gz build/cache/2018-01-04/
|
||||
cp $PKGMK_SOURCE_DIR/cargo-0.24.0-x86_64-unknown-linux-gnu.tar.gz build/cache/2018-01-04/
|
||||
|
||||
/usr/bin/python ./x.py build -j ${JOBS-1} --stage 1 src/libtest
|
||||
|
||||
cat <<- EOF > config.toml
|
||||
[build]
|
||||
cargo = "build/x86_64-unknown-linux-gnu/stage0/bin/cargo"
|
||||
rustc = "build/x86_64-unknown-linux-gnu/stage0/bin/rustc"
|
||||
python = "python2.7"
|
||||
extended = true
|
||||
# Verbosity level: 0 == not verbose, 1 == verbose, 2 == very verbose
|
||||
verbose = 0
|
||||
|
||||
[install]
|
||||
prefix = "/usr"
|
||||
|
||||
[rust]
|
||||
codegen-units = 0
|
||||
debuginfo = true
|
||||
|
||||
channel = "stable"
|
||||
EOF
|
||||
|
||||
/usr/bin/python ./x.py build -j ${JOBS-1}
|
||||
DESTDIR=$PKG /usr/bin/python ./x.py install
|
||||
|
||||
rm -r $PKG/usr/share/doc
|
||||
|
||||
cd $PKG/usr/lib
|
||||
rm rustlib/{components,manifest-rustc,rust-installer-version}
|
||||
ln -sf rustlib/x86_64-unknown-linux-gnu/lib/*.so .
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user